/*
Theme Name: Sublecap Theme
Theme URI: http://sublecap.cl
Description: Tema hijo para desarrollo personalizado.
Author: Nicolas Mateo   
Template: hello-elementor
Version: 1.0.8
*/

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;   
    width: 100%;
}

/* Supera los límites del tema padre por especificidad, sin !important. */
body > .site-header:not(.dynamic-header) {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
    position: sticky;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
}

.site-header > .header-container > .site-branding {
    grid-column: 1;
    min-width: 0;
    justify-self: start;
}

/* ============================================
   LOGO - Izquierda
   ============================================ */
.site-branding {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-header .site-branding img {
    max-height: 50px;
    height: 50px;
    width: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
}

.site-title-link {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333333;
    text-decoration: none;
}

/* ============================================
   MENÚ - Centro
   ============================================ */
.main-navigation {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 2;
    justify-self: center;
}

.main-navigation[hidden] {
    display: none;
}

/* La especificidad evita que los botones globales de Elementor se impongan. */
.site-header .header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    padding: 10px;
    border: 2px solid #6fb6a5;
    border-radius: 8px;
    background: #7dbfaf;
    color: #ffffff;
    cursor: pointer;
}

.site-header .header-menu-toggle:hover,
.site-header .header-menu-toggle:focus {
    background: #6fb6a5;
    color: #ffffff;
}

.site-header .header-menu-toggle[hidden] {
    display: none;
}

.header-menu-toggle:focus-visible,
.main-navigation a:focus-visible {
    outline: 2px solid #333333;
    outline-offset: 3px;
}

.header-menu-toggle svg {
    display: block;
    width: 24px;
    height: 24px;
}

.header-menu-icon-close,
.header-menu-toggle[aria-expanded="true"] .header-menu-icon-open {
    display: none;
}

.header-menu-toggle[aria-expanded="true"] .header-menu-icon-close {
    display: block;
}

.menu-principal {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.menu-principal li {
    margin: 0;
    padding: 0;
}

/* Medidas estables: la animación se limita al underline de ::after. */
.menu-principal li a,
.menu-principal li a:hover,
.menu-principal li a:focus-visible {
    font-family: 'Inter', sans-serif;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    transform: none;
    transition: none;
    padding: 8px 0;
    display: inline-block;
    position: relative; /* Indispensable para poder posicionar la línea debajo */
}

/* La línea inferior (oculta por defecto con width: 0) */
.menu-principal li a::after {
    content: '';
    position: absolute;
    width: 0; /* Empieza invisible */
    height: 2px; /* Grosor de la línea */
    bottom: 0; /* Pegada al borde inferior del padding */
    left: 0; /* Aparece de izquierda a derecha */
    background-color: #76c2af;
    transition: width 0.3s ease-in-out; /* Transición suave de la línea */
}

/* Efecto Hover: La línea crece hasta el 100% y el texto se queda igual */
.menu-principal li a:hover::after,
.menu-principal li a:focus-visible::after {
    width: 100%;
}

/* Elemento activo (pestaña actual) */
.menu-principal li.current-menu-item a {
    color: #333333;
    font-weight: 600;
}

/* Opcional: Que la pestaña actual mantenga la línea fija */
.menu-principal li.current-menu-item a::after {
    width: 100%;
}

/* ============================================
   BOTONES - Derecha
   ============================================ */
.header-acciones {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-column: 3;
    justify-self: end;
    gap: 0.75rem;
}

.header-boton {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    transition: background-color 0.2s ease;
    position: relative;
    background: #76c2af;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header-boton:hover,
.header-boton:focus-visible {
    background-color: #65b49f;
    color: #ffffff;
}

.header-boton svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff
}


/* Carrito con contador */
.carrito-contador {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #E74C3C;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    border: 2px solid #ffffff;
}

/* ============================================
   UTILIDADES
   ============================================ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #fff;
    padding: 10px 15px;
    z-index: 9999;
    clip: auto;
    width: auto;
    height: auto;
}

/* ============================================
   CONTENIDO DE LA PLANTILLA GENERAL
   ============================================ */
.sublecap-content-area {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ============================================
   COMPONENTE CTA: BASE Y VARIANTES
   ============================================ */
.site-main .sublecap-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: var(--sublecap-button-font-size, 0.9rem);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Elementor también define tipografía para a:hover y button:focus. */
.site-main .sublecap-button:hover,
.site-main .sublecap-button:focus {
    font-family: inherit;
    font-size: var(--sublecap-button-font-size, 0.9rem);
    font-weight: 600;
}

.sublecap-button.sublecap-button--primary,
.sublecap-button.sublecap-button--primary:focus {
    background: #76c2af;
    color: #ffffff;
}

.sublecap-button.sublecap-button--primary:hover {
    background: #65b49f;
    color: #ffffff;
}

.sublecap-button.sublecap-button--secondary,
.sublecap-button.sublecap-button--secondary:focus {
    border-color: #89978f;
    background: transparent;
    color: #292929;
}

.sublecap-button.sublecap-button--secondary:hover {
    border-color: #50675d;
    background: #e9f3ee;
    color: #292929;
}

.sublecap-button svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
}

.sublecap-button:focus-visible {
    outline: 2px solid #333333;
    outline-offset: 4px;
}

.sublecap-button:disabled {
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .site-main .sublecap-button {
        transition: none;
    }
}

/* ============================================
   ENCABEZADOS COMPARTIDOS DE PORTADA
   ============================================ */
.home-featured-header,
.home-customize-header {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.home-featured .home-featured-eyebrow,
.home-customize .home-customize-eyebrow,
.contacto-intro .contacto-intro-eyebrow,
.contacto-redes .contacto-redes-eyebrow,
.contacto-mensaje .contacto-mensaje-eyebrow,
.nosotros-intro .nosotros-intro-eyebrow,
.nosotros-historia .nosotros-historia-eyebrow,
.nosotros-carlota .nosotros-carlota-eyebrow,
.nosotros-enfoque .nosotros-enfoque-eyebrow {
    margin: 0 0 12px;
    color: #76c2af;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.5;
}

.home-featured .home-featured-eyebrow,
.home-customize .home-customize-eyebrow {
    margin-bottom: 36px;
}

.home-featured-eyebrow::after,
.home-customize-eyebrow::after,
.contacto-intro-eyebrow::after,
.contacto-redes-eyebrow::after,
.contacto-mensaje-eyebrow::after,
.nosotros-intro-eyebrow::after,
.nosotros-historia-eyebrow::after,
.nosotros-carlota-eyebrow::after,
.nosotros-enfoque-eyebrow::after {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    margin: 10px auto 0;
    background: #76c2af;
}

.home-featured-eyebrow.is-pending,
.home-customize-eyebrow.is-pending,
.contacto-intro-eyebrow.is-pending,
.contacto-redes-eyebrow.is-pending,
.contacto-mensaje-eyebrow.is-pending,
.nosotros-historia-eyebrow.is-pending,
.nosotros-carlota-eyebrow.is-pending,
.nosotros-enfoque-eyebrow.is-pending {
    opacity: 0;
    transform: translateY(12px);
}

.home-featured-eyebrow.is-revealed,
.home-customize-eyebrow.is-revealed,
.contacto-intro-eyebrow.is-revealed,
.contacto-redes-eyebrow.is-revealed,
.contacto-mensaje-eyebrow.is-revealed,
.nosotros-historia-eyebrow.is-revealed,
.nosotros-carlota-eyebrow.is-revealed,
.nosotros-enfoque-eyebrow.is-revealed {
    animation: featured-eyebrow-reveal 0.8s ease both;
}

.home-featured-eyebrow.is-revealed::after,
.home-customize-eyebrow.is-revealed::after,
.contacto-intro-eyebrow.is-revealed::after,
.contacto-redes-eyebrow.is-revealed::after,
.contacto-mensaje-eyebrow.is-revealed::after,
.nosotros-historia-eyebrow.is-revealed::after,
.nosotros-carlota-eyebrow.is-revealed::after,
.nosotros-enfoque-eyebrow.is-revealed::after {
    animation: featured-line-reveal 0.8s ease both;
    transform-origin: center;
}

@keyframes featured-eyebrow-reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes featured-line-reveal {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.home-featured .home-featured-title,
.home-customize .home-customize-title,
.home-maxlevel .home-maxlevel-title,
.contacto-intro .contacto-intro-title,
.contacto-redes .contacto-redes-title,
.contacto-mensaje .contacto-mensaje-title,
.contacto-cta .contacto-cta-title,
.nosotros-intro .nosotros-intro-title,
.nosotros-historia .nosotros-historia-title,
.nosotros-carlota .nosotros-carlota-title,
.nosotros-enfoque .nosotros-enfoque-title,
.nosotros-cta .nosotros-cta-title {
    margin: 0 0 20px;
    color: #333333;
    font-family: 'Pragmatica', 'Inter', sans-serif;
    font-style: oblique;
    font-weight: 400;
    font-synthesis: style;
    font-size: clamp(1.4rem, 3vw, 2.7rem);
    letter-spacing: -0.045em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.home-featured-title .home-section-title-accent,
.home-customize-title .home-section-title-accent,
.home-maxlevel-title .home-section-title-accent,
.contacto-intro-title .contacto-intro-accent,
.contacto-redes-title .contacto-redes-accent,
.contacto-mensaje-title .contacto-mensaje-accent,
.contacto-cta-title .contacto-cta-accent,
.nosotros-intro-title .nosotros-intro-accent,
.nosotros-historia-title .nosotros-historia-accent,
.nosotros-carlota-title .nosotros-carlota-accent,
.nosotros-enfoque-title .nosotros-enfoque-accent,
.nosotros-cta-title .nosotros-cta-accent {
    color: #ebb44f;
}

.home-featured .home-featured-description,
.home-customize .home-customize-description,
.home-maxlevel .home-maxlevel-description,
.contacto-intro .contacto-intro-description,
.contacto-mensaje .contacto-mensaje-description,
.contacto-cta .contacto-cta-description,
.nosotros-intro .nosotros-intro-description,
.nosotros-historia .nosotros-historia-description,
.nosotros-carlota .nosotros-carlota-description,
.nosotros-enfoque .nosotros-enfoque-description,
.nosotros-cta .nosotros-cta-description {
    margin: 0;
    color: #505750;
    font-size: 1rem;
    line-height: 1.75;
}

@media (prefers-reduced-motion: reduce) {
    .home-featured-eyebrow.is-pending,
    .home-customize-eyebrow.is-pending,
    .contacto-intro-eyebrow.is-pending,
    .contacto-redes-eyebrow.is-pending,
    .contacto-mensaje-eyebrow.is-pending,
    .nosotros-historia-eyebrow.is-pending,
    .nosotros-carlota-eyebrow.is-pending,
    .nosotros-enfoque-eyebrow.is-pending {
        opacity: 1;
        transform: none;
    }

    .home-featured-eyebrow.is-revealed,
    .home-featured-eyebrow.is-revealed::after,
    .home-customize-eyebrow.is-revealed,
    .home-customize-eyebrow.is-revealed::after,
    .contacto-intro-eyebrow.is-revealed,
    .contacto-intro-eyebrow.is-revealed::after,
    .contacto-redes-eyebrow.is-revealed,
    .contacto-redes-eyebrow.is-revealed::after,
    .contacto-mensaje-eyebrow.is-revealed,
    .contacto-mensaje-eyebrow.is-revealed::after,
    .nosotros-historia-eyebrow.is-revealed,
    .nosotros-historia-eyebrow.is-revealed::after,
    .nosotros-carlota-eyebrow.is-revealed,
    .nosotros-enfoque-eyebrow.is-revealed,
    .nosotros-carlota-eyebrow.is-revealed::after,
    .nosotros-enfoque-eyebrow.is-revealed::after {
        animation: none;
    }
}

/* ============================================
   HERO DE PORTADA
   ============================================ */
.home-hero {
    --hero-yellow: #ebb44f;
    --hero-ink: #292929;
    background: #ffffff;
    color: var(--hero-ink);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.home-hero,
.home-hero * {
    box-sizing: border-box;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
    max-width: 1440px;
    min-height: calc(100svh - 78px);
    margin: 0 auto;
    padding: 40px 32px 0;
    gap: 12px;
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 24px 0 64px;
}

.home-hero .home-hero-title {
    margin: 0 0 28px;
    color: var(--hero-ink);
    /* Elementor registra el archivo Black como peso normal. */
    font-family: 'Pragmatica', 'Inter', sans-serif;
    font-style: oblique;
    font-weight: 400;
    font-synthesis: style;
    letter-spacing: -0.045em;
    line-height: 1.13;
}

.home-hero-heading {
    display: block;
    text-align: left;
}

.home-hero-heading-top,
.home-hero-heading-bottom {
    display: block;
    white-space: nowrap;
}

.home-hero-heading-top {
    font-size: clamp(1.65rem, 3.5vw, 3.1rem);
}

.home-hero-heading-bottom {
    font-size: clamp(1.1rem, 2.65vw, 2.35rem);
    letter-spacing: -0.035em;
}

.home-hero-words {
    display: grid;
    margin: 8px 0 12px;
    padding: 0.08em 0;
    color: var(--hero-yellow);
    font-size: clamp(1.6rem, 3.55vw, 3.15rem);
    letter-spacing: -0.04em;
}

.home-hero-word {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(0.2em);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.home-hero-word.is-active {
    opacity: 1;
    transform: translateY(0);
}

.home-hero .home-hero-description {
    max-width: 49ch;
    margin: 0 0 30px;
    color: #505750;
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    line-height: 1.75;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero .home-hero-button-primary {
    box-shadow: 0 4px 12px rgb(41 41 41 / 6%);
}

.home-hero .home-hero-button-primary:hover {
    transform: translateY(-2px);
}

.home-hero .home-hero-motion {
    margin-top: 18px;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #505750;
    font: inherit;
    font-size: 0.75rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.home-hero-motion[hidden] {
    display: none;
}

.home-hero-button:focus-visible,
.home-hero-motion:focus-visible {
    outline: 2px solid var(--hero-ink);
    outline-offset: 4px;
}

.home-hero-art {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    isolation: isolate;
}

.home-hero-art::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 16% -12% -12% -4%;
    border-radius: 55% 45% 0 0 / 42% 58% 0 0;
    background: #dcefe7;
    transform: rotate(-7deg);
}

.home-hero .home-hero-cat {
    display: block;
    flex-shrink: 0;
    width: 94%;
    max-width: none;
    height: auto;
    max-height: calc(94svh - 98px);
    object-fit: contain;
    object-position: center bottom;
}

@media (max-width: 900px) {
    .home-hero-inner {
        min-height: calc(100svh - 62px);
        padding: 36px 24px 0;
        gap: 20px;
    }

    .home-hero .home-hero-button {
        padding: 11px 14px;
        --sublecap-button-font-size: 0.85rem;
    }
}

@media (max-width: 680px) {
    .home-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding: 44px 20px 0;
        gap: 0;
    }

    .home-hero-copy {
        padding: 0 0 24px;
        text-align: center;
    }

    .home-hero-heading {
        text-align: center;
    }

    .home-hero .home-hero-description {
        margin-inline: auto;
    }

    .home-hero-heading-top {
        font-size: clamp(1.4rem, 6.7vw, 2.65rem);
    }

    .home-hero-words {
        font-size: clamp(1.35rem, 6.9vw, 2.7rem);
    }

    .home-hero-heading-bottom {
        font-size: clamp(1rem, 5.1vw, 2rem);
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-art {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .home-hero .home-hero-cat {
        width: 94%;
        max-height: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-word,
    .home-hero .home-hero-button {
        transition: none;
        transform: none;
    }
}

/* ============================================
   PRODUCTOS DESTACADOS DE PORTADA
   ============================================ */
.home-featured {
    --featured-calipso: #76c2af;
    --featured-yellow: #ebb44f;
    --featured-ink: #333333;
    padding: 96px 32px 48px;
    background: #ffffff;
    color: var(--featured-ink);
    font-family: 'Inter', sans-serif;
}

.home-featured,
.home-featured * {
    box-sizing: border-box;
}

.home-featured-inner {
    max-width: 1376px;
    margin-inline: auto;
}

.home-featured-carousel {
    max-width: 1000px;
    margin-inline: auto;
}

.home-featured-carousel.is-ready {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    max-width: 1112px;
}

.home-featured .home-featured-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #65b49f;
    font: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.home-featured .home-featured-arrow[hidden] {
    display: none;
}

.home-featured .home-featured-arrow:hover:not(:disabled) {
    color: #333333;
}

.home-featured .home-featured-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.home-featured-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 72px) / 4);
    gap: 24px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}

.home-featured-carousel.is-ready .home-featured-grid {
    scrollbar-width: none;
}

.home-featured-carousel.is-ready .home-featured-grid::-webkit-scrollbar {
    display: none;
}

.home-featured-item {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
}

.home-featured .sublecap-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    border: 1px solid #cce5dc;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-featured .sublecap-product-card:hover {
    border-color: var(--featured-calipso);
    box-shadow: 0 6px 20px rgb(51 51 51 / 6%);
}

.sublecap-product-card-media {
    position: relative;
    flex-shrink: 0;
    padding: 16px;
    background: #f8faf8;
    aspect-ratio: 1;
}

.home-featured .sublecap-product-card-media img {
    /* La imagen no participa en el cálculo de altura del contenedor cuadrado. */
    position: absolute;
    inset: 16px;
    display: block;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    border-radius: 0;
    object-fit: contain;
}

.sublecap-product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    text-align: left;
    overflow-wrap: anywhere;
}

.home-featured .sublecap-product-card-title {
    margin: 0 0 4px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.home-featured .sublecap-product-card-title a,
.home-featured .sublecap-product-card-title a:hover {
    color: var(--featured-ink);
    font: inherit;
    text-decoration: none;
}

.home-featured .sublecap-product-card-category {
    min-height: 1.5em;
    margin: 0 0 2px;
    color: #626b65;
    font-size: 0.8rem;
    line-height: 1.5;
}

.sublecap-product-card-price {
    margin: 0 0 12px;
    color: var(--featured-yellow);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
}

.sublecap-product-card-price del {
    color: #626b65;
    font-size: 0.85em;
    font-weight: 400;
}

.sublecap-product-card-price ins {
    background: transparent;
    color: inherit;
    text-decoration: none;
}

.home-featured .sublecap-product-card-button {
    margin-top: auto;
    padding: 12px 18px;
    transition: background-color 0.2s ease;
}

.home-featured a:focus-visible,
.home-featured-arrow:focus-visible,
.home-featured-grid:focus-visible {
    outline: 2px solid var(--featured-ink);
    outline-offset: 4px;
}

/* Las cinco filas compartidas se adaptan al contenido más alto de cada fila de tarjetas. */
@supports (grid-template-rows: subgrid) {
    .home-featured-grid {
        grid-template-rows: repeat(5, auto);
    }

    .home-featured-item {
        display: grid;
        grid-row: span 5;
        grid-template-rows: subgrid;
        row-gap: 0;
    }

    .home-featured .sublecap-product-card {
        display: grid;
        grid-row: span 5;
        grid-template-rows: subgrid;
        row-gap: 0;
    }

    .home-featured .sublecap-product-card-body {
        display: grid;
        grid-row: 2 / span 4;
        grid-template-rows: subgrid;
        align-items: start;
        justify-items: start;
        row-gap: 0;
    }

    .home-featured .sublecap-product-card-button {
        align-self: end;
    }
}

@media (max-width: 1024px) {
    .home-featured-grid {
        grid-auto-columns: calc((100% - 24px) / 2);
    }
}

@media (max-width: 680px) {
    .home-featured {
        padding: 64px 20px 32px;
    }

    .home-featured-grid {
        gap: 16px;
        grid-auto-columns: calc((100% - 16px) / 2);
    }

    .home-featured-carousel.is-ready {
        gap: 8px;
    }
}

@media (max-width: 540px) {
    .home-featured-grid {
        grid-auto-columns: 100%;
        grid-template-rows: auto;
        align-items: start;
    }

    /* Una tarjeta por vista: su contenido determina la altura sin subgrid. */
    .home-featured-item {
        display: flex;
        grid-row: auto;
        grid-template-rows: none;
    }

    .home-featured .sublecap-product-card {
        display: flex;
        grid-row: auto;
        grid-template-rows: none;
    }

    .home-featured .sublecap-product-card-body {
        display: flex;
        grid-row: auto;
        grid-template-rows: none;
    }

    .home-featured .sublecap-product-card-title,
    .home-featured .sublecap-product-card-category {
        margin-bottom: 8px;
    }

    .home-featured .sublecap-product-card-button {
        align-self: center;
        margin-inline: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-featured .sublecap-product-card,
    .home-featured .sublecap-product-card-button {
        transition: none;
    }
}

/* ============================================
   CÓMO PERSONALIZAR — PORTADA
   ============================================ */
.home-customize {
    --customize-calipso: #65b49f;
    --customize-ink: #19191d;
    padding: 48px 2rem;
    background: #ffffff;
    color: var(--customize-ink);
    font-family: 'Inter', sans-serif;
}

.home-customize,
.home-customize * {
    box-sizing: border-box;
}

.home-customize-inner {
    max-width: 1000px;
    margin-inline: auto;
}

.home-customize-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-customize-card {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 1rem 1rem 1.5rem;
    border: 1px solid #b5e1d5;
    border-radius: 1.125rem;
    background: #ffffff;
    text-align: center;
    overflow-wrap: anywhere;
}

.home-customize-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--customize-calipso);
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.home-customize-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem auto 1rem;
    width: 5rem;
    aspect-ratio: 1;
    color: var(--customize-ink);
}

.home-customize-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.home-customize .home-customize-card-title {
    margin: 0 0 0.5rem;
    color: var(--customize-ink);
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

.home-customize .home-customize-card-description {
    margin: 0;
    color: #6b6b73;
    font-size: 1rem;
    line-height: 1.5;
}

.home-customize-chevron {
    position: absolute;
    top: 50%;
    left: calc(100% + 0.25rem);
    width: 2rem;
    height: 2rem;
    transform: translateY(-50%);
    color: var(--customize-calipso);
}

.home-customize-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.home-customize .home-customize-button {
    --sublecap-button-font-size: 1rem;
    gap: 0.625rem;
    max-width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border-color: var(--customize-calipso);
    border-radius: 0.625rem;
    font-size: 1rem;
    line-height: 1.5;
    white-space: normal;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-customize .home-customize-button-primary {
    background: var(--customize-calipso);
}

.home-customize .home-customize-button-secondary {
    background: #ffffff;
    color: var(--customize-ink);
}

.home-customize-notice svg {
    flex: 0 0 auto;
    width: 1.1875rem;
    height: 1.1875rem;
}

.home-customize a.home-customize-button-primary:hover {
    border-color: #333333;
    background: #333333;
    color: #ffffff;
}

.home-customize-button:focus-visible {
    outline: 2px solid var(--customize-ink);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .home-customize .home-customize-button {
        transition: none;
    }
}

.home-customize .home-customize-pending {
    margin: 0.75rem 0 0;
    color: #6b6b73;
    font-size: 0.8rem;
    text-align: center;
}

.home-customize .home-customize-notice {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.625rem;
    max-width: 52rem;
    margin: 1rem auto 0;
    color: #6b6b73;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Alinea títulos y descripciones aunque un título ocupe dos líneas. */
@supports (grid-template-rows: subgrid) {
    .home-customize-card {
        display: grid;
        grid-row: span 4;
        grid-template-rows: subgrid;
        row-gap: 0;
    }
}

@media (max-width: 1024px) {
    .home-customize-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .home-customize-chevron {
        display: none;
    }
}

@media (max-width: 680px) {
    .home-customize {
        padding-block: 32px;
    }
}

@media (max-width: 540px) {
    .home-customize {
        padding-inline: 1.25rem;
    }

    .home-customize-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-customize-actions {
        flex-direction: column;
        align-items: center;
    }

    .home-customize .home-customize-button {
        width: 50%;
        min-width: min(12rem, 100%);
        gap: 0.5rem;
        padding-inline: 0.75rem;
    }

    .home-customize .home-customize-notice {
        display: block;
        text-align: center;
    }

    .home-customize-notice svg {
        display: inline-block;
        margin-inline-end: 0.25rem;
        vertical-align: -0.2em;
    }
}

/* ============================================
   ALIANZA SUBLECAP × MAX LEVEL
   ============================================ */
.home-maxlevel {
    padding: 48px 2rem 2rem;
    background: #ffffff;
    color: #333333;
    font-family: 'Inter', sans-serif;
}

.home-maxlevel,
.home-maxlevel * {
    box-sizing: border-box;
}

.home-maxlevel-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-areas: 'art copy';
    align-items: center;
    gap: 1rem;
    max-width: 1120px;
    margin-inline: auto;
    padding: clamp(1rem, 2vw, 1.5rem);
    padding-top: 0.5rem;
    border: 1px solid #cce5dc;
    border-radius: 1.125rem;
    background: #ffffff;
}

.home-maxlevel-copy {
    grid-area: copy;
    min-width: 0;
    padding-inline-end: clamp(1rem, 2vw, 1.5rem);
    text-align: right;
}

.home-maxlevel .home-maxlevel-title {
    font-size: clamp(1.3rem, 2.8vw, 2.5rem);
}

.home-maxlevel .home-maxlevel-description {
    font-size: 0.9375rem;
}

.home-maxlevel .home-maxlevel-logo {
    display: block;
    width: 100%;
    max-width: 11.5rem;
    height: auto;
    margin-bottom: 1.5rem;
    margin-inline-start: auto;
    object-fit: contain;
}

.home-maxlevel .home-maxlevel-button {
    --sublecap-button-font-size: 0.85rem;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 1.125rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    white-space: normal;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .home-maxlevel .home-maxlevel-button {
        transition: none;
    }
}

.home-maxlevel-button svg {
    width: 1.0625rem;
    height: 1.0625rem;
}

.home-maxlevel-button strong {
    font-weight: 700;
}

.home-maxlevel-art {
    grid-area: art;
    position: relative;
    min-width: 0;
    width: 96%;
    margin-inline: auto;
    isolation: isolate;
}

.home-maxlevel-art::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 7% 0 1% 1%;
    /* Silueta cerrada: lóbulo superior, entrante derecho y base ancha. */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 700' preserveAspectRatio='none'%3E%3Cpath fill='%23dcefe7' d='M530 8C650-8 870 55 950 150C1035 250 990 325 950 410C910 495 920 520 955 575C1010 665 875 700 735 700H350C260 700 270 670 190 650C85 625 0 585 0 490C0 405 75 365 155 315C265 250 320 160 400 75C440 35 480 10 530 8Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.home-maxlevel .home-maxlevel-shirts {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 680px) {
    .home-maxlevel {
        padding: 32px 1.25rem 1.5rem;
    }

    .home-maxlevel-inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: 'copy' 'art';
        gap: 1.5rem;
    }

    .home-maxlevel-copy {
        padding-inline-end: 0;
        text-align: center;
    }

    .home-maxlevel .home-maxlevel-logo {
        margin-inline: auto;
    }

    .home-maxlevel-art {
        max-width: 28rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: #ffffff;
    color: #333333;
    border-top: 1px solid #e5e5e5;
    width: 100%;
    box-sizing: border-box;
}

/* Hello Elementor limits the standard footer to a centered max-width. */
body .site-footer:not(.dynamic-footer) {
    max-width: none;
}

.footer-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 32px 0 32px 0;
}

.footer-branding {
    justify-self: start;
}

.footer-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.footer-branding .custom-logo,
.footer-branding .custom-logo-link img {
    display: block;
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 60px;
    object-fit: contain;
    padding-left: 32px;
}

.footer-site-title {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

.menu-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-footer li {
    margin: 0;
    padding: 0;
}

.menu-footer li a,
.menu-footer li a:hover,
.menu-footer li a:focus-visible {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    /* Mantiene las mismas medidas al interactuar con el menú. */
    font-weight: 600;
    line-height: 1.5;
    padding: 0;
    transform: none;
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu-footer li a:hover,
.menu-footer li a:focus-visible {
    color: #333333;
}

.footer-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    color: #76c2af;
    transition: color 0.2s ease;
}

.footer-menu-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.menu-footer a:hover .footer-menu-icon,
.menu-footer a:focus-visible .footer-menu-icon {
    color: #333333;
}

.footer-contacto {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-self: end;
    gap: 0.65rem;
    padding-right: 32px;
}

.footer-contacto-boton {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    background: #76c2af;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.footer-contacto-boton:hover,
.footer-contacto-boton:focus-visible {
    background-color: #65b49f;
    color: #ffffff;
}

.footer-contacto-boton svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 16px;
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-size: 0.80rem;
}

.footer-copyright {
    margin: 0 0 0 32px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-right: 32px;
}

.site-footer .footer-legal a,
.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus-visible {
    color: #333333;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
    transform: none;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus-visible {
    color: #666666;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .header-container {
        padding: 10px 15px;
        gap: 0.5rem;
        grid-template-columns: minmax(0, 1fr) auto auto;
    }
    .site-header > .header-container > .site-branding {
        grid-row: 1;
    }
    .site-header .site-branding .custom-logo-link {
        min-width: 0;
    }
    .site-header .site-title-link {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }
    .header-acciones {
        grid-row: 1;
        grid-column: 2;
        gap: 0.5rem;
    }
    .has-menu-toggle .header-menu-toggle {
        display: inline-flex;
        grid-row: 1;
        grid-column: 3;
    }
    .main-navigation {
        grid-row: 2;
        grid-column: 1 / -1;
        justify-self: stretch;
        min-width: 0;
        max-height: 65vh;
        overflow-y: auto;
        border-top: 1px solid #e5e5e5;
    }
    .menu-principal {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding-block: 0.5rem;
    }
    .menu-principal li a,
    .menu-principal li a:hover,
    .menu-principal li a:focus-visible {
        font-size: 0.9rem;
        display: block;
        padding: 12px 8px;
        overflow-wrap: anywhere;
    }
    .header-boton {
        width: 38px;
        height: 38px;
    }
    .header-boton svg {
        width: 17px;
        height: 17px;
    }
    .header-boton img {
        width: 17px;
        height: 17px;
    }
    .site-header .custom-logo,
    .site-header .custom-logo-link img,
    .site-header .site-branding img {
        max-height: 34px;
        height: 34px;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .menu-principal li a,
    .menu-principal li a:hover,
    .menu-principal li a:focus-visible {
        font-size: 0.85rem;
    }
    .header-boton {
        width: 34px;
        height: 34px;
    }
    .header-acciones {
        gap: 0.4rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
    }

    .footer-navigation {
        justify-self: end;
    }

    .footer-contacto {
        grid-column: 1 / -1;
        justify-self: stretch;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer-contacto-boton {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 32px 20px 18px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-branding {
        margin-right: 32px;
    }

    .footer-branding,
    .footer-navigation,
    .footer-contacto {
        justify-self: center;
    }

    .footer-navigation {
        width: 100%;
    }

    .menu-footer {
        align-items: center;
    }

    .footer-contacto {
        grid-column: auto;
        flex-direction: column;
        width: min(100%, 260px);
        margin-left: 32px;
    }

    .footer-bottom {
        align-items: stretch;
        width: 100%;
    }

    .footer-copyright {
        margin-left: 16px;
    }

    .footer-legal {
        justify-content: center;
        margin-left: 72px;
    }
}
