/* =========================================================
   KAKO GOURMET · ESTILOS PRINCIPALES
   Diseño premium editorial · Fully responsive
   ========================================================= */

/* --- VARIABLES DE MARCA --- */
:root {
    --primary-red: #7a0d0d;
    --dark-red: #4a0505;
    --deep-red: #2a0505;
    --footer-bg: #140202;
    --bg-white: #ffffff;
    --bg-soft: #faf7f2;
    --bg-cream: #f5efe6;
    --bg-dark: #0f0808;
    --text-black: #1a1a1a;
    --text-muted: #6b6b6b;
    --gold-accent: #c5a059;
    --gold-light: #e4c98a;
    --gold-dark: #8f6f2f;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 12px 30px rgba(0,0,0,0.10);
    --shadow-lg: 0 25px 60px rgba(0,0,0,0.18);
    --shadow-xl: 0 40px 80px rgba(0,0,0,0.25);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    --radius: 6px;
    --header-h: 78px;
    --container: 1300px;
}

/* --- RESET --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Assistant', 'Segoe UI', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-black);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

::selection { background: var(--gold-accent); color: #fff; }

/* Scrollbar principal */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f6f0e6; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-accent), var(--gold-dark));
    border-radius: 5px;
}

/* Wrapper */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 5%;
}

/* Scroll progress bar (top) */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-accent));
    z-index: 2000;
    transition: width 0.1s ease-out;
}

/* =========================================================
   HEADER · Glassmorphism + hamburguesa
   ========================================================= */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: rgba(255,255,255,0.82);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    padding: 1.1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.04);
    transition: var(--transition);
}
header.scrolled {
    padding: 0.7rem 5%;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-red);
    transition: var(--transition);
    z-index: 1010;
    position: relative;
    line-height: 0;
}
.logo img {
    height: 54px;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}
.logo:hover img {
    transform: translateY(-1px) scale(1.03);
    filter: drop-shadow(0 6px 14px rgba(74,5,5,0.25));
}
header.scrolled .logo img { height: 46px; }

nav ul {
    display: flex;
    list-style: none;
    gap: 2.4rem;
    align-items: center;
}

.nav-item { position: relative; }

.nav-link {
    text-decoration: none;
    color: var(--text-black);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--gold-accent);
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-link:hover { color: var(--dark-red); }
.nav-link:hover::after { width: 100%; }

/* Hamburguesa */
.nav-toggle { display: none; }
.nav-hamburger {
    display: none;
    width: 34px; height: 26px;
    position: relative;
    cursor: pointer;
    z-index: 1010;
}
.nav-hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--dark-red);
    border-radius: 2px;
    transition: transform 0.35s ease, top 0.35s ease, opacity 0.2s ease;
}
.nav-hamburger span:nth-child(1) { top: 4px; }
.nav-hamburger span:nth-child(2) { top: 12px; }
.nav-hamburger span:nth-child(3) { top: 20px; }

/* =========================================================
   HERO · Cinematográfico
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(rgba(15,0,0,0.55), rgba(15,0,0,0.85)),
        url('https://images.unsplash.com/photo-1551028150-64b9f398f678?auto=format&fit=crop&q=80&w=1920') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 6rem 1.5rem 4rem;
    margin-top: 0;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}
.hero::after {
    content: 'KAKO';
    position: absolute;
    bottom: -3rem;
    right: -1rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(6rem, 22vw, 20rem);
    color: rgba(255,255,255,0.035);
    letter-spacing: 0.5rem;
    pointer-events: none;
    line-height: 1;
    font-weight: 900;
}
.hero > * { position: relative; z-index: 2; }

.hero .eyebrow {
    display: inline-block;
    color: var(--gold-light);
    letter-spacing: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(197,160,89,0.4);
    animation: fadeUp 1s ease both;
}
.hero h1 {
    font-size: clamp(2.4rem, 6.5vw, 5rem);
    margin-bottom: 1.4rem;
    text-shadow: 0 4px 40px rgba(0,0,0,0.6);
    animation: fadeUp 1s 0.15s ease both;
    max-width: 900px;
}
.hero h1 em {
    font-style: italic;
    color: var(--gold-light);
    font-weight: 700;
}
.hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 2.5rem;
    max-width: 620px;
    color: rgba(255,255,255,0.92);
    font-weight: 300;
    animation: fadeUp 1s 0.3s ease both;
}
.hero .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 1s 0.45s ease both;
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 3;
    animation: fadeUp 1.4s 1s ease both;
}
.scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
    margin: 12px auto 0;
    animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn-gourmet {
    display: inline-block;
    padding: 1rem 2.6rem;
    background: var(--primary-red);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 2px solid var(--primary-red);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(122,13,13,0.25);
    z-index: 1;
}
.btn-gourmet::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-accent);
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}
.btn-gourmet:hover {
    color: #fff;
    border-color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(197,160,89,0.35);
}
.btn-gourmet:hover::before { transform: translateX(0); }

.btn-ghost {
    display: inline-block;
    padding: 1rem 2.6rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: var(--radius);
    transition: var(--transition);
}
.btn-ghost:hover {
    background: #fff;
    color: var(--dark-red);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-gourmet-small {
    padding: 9px 16px;
    font-size: 0.7rem;
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 3px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-gourmet-small::after { content: '→'; transition: transform 0.3s ease; }
.btn-gourmet-small:hover {
    background: var(--gold-accent);
    color: #1a1a1a;
}
.btn-gourmet-small:hover::after { transform: translateX(4px); }

/* =========================================================
   SECCIONES · TÍTULOS
   ========================================================= */
main { background: var(--bg-white); }

section { padding: 0; }

.section-title {
    text-align: center;
    margin: 5.5rem auto 2.5rem;
    padding: 0 1rem;
    max-width: 800px;
}
.section-title h2 {
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    color: var(--dark-red);
    margin-bottom: 0.4rem;
}
.section-title .eyebrow {
    display: block;
    color: var(--gold-accent);
    letter-spacing: 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.line {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
    margin: 14px auto 0;
    border: none;
}

/* =========================================================
   FILOSOFÍA · 3 pilares
   ========================================================= */
.pillars {
    padding: 6rem 5% 5rem;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}
.pillars::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(197,160,89,0.06), transparent 45%),
                radial-gradient(circle at 80% 70%, rgba(122,13,13,0.05), transparent 45%);
    pointer-events: none;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
}
.pillar {
    background: #fff;
    padding: 3rem 2.2rem;
    border-radius: 10px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(197,160,89,0.15);
    overflow: hidden;
}
.pillar::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-accent), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.pillar:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.pillar:hover::before { transform: scaleX(1); }

.pillar-number {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: var(--gold-accent);
    opacity: 0.25;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.pillar h3 {
    font-size: 1.5rem;
    color: var(--dark-red);
    margin-bottom: 1rem;
}
.pillar p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================================================
   CARRUSEL DE PRODUCTOS (index) — CENTRADO ARREGLADO
   ========================================================= */
.slider-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem; /* padding fijo, ya no % que crecía con el viewport */
    position: relative;
}
.slider-container {
    display: flex;
    /* `safe center`: centra cuando caben, cae a flex-start si desbordan (protege primer/último) */
    justify-content: safe center;
    gap: 1.4rem;
    padding: 1.5rem 0.5rem 2.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.5rem;
}
.slider-container::-webkit-scrollbar { display: none; }

/* En móvil, cuando el contenido desborda, alinear al inicio para permitir scroll completo */
@media (max-width: 900px) {
    .slider-container { justify-content: flex-start; }
}

.product-card {
    min-width: 260px;
    flex: 0 0 260px;
    height: 400px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    scroll-snap-align: center;
    isolation: isolate;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.1s cubic-bezier(0.25, 1, 0.5, 1);
    filter: saturate(1.05);
}
.product-card:hover .product-image { transform: scale(1.12); }

/* Numeración de tarjeta */
.product-card::before {
    content: attr(data-num);
    position: absolute;
    top: 1rem; left: 1.2rem;
    font-family: 'Playfair Display', serif;
    color: var(--gold-accent);
    font-size: 0.95rem;
    letter-spacing: 2px;
    z-index: 3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.product-card::after {
    content: '';
    position: absolute;
    top: 1.4rem; left: 3rem;
    width: 24px; height: 1px;
    background: var(--gold-accent);
    z-index: 3;
    transition: width 0.5s ease;
}
.product-card:hover::after { width: 60px; }

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(15,3,3,0.95) 0%,
        rgba(15,3,3,0.55) 45%,
        transparent 75%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
    transition: var(--transition);
    z-index: 2;
}
.card-overlay h3 {
    color: #fff;
    font-size: 1.45rem;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    line-height: 1.15;
}

.button-center-container {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 6rem;
}

/* =========================================================
   NUESTRA HISTORIA · Split image + text
   ========================================================= */
.story {
    padding: 7rem 5%;
    background: var(--bg-white);
    overflow: hidden;
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: var(--container);
    margin: 0 auto;
    align-items: center;
}
.story-image {
    position: relative;
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(45deg, rgba(74,5,5,0.15), transparent 60%),
        url('https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&q=80&w=900') center/cover;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}
.story-image::before {
    content: '';
    position: absolute;
    top: -22px; left: -22px;
    width: 100%; height: 100%;
    border: 2px solid var(--gold-accent);
    border-radius: 8px;
    z-index: -1;
}
.story-content .eyebrow {
    display: block;
    color: var(--gold-accent);
    letter-spacing: 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
}
.story-content h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    color: var(--dark-red);
    margin-bottom: 1.4rem;
    line-height: 1.15;
}
.story-content h2 em { color: var(--gold-accent); font-style: italic; }
.story-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}
.story-signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--dark-red);
    font-size: 1.4rem;
    margin-top: 1.5rem;
}

/* =========================================================
   TESTIMONIO / CITA
   ========================================================= */
.quote-section {
    padding: 7rem 5%;
    background:
        linear-gradient(rgba(20,2,2,0.85), rgba(20,2,2,0.92)),
        url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&q=80&w=1600') center/cover fixed;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.quote-section::before {
    content: '\201C';
    position: absolute;
    top: -3rem; left: 50%;
    transform: translateX(-50%);
    font-family: 'Playfair Display', serif;
    font-size: 20rem;
    color: rgba(197,160,89,0.15);
    line-height: 1;
    pointer-events: none;
}
.quote-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.quote-content blockquote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    font-style: italic;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}
.quote-author {
    display: inline-block;
    color: var(--gold-light);
    letter-spacing: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(197,160,89,0.4);
}
.quote-author span { display: block; color: rgba(255,255,255,0.5); font-size: 0.7rem; letter-spacing: 2px; margin-top: 4px; }

/* =========================================================
   CONTACTO / VISÍTANOS
   ========================================================= */
.contact {
    padding: 6rem 5% 7rem;
    background: var(--bg-cream);
    position: relative;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--container);
    margin: 3rem auto 0;
}
.contact-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 3px solid var(--gold-accent);
}
.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.contact-icon {
    width: 52px; height: 52px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197,160,89,0.12);
    border-radius: 50%;
    color: var(--gold-dark);
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-card h4 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-red);
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}
.contact-card a { color: var(--dark-red); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--gold-accent); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 5rem 5% 2rem;
    position: relative;
    text-align: left;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--container);
    margin: 0 auto;
}
.footer-grid > div p { color: rgba(255,255,255,0.72); font-size: 0.92rem; margin-bottom: 0.4rem; }
.footer-grid > div p a { text-decoration: none; transition: color 0.3s ease; }
.footer-grid > div p a:hover { color: var(--gold-light); }

.footer-grid h3, .footer-grid h4 {
    color: var(--gold-accent);
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}
.footer-grid h3 { font-size: 1.7rem; }
.footer-grid h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-family: 'Assistant', sans-serif;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}
.social-icons a {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197,160,89,0.4);
    border-radius: 50%;
    color: var(--gold-light);
    transition: var(--transition);
    text-decoration: none;
}
.social-icons a:hover {
    background: var(--gold-accent);
    color: #1a1a1a;
    border-color: var(--gold-accent);
    transform: translateY(-3px);
}
.social-icons svg { width: 16px; height: 16px; }

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    letter-spacing: 1px;
}

/* =========================================================
   SUBPAGE HERO (Carnes, Quesos, Vinos)
   Fondo se define via inline style="background-image: url(...)"
   ========================================================= */
.subpage-hero {
    position: relative;
    min-height: 78vh;
    padding: 8rem 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-color: #1a0000;
    background-size: cover;
    background-position: center;
}
.subpage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(10,0,0,0.55), rgba(10,0,0,0.85)),
        radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}
.subpage-hero::after {
    content: attr(data-watermark);
    position: absolute;
    bottom: -3rem;
    right: -1rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(6rem, 22vw, 18rem);
    color: rgba(255,255,255,0.035);
    letter-spacing: 0.5rem;
    line-height: 1;
    font-weight: 900;
    pointer-events: none;
    z-index: 1;
}
.subpage-hero > * { position: relative; z-index: 2; }

.subpage-hero .eyebrow {
    display: inline-block;
    color: var(--gold-light);
    letter-spacing: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(197,160,89,0.4);
    animation: fadeUp 1s ease both;
}
.subpage-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 40px rgba(0,0,0,0.6);
    animation: fadeUp 1s 0.15s ease both;
    max-width: 900px;
}
.subpage-hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 700; }
.subpage-hero p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    max-width: 620px;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    animation: fadeUp 1s 0.3s ease both;
    margin-bottom: 0;
}

/* =========================================================
   INTRO SPLIT (imagen + texto para subpáginas)
   ========================================================= */
.intro-split {
    padding: 6.5rem 5%;
    background: var(--bg-white);
    overflow: hidden;
}
.intro-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 5rem;
    max-width: var(--container);
    margin: 0 auto;
    align-items: center;
}
.intro-split.reverse .intro-split-grid { grid-template-columns: 1.05fr 1fr; direction: rtl; }
.intro-split.reverse .intro-split-grid > * { direction: ltr; }

.intro-split-image {
    position: relative;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}
.intro-split-image::before {
    content: '';
    position: absolute;
    top: -22px; left: -22px;
    width: 100%; height: 100%;
    border: 2px solid var(--gold-accent);
    border-radius: 8px;
    z-index: -1;
}
.intro-split-content .eyebrow {
    display: block;
    color: var(--gold-accent);
    letter-spacing: 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
}
.intro-split-content h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    color: var(--dark-red);
    margin-bottom: 1.4rem;
    line-height: 1.15;
}
.intro-split-content h2 em { color: var(--gold-accent); font-style: italic; }
.intro-split-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(197,160,89,0.25);
}
.intro-stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    color: var(--dark-red);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.4rem;
    font-weight: 700;
}
.intro-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

/* =========================================================
   PROCESS BAND · 3 pasos en fondo oscuro
   ========================================================= */
.process-band {
    padding: 6rem 5%;
    background: var(--bg-dark);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.process-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 40%, rgba(122,13,13,0.35), transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(197,160,89,0.15), transparent 50%);
    pointer-events: none;
}
.process-band .section-title { margin-top: 0; }
.process-band .section-title h2 { color: #fff; }
.process-band .section-title .eyebrow { color: var(--gold-accent); }
.process-band .line { background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: var(--container);
    margin: 3rem auto 0;
    position: relative;
}
.process-step {
    text-align: center;
    padding: 1rem;
    transition: var(--transition);
}
.process-icon {
    width: 68px; height: 68px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gold-accent);
    border-radius: 50%;
    color: var(--gold-light);
    transition: var(--transition);
    background: rgba(197,160,89,0.05);
}
.process-step:hover .process-icon {
    background: var(--gold-accent);
    color: #0f0808;
    transform: rotate(-6deg) scale(1.05);
}
.process-icon svg { width: 26px; height: 26px; }
.process-step h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-light);
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
    letter-spacing: 0.5px;
}
.process-step p {
    color: rgba(255,255,255,0.72);
    font-size: 0.94rem;
    line-height: 1.75;
    max-width: 300px;
    margin: 0 auto;
}

/* =========================================================
   REEL SECTION · Vídeos verticales (Instagram-style)
   ========================================================= */
.reel-section {
    padding: 6.5rem 5% 6rem;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}
.reel-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(122,13,13,0.05), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(197,160,89,0.08), transparent 45%);
    pointer-events: none;
}
.reel-section .section-title { position: relative; z-index: 1; }

.reel-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: var(--container);
    margin: 3rem auto 0;
    position: relative;
}
.reel-card {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 12px;
    background: #0f0808;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    isolation: isolate;
}
.reel-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.reel-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    background: #0f0808;
}
.reel-card:hover video { transform: scale(1.03); }

/* Marco dorado sutil al pasar */
.reel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid transparent;
    border-radius: 12px;
    pointer-events: none;
    transition: border-color 0.4s ease;
    z-index: 5;
}
.reel-card:hover::before { border-color: rgba(197,160,89,0.7); }

/* Overlay con badge Reel · se oculta al reproducir */
.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,3,3,0.6) 0%, transparent 45%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0.9rem;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.35s ease;
}
.reel-card.is-playing .reel-overlay { opacity: 0; }
.reel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(197,160,89,0.92);
    color: #1a0000;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 3px;
    backdrop-filter: blur(4px);
}
.reel-badge svg { width: 10px; height: 10px; }

/* Botón play grande centrado */
.reel-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(15,3,3,0.55) 0%, rgba(15,3,3,0.2) 100%);
    cursor: pointer;
    z-index: 3;
    border: none;
    color: inherit;
    padding: 0;
    transition: opacity 0.35s ease, background 0.35s ease;
}
.reel-play-btn::before {
    content: '';
    width: clamp(44px, 5vw, 62px);
    height: clamp(44px, 5vw, 62px);
    border-radius: 50%;
    background: rgba(197,160,89,0.95);
    position: absolute;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    transition: transform 0.35s ease;
}
.reel-card:hover .reel-play-btn::before { transform: scale(1.08); }
.reel-play-btn svg {
    width: clamp(16px, 1.8vw, 22px);
    height: clamp(16px, 1.8vw, 22px);
    position: relative;
    z-index: 1;
    color: #1a0000;
    margin-left: 3px; /* ajuste óptico del triángulo */
    transition: transform 0.35s ease;
}
.reel-card.is-playing .reel-play-btn {
    opacity: 0;
    pointer-events: none;
    background: transparent;
}

/* Controles nativos del vídeo · aparecen abajo al reproducir */
.reel-card video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(15,3,3,0.85), transparent);
}
.reel-card video::-webkit-media-controls-play-button,
.reel-card video::-webkit-media-controls-volume-slider,
.reel-card video::-webkit-media-controls-mute-button,
.reel-card video::-webkit-media-controls-timeline {
    filter: hue-rotate(-15deg) saturate(1.2);
}

/* Responsive · SIEMPRE 5 columnas (los 5 en la misma fila) */
@media (max-width: 900px) {
    .reel-section { padding: 4.5rem 5%; }
    .reel-grid { gap: 0.6rem; }
}
@media (max-width: 600px) {
    .reel-grid { gap: 0.4rem; }
}
@media (max-width: 400px) {
    .reel-grid { gap: 0.3rem; }
}

/* =========================================================
   REVEAL ANIMACIÓN (Intersection Observer)
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet grande */
@media (max-width: 1024px) {
    nav ul { gap: 1.8rem; }
    .story-grid { gap: 3rem; }
    .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
}

/* Tablet */
@media (max-width: 900px) {
    .pillars-grid { grid-template-columns: 1fr; gap: 1.5rem; max-width: 560px; }
    .story-grid { grid-template-columns: 1fr; gap: 3rem; }
    .story-image { aspect-ratio: 5/4; max-width: 520px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; max-width: 500px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .hero { background-attachment: scroll; }
    .quote-section { background-attachment: scroll; }

    /* Subpage */
    .intro-split-grid { grid-template-columns: 1fr; gap: 3rem; }
    .intro-split.reverse .intro-split-grid { direction: ltr; grid-template-columns: 1fr; }
    .intro-split-image { aspect-ratio: 5/4; max-width: 520px; margin: 0 auto; }
    .process-grid { grid-template-columns: 1fr; gap: 2.2rem; max-width: 400px; }
}

/* Tablet · hamburguesa */
@media (max-width: 820px) {
    .nav-hamburger { display: block; }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(80vw, 340px);
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 4rem 2rem;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        transition: right 0.45s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1005;
    }
    .nav-toggle:checked ~ nav ul { right: 0; }
    .nav-toggle:checked ~ .nav-hamburger span:nth-child(1) { top: 12px; transform: rotate(45deg); }
    .nav-toggle:checked ~ .nav-hamburger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-hamburger span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

    .nav-link { font-size: 1rem; }

    .hero { min-height: 92vh; padding: 5rem 1.2rem 3rem; }
    .section-title { margin: 3.5rem auto 1.5rem; }
    .product-card { min-width: 260px; flex-basis: 260px; height: 380px; }
    .card-overlay h3 { font-size: 1.25rem; }
    .pillars, .story, .quote-section, .contact { padding-block: 4.5rem; }
}

/* Móvil */
@media (max-width: 560px) {
    header { padding: 0.7rem 5%; }
    .logo img { height: 42px; }
    header.scrolled .logo img { height: 38px; }
    .hero { min-height: 88vh; padding: 4.5rem 1rem 3rem; }
    .hero .eyebrow { letter-spacing: 4px; font-size: 0.68rem; }
    .btn-gourmet, .btn-ghost { padding: 0.9rem 1.8rem; letter-spacing: 1.8px; font-size: 0.78rem; }
    .hero-actions { flex-direction: column; align-items: stretch; max-width: 260px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; text-align: center; }
    .social-icons { justify-content: center; }
    .footer-bottom { margin-top: 2.5rem; }
    .product-card { min-width: 80vw; flex-basis: 80vw; height: 320px; }
    .card-overlay { padding: 1.4rem; }
    .pillar { padding: 2.2rem 1.6rem; }
    .pillar-number { font-size: 3.5rem; }
    .quote-content blockquote { font-size: 1.15rem; }
    .quote-section::before { font-size: 12rem; top: -1.5rem; }
    section { padding: 0; }

    /* Subpage responsive */
    .subpage-hero { min-height: 68vh; padding: 6rem 1rem 3.5rem; }
    .intro-split { padding: 4rem 5%; }
    .intro-stats { gap: 0.6rem; }
    .intro-stat strong { font-size: 1.5rem; }
    .intro-stat span { font-size: 0.65rem; letter-spacing: 1px; }
    .process-band { padding: 4rem 5%; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    .scroll-indicator::after { animation: none; }
}
