/* =========================
   DIVITIS: aplanar wrappers redundantes de Elementor
========================= */
.hero .hero-container-shop > .elementor-widget-html,
.hero .hero-container-grow > .elementor-widget-html,
.hero .hero-container-custom > .elementor-widget-html {
    display: contents;
}

.products-section .products-title,
.products-section .products-text {
    display: contents;
}

/* Solo oculta el contenedor vacio dentro del contenido de la Home (elementor-96) */
.elementor-96 > .e-con-boxed:has(> .e-con-inner:empty) {
    display: none;
}

/* =========================
   HERO CARDS
========================= */
.elementor .e-con.hero-container-shop,
.elementor .e-con.hero-container-grow,
.elementor .e-con.hero-container-custom {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    transition: var(--transition-smooth);
    background-color: var(--color-black);
    height: 20vh;
    max-height: 20vh;
    position: relative;
}

.wrapper-interactive .main-card-link {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.wrapper-interactive .main-card-link:hover {
    background: rgba(0, 0, 0, 0.15);
}

.text-group {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.word-main {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
    text-align: center;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.word-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    font-size: clamp(14px, 1.6vw, 20px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-hover-green);
    text-align: center;
    white-space: nowrap;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.main-card-link:hover .word-hover {
    transform: translateY(0);
}

.main-card-link:hover .word-main {
    opacity: 0.4;
}

/* =========================
   HERO / SLIDER
========================= */
.hero {
    position: relative;
    overflow: hidden;
    height: 60vh;
    min-height: 400px;
    background: var(--color-bg2);
    padding: 0 var(--section-padding-x);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 250%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    z-index: 1;
}

.hero .hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    z-index: 0;
    overflow: hidden;
}

.hero .hero-slider .swiper {
    width: 100%;
    height: 100%;
}

.hero .hero-slider .swiper-slide {
    width: 100% !important;
    height: 100% !important;
}

.hero .hero-slider .swiper-slide-inner {
    width: 100%;
    height: 100%;
}

.hero .hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    aspect-ratio: 3 / 2;
}

/*
 * HERO CONTENT: cards al fondo del hero.
 * padding-top separa del header, justify-content:flex-end
 * empuja las cards hacia abajo.
 */
.hero .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    padding: 5rem 0 0 0;
}

/* =========================
   PRODUCTOS DESTACADOS
========================= */
.products-section {
    padding: var(--section-padding-y) var(--section-padding-x);
    background: var(--color-bg2);
}

/*
 * Titulo + subtitulo pegados.
 * margin-bottom reducido en el h1, margin-top negativo en el h5.
 */
.products-section h1,
.products-section h2 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}

/* =========================
   PRODUCT TABS
========================= */
.elementor .product-tabs.e-n-tabs-mobile {
    background-color: var(--color-bg2) !important;
    box-shadow: none !important;
    border: none !important;
    text-align: center !important;
    padding: 0 !important;
    margin-top: var(--space-sm);
}

/* Estilo base de cada pestaña */
.e-n-tabs .e-n-tab-title#product-tabs-favs,
.e-n-tabs .e-n-tab-title#product-tabs-best,
.e-n-tabs .e-n-tab-title#product-tabs-top {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: var(--color-bg2) !important;
    color: var(--color-muted) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    padding: var(--space-sm) var(--space-md) !important;
    cursor: pointer;
    transition: var(--transition-fast) !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Hover en pestañas NO activas: barra gris */
.e-n-tabs .e-n-tab-title#product-tabs-favs:not(.e-active):not([aria-selected="true"]):hover,
.e-n-tabs .e-n-tab-title#product-tabs-best:not(.e-active):not([aria-selected="true"]):hover,
.e-n-tabs .e-n-tab-title#product-tabs-top:not(.e-active):not([aria-selected="true"]):hover {
    color: var(--color-black) !important;
    border-bottom-color: var(--flor-base-light) !important;
}

/* Estado ACTIVO: barra negra + texto negro */
.e-n-tabs .e-n-tab-title#product-tabs-favs.e-active,
.e-n-tabs .e-n-tab-title#product-tabs-best.e-active,
.e-n-tabs .e-n-tab-title#product-tabs-top.e-active,
.e-n-tabs .e-n-tab-title#product-tabs-favs[aria-selected="true"],
.e-n-tabs .e-n-tab-title#product-tabs-best[aria-selected="true"],
.e-n-tabs .e-n-tab-title#product-tabs-top[aria-selected="true"] {
    color: var(--color-black) !important;
    border-bottom-color: var(--color-black) !important;
    font-weight: 900;
}

/* Iconos heredan color del tab */
.e-n-tabs .e-n-tab-title i,
.e-n-tabs .e-n-tab-title svg {
    color: inherit !important;
    fill: currentColor !important;
    width: 14px;
    height: 14px;
    margin: 0;
    line-height: 1;
}

/* Contenido de las pestañas */
.product-container {
    background-color: var(--color-bg2);
    padding: var(--space-lg) 0 0 0;
}

/* =========================
   NUESTRA HISTORIA
========================= */
.story {
    padding: var(--section-padding-y) var(--section-padding-x);
}

.story .e-con-inner > .e-con.e-grid,
.story .e-con.e-grid > .e-con.e-grid {
    display: contents;
}

.story h6 {
    margin-bottom: 0.25rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.story h2 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    margin-top: 0;
    margin-bottom: 1rem;
}

.story p {
    line-height: 1.8;
    max-width: 65ch;
}

/* =========================
   REVIEWS
========================= */
.reviews {
    padding: var(--section-padding-y) var(--section-padding-x);
    background: var(--color-bg2);
    text-align: center;
}

.reviews .ti-widget {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reviews.is-visible .ti-widget {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   CONTACTO / MAPA
========================= */
.contact {
    padding: var(--section-padding-y) var(--section-padding-x);
    background: var(--color-bg);
}

.contact-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl);
}

.contact iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
    border-radius: var(--radius-sm);
}

.contact-info h2 {
    margin-bottom: 0.75rem;
    color: var(--color-heading);
}

.contact-info p {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.contact-form {
    padding: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
.elementor .e-con.hero-container-shop,
.elementor .e-con.hero-container-grow,
.elementor .e-con.hero-container-custom {
        height: 60px;
        max-height: 60px;
    }

    .hero {
        height: auto;
        min-height: 50vh;
    }

    .hero .hero-content {
        padding: 3rem 0 var(--space-lg) 0;
    }

.word-main {
        font-size: 15px;
    }

    .word-hover {
        font-size: 13px;
    }

    /* Tabs en mobile: apiladas verticalmente */
    .e-n-tabs .e-n-tab-title#product-tabs-favs,
    .e-n-tabs .e-n-tab-title#product-tabs-best,
    .e-n-tabs .e-n-tab-title#product-tabs-top {
        display: flex !important;
        width: 100% !important;
        justify-content: flex-start !important;
        border-bottom: 1px solid var(--color-separator) !important;
    }

    .e-n-tabs .e-n-tab-title#product-tabs-favs.e-active,
    .e-n-tabs .e-n-tab-title#product-tabs-best.e-active,
    .e-n-tabs .e-n-tab-title#product-tabs-top.e-active,
    .e-n-tabs .e-n-tab-title#product-tabs-favs[aria-selected="true"],
    .e-n-tabs .e-n-tab-title#product-tabs-best[aria-selected="true"],
    .e-n-tabs .e-n-tab-title#product-tabs-top[aria-selected="true"] {
        border-bottom: 3px solid var(--color-black) !important;
    }

    .story {
        background-attachment: scroll !important;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }
}
