/*
Theme Name: Matifruti Theme
Theme URI: https://example.com/matifruti-theme
Author: Your Name
Author URI: https://example.com
Description: Tema Matifruti — fruta en su mejor versión para elevar cócteles y coctelería.
Version: 1.4.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matifruti-theme
Tags: custom, responsive, modern
*/

/* ==========================================================================
   Estilos Generales
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ------ Tipografía Matifruti ------ */
    --mf-font-display: "Bungee", "Impact", "Arial Black", system-ui, sans-serif;
    --mf-font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Bungee: peso 400 (único disponible) y letter-spacing positivo suave.
       Los valores negativos deforman los glifos. */
    --mf-display-weight: 400;
    --mf-display-tracking: 0.015em;

    /* Escala tipográfica fluida (mobile -> desktop sin breakpoints duros) */
    --mf-fs-display: clamp(2.25rem, 6vw, 4.25rem);
    --mf-fs-h1:      clamp(1.85rem, 4.4vw, 3rem);
    --mf-fs-h2:      clamp(1.55rem, 3.6vw, 2.4rem);
    --mf-fs-h3:      clamp(1.2rem, 2.3vw, 1.6rem);
    --mf-fs-h4:      clamp(1.02rem, 1.7vw, 1.2rem);
    --mf-fs-eyebrow: clamp(0.72rem, 1vw, 0.82rem);
    --mf-fs-body:    clamp(0.98rem, 0.45vw + 0.85rem, 1.075rem);
    --mf-fs-lead:    clamp(1.05rem, 1.6vw, 1.2rem);
    --mf-fs-small:   clamp(0.82rem, 0.9vw, 0.92rem);

    /* Espaciado fluido (responsive automático) */
    --mf-space-3xs: clamp(0.2rem, 0.3vw, 0.3rem);
    --mf-space-2xs: clamp(0.35rem, 0.5vw, 0.5rem);
    --mf-space-xs:  clamp(0.5rem, 0.8vw, 0.75rem);
    --mf-space-sm:  clamp(0.75rem, 1.2vw, 1rem);
    --mf-space-md:  clamp(1rem, 1.8vw, 1.5rem);
    --mf-space-lg:  clamp(1.5rem, 3vw, 2.25rem);
    --mf-space-xl:  clamp(2rem, 4.5vw, 3.5rem);
    --mf-space-2xl: clamp(3rem, 6.5vw, 5rem);
    --mf-space-3xl: clamp(4rem, 8.5vw, 7rem);

    /* Padding vertical de secciones (mobile-first, escala a desktop) */
    --mf-section-py:        clamp(3.5rem, 7.5vw, 6.5rem);
    --mf-section-py-tight:  clamp(2.5rem, 5vw, 4.5rem);
    --mf-section-py-loose:  clamp(4.5rem, 9.5vw, 8rem);

    /* Contenedores */
    --mf-gutter:         clamp(1rem, 4vw, 2rem);
    --mf-container-max:  1200px;
    --mf-container-wide: 1320px;
    --mf-container-text: 720px;

    /* Header */
    --mf-header-h: 96px;
    --mf-header-bg: #2b2833;
    --mf-header-border: rgba(230, 218, 255, 0.14);
    --mf-accent: #FCCF0C;
    --mf-header-text: rgba(255, 255, 255, 0.92);
    --mf-ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    /* Botón WhatsApp — menta pastel */
    --mf-wa-bg: #c8f1de;
    --mf-wa-bg-hover: #dff7ea;
    --mf-wa-border: rgba(100, 180, 140, 0.45);
    --mf-wa-text: #2a5c44;
    --mf-wa-icon: #3d9b72;
}

@media (max-width: 600px) {
    :root {
        --mf-header-h: 72px;
    }
}

body {
    font-family: var(--mf-font-body);
    font-size: var(--mf-fs-body);
    line-height: 1.6;
    color: #2a2825;
    background-color: #f3efe6;
    padding-top: var(--mf-header-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Tipografía principal Matifruti: Bungee para títulos.
   Bungee es display all-caps con un solo peso (400). Cualquier weight superior
   dispara falsa-negrita borrosa. Cualquier letter-spacing negativo deforma.
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .section-title,
.hero-title, .site-logo-text,
.faq-hero__title, .info-hero__title, .nosotros-hero__title, .contacto-hero__title, .legal-hero__title,
.info-card__title, .value-card__title, .channel-card__title, .trabajo-card__title,
.contacto-trabajo__title, .cta-pair__card h3,
.info-tile h3, .nosotros-section__copy h2,
.faq-contact .contact-box h2, .info-shortcut__copy h2,
.contacto-form__card h2, .newsletter-title {
    font-family: var(--mf-font-display);
    font-weight: var(--mf-display-weight);
    text-transform: uppercase;
    letter-spacing: var(--mf-display-tracking);
    line-height: 1.1;
    text-wrap: balance;
    color: #222025;
}

/* Escala tipográfica base — los heading classes específicos pueden refinar */
h1 { font-size: var(--mf-fs-h1); margin: 0 0 var(--mf-space-md); line-height: 1.05; }
h2 { font-size: var(--mf-fs-h2); margin: var(--mf-space-lg) 0 var(--mf-space-md); }
h3 { font-size: var(--mf-fs-h3); margin: var(--mf-space-md) 0 var(--mf-space-sm); line-height: 1.15; }
h4 { font-size: var(--mf-fs-h4); margin: var(--mf-space-md) 0 var(--mf-space-sm); line-height: 1.2; }
h5 { font-size: 1rem; margin: var(--mf-space-sm) 0 var(--mf-space-xs); line-height: 1.25; }
h6 { font-size: 0.92rem; margin: var(--mf-space-sm) 0 var(--mf-space-xs); line-height: 1.3; }

/* Cuerpo de texto: ritmo vertical consistente */
p { margin: 0 0 var(--mf-space-md); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--mf-space-md) 1.4em; }
li + li { margin-top: var(--mf-space-2xs); }

blockquote {
    margin: var(--mf-space-lg) 0;
    padding: var(--mf-space-md) var(--mf-space-lg);
    border-left: 4px solid var(--mf-accent);
    background: rgba(252, 207, 12, 0.06);
    font-style: italic;
    color: #3d3a36;
}

a {
    color: #FCCF0C;
    text-decoration: none;
}

a:hover {
    color: #e0b800;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Contenedor Principal
   ========================================================================== */

.site-container {
    max-width: var(--mf-container-max);
    margin: 0 auto;
    padding: 0 var(--mf-gutter);
}

/* Secciones con fondo blanco */
.page,
.single,
.archive {
    background-color: #fff;
}

.site-content {
    background-color: #fff;
    padding: var(--mf-section-py-tight) var(--mf-gutter);
    min-height: 60vh;
}

/* ==========================================================================
   Header — referencia visual tipo Barcoop Bevy (barra sobria, nav clara)
   ========================================================================== */

body.menu-open {
    overflow: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--mf-header-bg);
    border-bottom: 1px solid var(--mf-header-border);
    transition: box-shadow 0.35s var(--mf-ease-out), background 0.35s var(--mf-ease-out);
}

.site-header.is-scrolled {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: calc(var(--mf-header-h) - 1px);
    padding: 14px 0;
}

.site-branding {
    justify-self: start;
    z-index: 1002;
}

.custom-logo-link {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.25s ease;
}

.custom-logo-link:hover {
    opacity: 0.88;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.site-logo-text {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: var(--mf-display-weight);
    color: var(--mf-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.site-logo-text:hover {
    color: #fff;
}

/* Navegación centrada (desktop) */
.main-navigation {
    justify-self: center;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.main-navigation .menu,
.main-navigation .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(8px, 2vw, 36px);
    min-width: 0;
    font-family: var(--mf-font-body);
}

.main-navigation .menu > li,
.main-navigation .nav-menu > li {
    position: relative;
    flex: 0 0 auto;
}

.main-navigation .menu > li > a,
.main-navigation .nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    color: var(--mf-header-text);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 10px 2px;
    transition: color 0.25s ease;
}

/* Desktop: tabla + vertical-align middle alinea todos los ítems (p. ej. Inicio vs. padres con submenú) */
@media (min-width: 1025px) {
    .main-navigation .menu,
    .main-navigation .nav-menu {
        display: table;
        width: auto;
        margin-inline: auto;
        table-layout: auto;
        border-collapse: separate;
        border-spacing: clamp(10px, 2vw, 36px) 0;
    }

    .main-navigation .menu > li,
    .main-navigation .nav-menu > li {
        display: table-cell;
        vertical-align: middle;
        white-space: nowrap;
    }

    .main-navigation .menu > li > a,
    .main-navigation .nav-menu > li > a {
        display: inline-block;
        vertical-align: middle;
        box-sizing: border-box;
        height: auto;
        min-height: 0;
        padding: 0.5rem 0.35rem;
        line-height: 1.2;
    }
}

/* Quitar flechas o decoradores heredados que desplazan solo algunos enlaces */
.main-navigation .menu > li > a::before,
.main-navigation .menu > li > a::after,
.main-navigation .nav-menu > li > a::before,
.main-navigation .nav-menu > li > a::after {
    content: none !important;
    display: none !important;
}

.main-navigation .menu > li > a svg,
.main-navigation .nav-menu > li > a svg {
    display: inline-block;
    vertical-align: middle;
    max-height: 1em;
    width: auto;
}

.main-navigation .menu > li > a:hover,
.main-navigation .nav-menu > li > a:hover,
.main-navigation .menu > li.current-menu-item > a,
.main-navigation .nav-menu > li.current-menu-item > a {
    color: var(--mf-accent);
}

.main-navigation a:focus-visible {
    outline: 2px solid var(--mf-accent);
    outline-offset: 4px;
}

/* Submenús (una columna: opciones una debajo de otra) */
.main-navigation .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 220px;
    max-width: min(280px, 90vw);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    background: #242328;
    border: 1px solid var(--mf-header-border);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--mf-ease-out), transform 0.25s var(--mf-ease-out), visibility 0.25s;
    z-index: 1003;
}

.main-navigation .sub-menu > li {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--mf-header-border);
}

.main-navigation .sub-menu > li:last-child {
    border-bottom: none;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.main-navigation .sub-menu > li > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: none;
    white-space: normal;
    line-height: 1.35;
}

.main-navigation .sub-menu > li > a:hover {
    color: var(--mf-accent);
    background: rgba(252, 207, 12, 0.06);
}

/* Padre “Información” u otro ítem sin URL real (solo abre submenú al hover) */
.main-navigation li.menu-item-has-children > a.menu-parent-no-nav,
.main-navigation li.menu-item-has-children > a[href="#"],
.main-navigation li.menu-item-has-children > a[href="#0"] {
    cursor: default;
}

@media (max-width: 1024px) {
    .main-navigation li.menu-item-has-children > a.menu-parent-no-nav,
    .main-navigation li.menu-item-has-children > a[href="#"],
    .main-navigation li.menu-item-has-children > a[href="#0"] {
        cursor: pointer;
    }
}

/* Acciones del header (WhatsApp — colores pasteles) */
.header-actions {
    justify-self: end;
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1002;
}

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--mf-header-text);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.header-action:focus-visible {
    outline: 2px solid var(--mf-wa-bg);
    outline-offset: 3px;
}

.header-action__icon {
    display: flex;
    color: var(--mf-wa-icon);
}

.header-action.header-action--whatsapp {
    background: var(--mf-wa-bg);
    color: var(--mf-wa-text);
    border-color: var(--mf-wa-border);
    box-shadow: 0 2px 12px rgba(80, 160, 120, 0.2);
}

.header-action.header-action--whatsapp .header-action__icon {
    color: var(--mf-wa-icon);
}

.header-action.header-action--whatsapp:hover {
    background: var(--mf-wa-bg-hover);
    color: #1f4a36;
    border-color: rgba(80, 160, 120, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(80, 160, 120, 0.28);
}

.header-action.header-action--whatsapp:active {
    transform: translateY(0);
}

/* Hamburguesa */
.menu-toggle {
    display: none;
    grid-column: 3;
    justify-self: end;
    margin-right: 0;
    background: none;
    border: none;
    padding: 12px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--mf-accent);
    border-radius: 2px;
    transition: transform 0.35s var(--mf-ease-out), opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay móvil */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--mf-header-h);
    background: rgba(10, 9, 12, 0.55);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.35s var(--mf-ease-out);
}

.nav-backdrop.is-visible {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .header-inner {
        grid-template-columns: 1fr auto auto;
        grid-template-rows: auto;
        column-gap: 12px;
        row-gap: 0;
    }

    .site-branding {
        grid-column: 1;
    }

    .header-actions {
        grid-column: 2;
        justify-self: end;
        gap: 2px;
    }

    .header-action {
        padding: 10px 10px;
    }

    .header-action__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .menu-toggle {
        display: flex;
        grid-column: 3;
        margin-left: 4px;
    }

    .main-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        width: 100%;
    }

    .main-navigation .menu,
    .main-navigation .nav-menu {
        display: none;
        position: fixed;
        top: var(--mf-header-h);
        right: 0;
        width: min(360px, 88vw);
        height: calc(100dvh - var(--mf-header-h));
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 20px 0 32px;
        margin: 0;
        background: #161518;
        border-left: 1px solid var(--mf-header-border);
        box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.45s var(--mf-ease-out);
        overflow-y: auto;
        z-index: 1001;
    }

    .main-navigation .menu.toggled,
    .main-navigation .nav-menu.toggled {
        display: flex;
        transform: translateX(0);
    }

    .main-navigation .menu > li > a,
    .main-navigation .nav-menu > li > a {
        height: auto;
        min-height: 0;
        padding: 18px 28px;
        font-size: 0.875rem;
        border-bottom: 1px solid var(--mf-header-border);
    }

    .main-navigation .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.2);
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        max-width: none;
        min-width: 0;
    }

    .main-navigation .sub-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .main-navigation .sub-menu > li:last-child {
        border-bottom: none;
    }

    .main-navigation .sub-menu > li > a {
        padding: 14px 28px 14px 40px;
        font-size: 0.875rem;
    }

    .main-navigation li:hover > .sub-menu {
        transform: none;
    }
}

@media (max-width: 1024px) {
    .custom-logo {
        max-height: 52px;
    }
}

@media (max-width: 480px) {
    :root {
        --mf-header-h: 80px;
    }

    .header-inner {
        padding: 10px 0;
    }

    .custom-logo {
        max-height: 44px;
    }
}

/* ==========================================================================
   Hero Section - Estilo Barcoop Bevy
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1c1a1f;
    background-image: url('images/fondo-matifruti-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: calc(var(--mf-header-h) + var(--mf-space-xl)) var(--mf-gutter) var(--mf-space-2xl);
    position: relative;
    overflow: hidden;
}

/* Velo superior para que el header transparente conserve legibilidad */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(34, 32, 37, 0.42) 0%,
        rgba(34, 32, 37, 0.1) 30%,
        rgba(34, 32, 37, 0) 55%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* Tipografía base del título; el color y text-shadow tipo Barcoop
   se aplican vía .hero-heading-wrap en css/theme-ux.css */
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 0.95em;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    font-weight: 500;
    margin: 10px 0;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-subtitle--accent {
    font-weight: 600;
    color: #f8ebc8;
}

.hero-badge {
    display: inline-block;
    background: #222025;
    color: #FCCF0C;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 30px 0;
    box-shadow: 4px 4px 0 #FCCF0C;
}

.hero-scroll {
    margin-top: 60px;
}

.hero-scroll__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #222025;
    color: #FCCF0C;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 4px 4px 0 #FCCF0C;
    transition: transform 0.25s var(--mf-ease-out), box-shadow 0.25s var(--mf-ease-out);
}

.hero-scroll__btn:hover {
    color: #FCCF0C;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #FCCF0C;
}

@media (max-width: 768px) {
    .hero-title {
        letter-spacing: 0.01em;
    }

    .hero-badge {
        box-shadow: 3px 3px 0 #FCCF0C;
    }
}

/* ==========================================================================
   Header transparente sobre el hero (homepage)
   ========================================================================== */

body.home,
body.front-page {
    padding-top: 0;
}

body.home .site-header,
body.front-page .site-header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

body.home .site-header.is-scrolled,
body.front-page .site-header.is-scrolled {
    background: var(--mf-header-bg);
    border-bottom-color: var(--mf-header-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Aseguramos contraste del nav blanco sobre el velo oscuro del hero */
body.home .site-header:not(.is-scrolled) .main-navigation .menu > li > a,
body.home .site-header:not(.is-scrolled) .main-navigation .nav-menu > li > a,
body.front-page .site-header:not(.is-scrolled) .main-navigation .menu > li > a,
body.front-page .site-header:not(.is-scrolled) .main-navigation .nav-menu > li > a {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

body.home .site-header:not(.is-scrolled) .header-action,
body.front-page .site-header:not(.is-scrolled) .header-action {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mf-space-xl);
    max-width: var(--mf-container-max);
    margin: 0 auto;
    padding: 0 var(--mf-gutter);
}

@media (min-width: 768px) {
    .has-sidebar .content-area {
        grid-template-columns: 2fr 1fr;
    }
}

.widget-area {
    padding: 20px;
}

.widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.widget li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Navegación de Posts
   ========================================================================== */

.post-navigation,
.posts-pagination {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: bold;
    color: #0073aa;
}

/* ==========================================================================
   Paginación
   ========================================================================== */

.pagination {
    margin: 40px 0;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ==========================================================================
   Comentarios
   ========================================================================== */

.comments-area {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 2px solid #e9ecef;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.comment-body {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 15px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.comment-content {
    margin-top: 15px;
}

.reply {
    margin-top: 10px;
}

.comment-reply-link {
    font-size: 0.9rem;
    color: #0073aa;
}

.comment-form {
    margin-top: 40px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 150px;
}

.comment-form input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
}

.comment-form input[type="submit"]:hover {
    background-color: #005177;
}

/* ==========================================================================
   Archivos y Grid de Posts
   ========================================================================== */

.page-header {
    margin-bottom: var(--mf-space-xl);
    padding-bottom: var(--mf-space-md);
    border-bottom: 2px solid #e9ecef;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.archive-description {
    color: #6c757d;
    margin-top: 15px;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.archive-post {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.archive-post .post-thumbnail {
    overflow: hidden;
}

.archive-post .post-thumbnail img {
    transition: transform 0.3s ease;
}

.archive-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.archive-post .entry-header,
.archive-post .entry-summary,
.archive-post .entry-footer {
    padding: 20px;
}

.archive-post .entry-header {
    padding-bottom: 10px;
}

.archive-post .entry-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.archive-post .entry-meta {
    font-size: 0.85rem;
}

.read-more {
    display: inline-block;
    color: #0073aa;
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    color: #005177;
}

/* ==========================================================================
   Búsqueda
   ========================================================================== */

.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 20px 0;
}

.search-field {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    font-size: 1rem;
}

.search-submit {
    padding: 12px 25px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
}

.search-submit:hover {
    background-color: #005177;
}

.search-result {
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.search-result:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Error 404
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: var(--mf-section-py) var(--mf-gutter);
}

.error-404 .page-header {
    margin-bottom: var(--mf-space-xl);
    border-bottom: 0;
    padding-bottom: 0;
}

.error-404 .page-title {
    font-size: var(--mf-fs-display);
    color: var(--mf-ink, #222025);
}

.error-404-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
    text-align: left;
}

@media (min-width: 768px) {
    .error-404-widgets {
        grid-template-columns: repeat(3, 1fr);
    }
}

.widget-column h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.widget-column ul {
    list-style: none;
    padding: 0;
}

.widget-column li {
    padding: 5px 0;
}

.back-home {
    margin-top: 40px;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
}

.button:hover {
    background-color: #005177;
    color: #fff;
}

/* ==========================================================================
   Homepage Styles
   ========================================================================== */

/* Marquee de valores */
.marquee-section {
    background-color: #FCCF0C;
    color: #222025;
    padding: 18px 0;
    border-top: 1px solid rgba(34, 32, 37, 0.08);
    border-bottom: 1px solid rgba(34, 32, 37, 0.08);
    overflow: hidden;
}

.marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
}

.marquee__track {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    white-space: nowrap;
    animation: matifruti-marquee 28s linear infinite;
    will-change: transform;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
    animation-play-state: paused;
}

.marquee__item {
    font-size: clamp(1.1rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #222025;
    line-height: 1.1;
}

.marquee__sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #222025;
    opacity: 0.85;
    line-height: 0;
}

.marquee__sep svg {
    width: clamp(16px, 1.8vw, 22px);
    height: auto;
    display: block;
    transform-origin: center;
    animation: matifruti-marquee-spin 6s linear infinite;
}

@keyframes matifruti-marquee {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes matifruti-marquee-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee__track,
    .marquee__sep svg {
        animation: none;
    }
}

@media (max-width: 768px) {
    .marquee-section {
        padding: 14px 0;
    }

    .marquee__track {
        gap: 24px;
    }
}

/* Featured Products Section */
.featured-products-section,
.categories-section,
.about-section {
    padding: var(--mf-section-py) 0;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
    border-top: 1px solid rgba(34, 32, 37, 0.06);
}

.featured-products-section {
    background-color: #f3efe6;
}

/* Marquee premium (home) */
.marquee-section--premium {
    background: linear-gradient(90deg, #161518 0%, #242128 50%, #161518 100%);
    color: #f8ebc8;
    border-top: 1px solid rgba(252, 207, 12, 0.35);
    border-bottom: 1px solid rgba(252, 207, 12, 0.25);
}

.marquee-section--premium .marquee__item {
    color: #f5ecd4;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: clamp(0.95rem, 2vw, 1.35rem);
}

.marquee-section--premium .marquee__sep {
    color: #fccf0c;
    opacity: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--mf-space-xl);
}

.section-title {
    font-size: var(--mf-fs-h2);
    font-weight: var(--mf-display-weight);
    margin: 0 0 var(--mf-space-sm);
    color: #222025;
    line-height: 1.1;
}

.section-description {
    max-width: var(--mf-container-text);
    margin: 0 auto;
    font-size: var(--mf-fs-lead);
    line-height: 1.6;
    color: #6c757d;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: rgba(252, 207, 12, 0.12);
    color: #6b5a00;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
}

.section-eyebrow__dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FCCF0C;
    box-shadow: 0 0 0 0 rgba(252, 207, 12, 0.55);
    animation: matifruti-pulse 2.2s ease-out infinite;
}

.section-header--catalog .section-title {
    margin-top: 4px;
}

.section-header--catalog .section-description {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: #3f3d44;
    font-weight: 500;
    line-height: 1.55;
    max-width: 640px;
}

@keyframes matifruti-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(252, 207, 12, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(252, 207, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(252, 207, 12, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .section-eyebrow__dot {
        animation: none;
    }
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.producto-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.producto-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.producto-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.producto-badge.out-of-stock {
    background: #95a5a6;
}

.producto-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.producto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-image img {
    transform: scale(1.08);
}

.producto-content {
    padding: 25px;
}

.producto-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.producto-excerpt {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.producto-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 15px;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FCCF0C;
}

.price-unit {
    font-size: 0.95rem;
    color: #6c757d;
}

.producto-cta {
    color: #FCCF0C;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Categories Grid */
.categories-section {
    background: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-content {
    padding: 25px;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.category-count {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.category-link {
    color: #FCCF0C;
    font-weight: 600;
    text-decoration: none;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    aspect-ratio: 4 / 5;
    max-height: 560px;
    background-color: #efeade;
}

.about-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        aspect-ratio: 4 / 5;
        max-height: 480px;
    }
}

/* Newsletter Section */
.newsletter-section {
    background: #222025;
    color: #fff;
    padding: var(--mf-section-py) 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FCCF0C;
}

.newsletter-description {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid #FCCF0C;
    border-radius: 0;
    font-size: 1rem;
    background: transparent;
    color: #fff;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form button {
    padding: 15px 35px;
    border-radius: 0;
    background: #FCCF0C;
    color: #222025;
    border: 2px solid #FCCF0C;
    font-weight: 700;
}

.newsletter-form button:hover {
    background: transparent;
    color: #FCCF0C;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    border: 2px solid #222025;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button-primary {
    background: #FCCF0C;
    color: #222025;
    border-color: #FCCF0C;
}

.button-primary:hover {
    background: #222025;
    color: #FCCF0C;
    border-color: #222025;
}

.button-secondary {
    background: transparent;
    color: #222025;
    border-color: #222025;
}

.button-secondary:hover {
    background: #222025;
    color: #FCCF0C;
}

.button-outline {
    background: transparent;
    color: #222025;
    border-color: #222025;
}

.button-outline:hover {
    background: #FCCF0C;
    color: #222025;
    border-color: #FCCF0C;
}

/* ==========================================================================
   Single Producto Styles
   ========================================================================== */

.producto-single {
    padding: var(--mf-section-py-tight) 0;
}

.producto-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mf-space-xl);
    margin-bottom: var(--mf-space-xl);
}

@media (max-width: 968px) {
    .producto-main {
        grid-template-columns: 1fr;
        gap: var(--mf-space-lg);
    }
    .producto-gallery {
        position: static;
    }
}

/* Gallery */
.producto-gallery {
    position: sticky;
    top: 20px;
}

.gallery-main {
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.thumbnail-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: #FCCF0C;
}

/* Product Info */
.producto-header {
    margin-bottom: 30px;
}

.producto-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category-tag {
    background: #e9ecef;
    color: #495057;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: #FCCF0C;
    color: #222025;
}

.producto-price-section {
    margin: 20px 0;
}

.producto-price-section .price-amount {
    font-size: 2.5rem;
    color: #FCCF0C;
}

.stock-status {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stock-status.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.producto-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.producto-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.meta-item:last-child {
    border-bottom: none;
}

.producto-benefits {
    background: #e7f5ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.producto-benefits h3 {
    margin-bottom: 10px;
    color: #222025;
}

.producto-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Related Products */
.related-products {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #e9ecef;
}

.related-products .section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* ==========================================================================
   Archive Productos Styles
   ========================================================================== */

.archivo-productos {
    padding: var(--mf-section-py-tight) 0;
}

.productos-filters {
    margin: var(--mf-space-lg) 0 var(--mf-space-xl);
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 25px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #FCCF0C;
    border-color: #FCCF0C;
    color: #222025;
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* ==========================================================================
   Footer - Fondo oscuro Matifruti, layout 3 columnas + barra inferior
   ========================================================================== */

.site-footer {
    background-color: #222025;
    color: rgba(255, 255, 255, 0.78);
    padding: 72px 0 24px;
    border-top: 4px solid #FCCF0C;
    margin-top: 0;
    text-align: left;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* Grid superior con 3 columnas */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: clamp(32px, 5vw, 64px);
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    align-items: start;
}

.footer-col {
    min-width: 0;
}

/* Columna 1: marca */
.footer-logo {
    margin-bottom: 20px;
    line-height: 0;
}

/* Logo horizontal MATIFRUTI (blanco); sin invert — el recurso ya va sobre fondo oscuro */
.footer-logo-link {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-logo-link:hover {
    opacity: 0.88;
}

.footer-logo-link:focus-visible {
    outline: 2px solid #FCCF0C;
    outline-offset: 4px;
    border-radius: 2px;
}

.footer-logo-img {
    display: block;
    max-height: clamp(34px, 5.5vw, 44px);
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.footer-logo-text {
    font-family: var(--mf-font-display);
    font-size: 1.5rem;
    font-weight: var(--mf-display-weight);
    color: #FCCF0C;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--mf-display-tracking);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: 36ch;
}

/* Encabezado de columnas */
.footer-col-title {
    color: #FCCF0C;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
}

/* Menú del footer (vertical) */
.footer-navigation,
.footer-nav-col {
    margin: 0;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.footer-menu a:hover {
    color: #FCCF0C;
    transform: translateX(2px);
}

/* Redes sociales (pildora) */
.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    background: rgba(252, 207, 12, 0.14);
    color: #FCCF0C;
    border-color: rgba(252, 207, 12, 0.45);
    transform: translateY(-1px);
}

.footer-social-link svg {
    display: block;
}

/* Columna 3: contacto */
.footer-contact-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 18px;
}

.site-footer .footer-wa-btn {
    border-color: #FCCF0C;
    box-shadow: 4px 4px 0 #FCCF0C;
}

.site-footer .footer-wa-btn:hover {
    border-color: #FCCF0C;
    box-shadow: 6px 6px 0 #FCCF0C;
}

.site-footer .footer-wa-btn:active {
    box-shadow: 2px 2px 0 #FCCF0C;
}

/* Barra inferior */
.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copyright,
.footer-credit {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.5;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: #FCCF0C;
}

.footer-dot {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 56px 0 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 36px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Tipografía compartida — lead text usado en Nosotros / FAQ / Contacto
   ========================================================================== */
.lead-text {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.7;
    color: #555;
}

/* ==========================================================================
   Acordeón FAQ — base accesible (overrides modernos viven en theme-ux.css)
   ========================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #fff;
    border: 2px solid #EFEADE;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: background-color 0.3s ease;
}

.faq-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222025;
    flex: 1;
}

.faq-icon {
    font-size: 1.25rem;
    color: #222025;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer-content {
    padding: 0 24px 24px 24px;
    color: #555;
    line-height: 1.7;
}

.faq-answer-content p {
    margin-bottom: 14px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background-color: #f8f9fa;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #0073aa;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Optimización mobile final — afina escala, gaps y manejo de overflow.
   ========================================================================== */

/* Bungee es ancha: con titulos largos ("Fruta deshidratada para una barra…")
   el text-wrap balance ayuda a romper en líneas equilibradas. Ya está en el
   :root pero reforzamos en pantallas estrechas para evitar overflow. */
@media (max-width: 600px) {
    h1, h2, .hero-title, .entry-title, .page-title,
    .nosotros-hero__title, .info-hero__title, .faq-hero__title, .contacto-hero__title, .legal-hero__title {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .section-header {
        margin-bottom: var(--mf-space-lg);
    }

    .page-header {
        margin-bottom: var(--mf-space-lg);
    }

    /* Hero del home: bajamos el min-height para evitar pantallas vacías */
    .hero-section {
        min-height: clamp(560px, 80svh, 720px);
    }

    /* Marquee: gaps más compactos */
    .marquee-section--premium .marquee__item {
        font-size: 1.05rem;
    }
}

/* Espacios consistentes para artículos (page.php, single.php) */
.entry-header {
    margin-bottom: var(--mf-space-md);
}

.entry-content > * + * {
    margin-top: var(--mf-space-md);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--mf-space-xl);
}

.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child {
    margin-top: 0;
}

/* Botones: tipografía Nunito firme (no Bungee, para que sean legibles) */
.button,
button.button,
input[type="submit"].button {
    font-family: var(--mf-font-body);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
