/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.tugas-recipes {
    width: 100%;
}


/* =========================
   TÍTULO
   ========================= */

.tugas-recipes-heading {
    text-align: center;
    margin-bottom: 30px;
}

.tugas-recipes-heading h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 32px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    color: #222 !important;
    font-family: var(--e-global-typography-accent-font-family) !important;
}

.tugas-recipes-heading h2 em {
    font-style: normal;
    font-weight: 600;
}


/* =========================
   FILTROS
   ========================= */

.tugas-recipes-filters {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 25px;
}

.tugas-recipes-filters button {
    position: relative;
    appearance: none;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    color: #333;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
}

.tugas-recipes-filters button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #117267;
    transform: scaleX(0);
    transition: transform .25s ease;
}

.tugas-recipes-filters button.active {
    color: #117267;
}

.tugas-recipes-filters button:hover {
    color: #117267;
}

.tugas-recipes-filters button.active::after {
    transform: scaleX(1);
}


/* =========================
   GRID
   ========================= */

.tugas-recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}


/* =========================
   RECETA
   ========================= */

.tugas-recipe {
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
}

.tugas-recipe.is-hidden {
    display: none !important;
}

.tugas-recipe-link {
    display: block;
    text-decoration: none !important;
}


/* =========================
   IMAGEN
   ========================= */

.tugas-recipe-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6 / 1;
    overflow: hidden;
    background: #eee;
}

.tugas-recipe-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}


/* =========================
   OVERLAY
   ========================= */

.tugas-recipe-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 114, 103, .88);
    opacity: 0;
    transition: opacity .35s ease;
}


/* =========================
   CONTENIDO
   ========================= */

.tugas-recipe-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    transition: opacity .35s ease;
}

.tugas-recipe-content h3 {
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    font-family: var(--e-global-typography-accent-font-family) !important;
}


/* =========================
   LEER RECETA / FLECHA
   ========================= */

.tugas-recipe-arrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.tugas-recipe-arrow svg {
    display: block;
    width: 24px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    transition: transform .25s ease;
}


/* =========================
   HOVER
   ========================= */

.tugas-recipe-link:hover .tugas-recipe-image img {
    transform: scale(1.05);
}

.tugas-recipe-link:hover .tugas-recipe-overlay {
    opacity: 1;
}

.tugas-recipe-link:hover .tugas-recipe-content {
    opacity: 1;
}

.tugas-recipe-link:hover .tugas-recipe-arrow svg {
    transform: translateX(5px);
}


/* =========================
   BOTÓN
   ========================= */

.tugas-recipes-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.tugas-recipes-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 30px;
    background: #117267;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 20px;
    transition: background .25s ease;
    font-family: var(--e-global-typography-secondary-font-family) !important;
    border-radius: 4px;
}

.tugas-recipes-more-button:hover {
    background: #ffe3a5;
    color: #0d5f56 !important;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 1024px) {

    .tugas-recipes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================
   MÓVIL
   ========================= */

@media (max-width: 767px) {

    .tugas-recipes-heading h2 {
        font-size: 24px !important;
    }

    .tugas-recipes-filters {
        gap: 20px;
    }

    .tugas-recipes-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tugas-recipe-content {
        padding: 20px;
    }

    .tugas-recipe-content h3 {
        font-size: 20px !important;
    }

    .tugas-recipe-arrow {
        font-size: 13px;
    }

}

/* ==========================================================
   TUGAS – Avisos de WooCommerce estilo tarjeta (v3)
   Se aplica a cualquier aviso, esté donde esté, excepto al
   "¿Tienes un cupón?" del checkout.
   Solo colores y estructura, sin tamaños de letra ni tipografías.
   ========================================================== */

/* ---------- Base común ---------- */
:is(.woocommerce-message, .woocommerce-error, .woocommerce-info:not(.woocommerce-form-coupon-toggle .woocommerce-info)) {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  width: auto !important;
  margin: 0 0 24px !important;
  padding: 20px 28px 20px 66px !important;
  background: var(--e-global-color-1312541) !important;
  color: var(--e-global-color-text) !important;
  border: 0 !important;
  border-left: 6px solid var(--e-global-color-secondary) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  outline: 0 !important; /* quita el contorno negro de foco */
  list-style: none !important;
}

/* Icono */
:is(.woocommerce-message, .woocommerce-error, .woocommerce-info:not(.woocommerce-form-coupon-toggle .woocommerce-info))::before {
  content: "" !important;
  position: absolute !important;
  left: 24px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 26px !important;
  height: 26px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

:is(.woocommerce-message, .woocommerce-error, .woocommerce-info:not(.woocommerce-form-coupon-toggle .woocommerce-info))::after {
  display: none !important;
}

/* ---------- INFO (verde secundario) ---------- */
.woocommerce-info:not(.woocommerce-form-coupon-toggle .woocommerce-info)::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F847A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 16v-4M12 8h.01'/></svg>") !important;
}

/* ---------- ÉXITO (verde acento) ---------- */
.woocommerce-message {
  border-left-color: var(--e-global-color-accent) !important;
}
.woocommerce-message::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7466' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M8 12.5l2.7 2.7L16 9.5'/></svg>") !important;
}

/* ---------- ERROR (rojo) ---------- */
.woocommerce-error {
  border-left-color: #c0392b !important;
}
.woocommerce-error::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 8v5M12 16h.01'/></svg>") !important;
}
.woocommerce-error li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.woocommerce-error li + li {
  margin-top: 8px !important;
}

/* ---------- Enlaces ("¿Deshacer?", etc.) ---------- */
:is(.woocommerce-message, .woocommerce-error, .woocommerce-info:not(.woocommerce-form-coupon-toggle .woocommerce-info)) a:not(.button) {
  color: var(--e-global-color-secondary) !important;
  text-decoration: underline;
}
:is(.woocommerce-message, .woocommerce-error, .woocommerce-info:not(.woocommerce-form-coupon-toggle .woocommerce-info)) a:not(.button):hover {
  color: var(--e-global-color-accent) !important;
}

/* ---------- Botones dentro del aviso ("Ver carrito") ---------- */
:is(.woocommerce-message, .woocommerce-info:not(.woocommerce-form-coupon-toggle .woocommerce-info)) .button {
  float: right !important;
  margin: -4px 0 -4px 20px !important;
  padding: 12px 22px !important;
  background: var(--e-global-color-secondary) !important;
  color: var(--e-global-color-1312541) !important;
  border: 0 !important;
  border-radius: 6px !important;
  transition: background 0.2s ease;
}
:is(.woocommerce-message, .woocommerce-info:not(.woocommerce-form-coupon-toggle .woocommerce-info)) .button:hover {
  background: var(--e-global-color-accent) !important;
}

/* ---------- Botón "Volver a la tienda" (carrito vacío) ---------- */
.return-to-shop a.button.wc-backward {
  background: var(--e-global-color-secondary) !important;
  color: var(--e-global-color-1312541) !important;
  border: 0 !important;
  border-radius: 6px !important;
  transition: background 0.2s ease;
}
.return-to-shop a.button.wc-backward:hover {
  background: var(--e-global-color-accent) !important;
}

/* ---------- Carrito y checkout en bloques ---------- */
.wc-block-components-notice-banner {
  padding: 20px 28px !important;
  background: var(--e-global-color-1312541) !important;
  color: var(--e-global-color-text) !important;
  border: 0 !important;
  border-left: 6px solid var(--e-global-color-secondary) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}
.wc-block-components-notice-banner.is-info > svg,
.wc-block-components-notice-banner.is-success > svg {
  background: var(--e-global-color-secondary) !important;
}
.wc-block-components-notice-banner.is-success {
  border-left-color: var(--e-global-color-accent) !important;
}
.wc-block-components-notice-banner.is-error {
  border-left-color: #c0392b !important;
}
.wc-block-components-notice-banner.is-error > svg {
  background: #c0392b !important;
}