/* ============================================
   CALI GASTROWEB — v5 Complete Redesign
   Fonts: Outfit + Inter
   Colors: Teal + Coral + White
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0D7377;
    --primary-light: #15959A;
    --primary-dark: #095456;
    --accent: #FF6B35;
    --accent-light: #FF8A5C;
    --accent-dark: #E55A2B;
    --green: #22C55E;
    --gold: #F59E0B;

    --bg-white: #FFFFFF;
    --bg-light: #F5F5F7;
    --bg-warm: #FFF8F0;
    --bg-dark: #0A1628;
    --bg-dark-2: #111D32;
    --bg-dark-3: #1A2940;

    --text-dark: #1E293B;
    --text-body: #475569;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --text-white: #F8FAFC;

    --border: #E2E8F0;
    --border-light: #F1F5F9;

    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --s-xs: 0.25rem;
    --s-sm: 0.5rem;
    --s-md: 1rem;
    --s-lg: 1.5rem;
    --s-xl: 2rem;
    --s-2xl: 3rem;
    --s-3xl: 4rem;
    --s-4xl: 6rem;
    --s-5xl: 8rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

    --t-fast: 0.15s;
    --t-base: 0.3s;
    --t-slow: 0.5s;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    --container: 1200px;
}


/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-body);
    background: var(--bg-white);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-dark); }
em { font-style: italic; color: var(--accent); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-xl); }


/* === Preloader === */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-dark);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-icon { font-size: 3rem; animation: pulse 1s ease infinite; }
.preloader-text { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; color: var(--text-white); margin-top: var(--s-sm); letter-spacing: -0.02em; }
.preloader-bar { width: 180px; height: 3px; background: var(--bg-dark-3); border-radius: var(--radius-full); margin-top: var(--s-lg); overflow: hidden; }
.preloader-bar-fill { width: 0; height: 100%; background: var(--accent); border-radius: var(--radius-full); animation: fillBar 1.2s ease forwards; }
@keyframes fillBar { to { width: 100%; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }


/* === Header === */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
    padding: var(--s-sm) 0;
    transition: all var(--t-base) var(--ease);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 0 var(--border);
}
.header.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: var(--s-xs) 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
    display: flex; align-items: center; gap: var(--s-sm);
    font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
    color: var(--text-dark); letter-spacing: -0.03em;
}
.nav-logo-icon { font-size: 1.5rem; }
.nav-menu { display: flex; gap: var(--s-lg); list-style: none; }
.nav-link {
    font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--text-light);
    padding: var(--s-xs) var(--s-sm); border-radius: var(--radius-sm);
    transition: all var(--t-fast);
}
.nav-link:hover { color: var(--primary); background: rgba(13,115,119,0.06); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link::after { display: none; }

.nav-toggle { display: none; background: rgba(13,115,119,0.08); border: 2px solid var(--primary); border-radius: var(--radius-md); cursor: pointer; width: 42px; height: 38px; position: relative; z-index: 9001; padding: 8px 6px; justify-content: center; align-items: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 100%; height: 3px; background: var(--primary); border-radius: var(--radius-full); transition: all var(--t-base) var(--ease); flex-shrink: 0; }
.nav-toggle span:nth-child(2) { margin: 0; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }


/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; gap: var(--s-sm);
    font-family: var(--font-heading); font-weight: 600;
    padding: 0.75rem 1.75rem; border-radius: var(--radius-lg); letter-spacing: -0.01em;
    font-size: 0.9rem; cursor: pointer; transition: all var(--t-base) var(--ease);
    border: 2px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,115,119,0.3); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,53,0.3); }
.btn-outline { background: transparent; color: var(--text-white); border-color: rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-secondary { background: var(--bg-light); color: var(--text-dark); border-color: var(--border); }
.btn-secondary:hover { background: var(--border); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-dark { background: var(--bg-dark); color: #fff; border-color: var(--bg-dark); }
.btn-dark:hover { background: var(--bg-dark-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }


/* ============================================
   HERO — Modern centered with image bento
   ============================================ */
.hero-v2 {
    background: var(--bg-dark);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh;
    padding-top: 80px;
    position: relative; overflow: hidden;
}
.hero-v2::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(13,115,119,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,107,53,0.1) 0%, transparent 50%);
}
.hero-v2-inner {
    display: flex; flex-direction: column; align-items: center;
    padding: var(--s-2xl) 0;
    position: relative; z-index: 1;
    text-align: center;
}
.hero-v2-badge {
    display: inline-flex; align-items: center; gap: var(--s-sm);
    font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--accent); padding: var(--s-sm) var(--s-lg);
    background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.2);
    border-radius: var(--radius-full); margin-bottom: var(--s-xl);
}
.hero-v2-title {
    font-family: var(--font-heading); font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 800; line-height: 1.05; color: var(--text-white);
    margin-bottom: var(--s-lg); letter-spacing: -0.03em;
}
.hero-v2-title em { color: var(--accent); font-style: normal; }
.hero-v2-desc {
    font-size: 1.1rem; line-height: 1.7; color: var(--text-muted);
    margin-bottom: 0; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-v2-stats { display: flex; gap: var(--s-2xl); justify-content: center; }
.hero-v2-stat strong {
    font-family: var(--font-heading); font-size: 2rem; font-weight: 800;
    color: var(--text-white); display: block; letter-spacing: -0.02em;
}
.hero-v2-stat span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* Hero Carousel Strip */
.hero-carousel {
    width: 100%; overflow: hidden;
    padding: var(--s-2xl) 0;
    position: relative; z-index: 1;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.hero-carousel-track {
    display: flex; gap: var(--s-lg);
    animation: carouselScroll 40s linear infinite;
    width: max-content;
}
.hero-carousel-item {
    flex-shrink: 0; width: 220px; position: relative;
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-carousel-item img {
    width: 100%; height: 160px; object-fit: cover;
    display: block;
}
.hero-carousel-item span {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, transparent 100%);
    color: #fff; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
    padding: 20px 12px 8px; text-align: center;
}
@keyframes carouselScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.hero-carousel:hover .hero-carousel-track {
    animation-play-state: paused;
}


/* ============================================
   ABOUT STRIP
   ============================================ */
.about-strip {
    padding: var(--s-4xl) 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}
.about-strip-inner {
    display: grid; grid-template-columns: 1fr 1.5fr;
    gap: var(--s-3xl); align-items: start;
}
.about-strip-text h2 {
    font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700; color: var(--text-dark); line-height: 1.2;
    margin: var(--s-md) 0 var(--s-lg); letter-spacing: -0.02em;
}
.about-strip-text p { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }
.about-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); }
.about-feature {
    padding: var(--s-xl); background: var(--bg-light); border-radius: var(--radius-xl);
    text-align: center; transition: all var(--t-base) var(--ease); border: 1px solid transparent;
}
.about-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); background: var(--bg-white); }
.about-feature-icon { font-size: 2rem; margin-bottom: var(--s-md); }
.about-feature h4 { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin-bottom: var(--s-xs); }
.about-feature p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }


/* ============================================
   SECTION UTILITIES
   ============================================ */
.section-tag {
    display: inline-block; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary);
    padding: var(--s-xs) var(--s-md); background: rgba(13,115,119,0.08);
    border-radius: var(--radius-full); margin-bottom: var(--s-md);
}
.section-tag-light { color: var(--accent); background: rgba(255,107,53,0.12); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto var(--s-3xl); }
.section-title {
    font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700; line-height: 1.15; color: var(--text-dark);
    margin-top: var(--s-sm); letter-spacing: -0.02em;
}
.section-title em { color: var(--accent); font-style: normal; }
.section-subtitle { font-size: 1rem; color: var(--text-light); margin-top: var(--s-md); line-height: 1.7; }
.section-cta { text-align: center; margin-top: var(--s-3xl); }


/* ============================================
   SHOWCASE — Alternating dish rows
   ============================================ */
.showcase-section { padding: var(--s-5xl) 0; background: var(--bg-light); }

.showcase-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3xl);
    align-items: center; margin-bottom: var(--s-4xl);
}
.showcase-row-reverse { direction: rtl; }
.showcase-row-reverse > * { direction: ltr; }

.showcase-img {
    position: relative; border-radius: var(--radius-2xl); overflow: hidden;
    aspect-ratio: 4/3; box-shadow: var(--shadow-xl);
}
.showcase-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.showcase-img:hover img { transform: scale(1.04); }
.showcase-badge {
    position: absolute; top: var(--s-lg); left: var(--s-lg);
    background: var(--accent); color: #fff;
    font-family: var(--font-heading); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 6px 14px; border-radius: var(--radius-full);
}
.showcase-category {
    font-family: var(--font-heading); font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--primary); margin-bottom: var(--s-sm); display: block;
}
.showcase-info h3 {
    font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700; color: var(--text-dark); margin-bottom: var(--s-md);
    line-height: 1.15; letter-spacing: -0.02em;
}
.showcase-info p {
    font-size: 0.95rem; color: var(--text-light); line-height: 1.7;
    margin-bottom: var(--s-lg);
}
.showcase-meta {
    display: flex; gap: var(--s-xl); font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: var(--s-xl); font-weight: 500;
}

/* Duo cards */
.showcase-duo {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xl);
    margin-bottom: var(--s-2xl);
}
.showcase-duo-card {
    background: var(--bg-white); border-radius: var(--radius-2xl); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: all var(--t-base) var(--ease);
}
.showcase-duo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.showcase-duo-img { aspect-ratio: 16/9; overflow: hidden; }
.showcase-duo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.showcase-duo-card:hover .showcase-duo-img img { transform: scale(1.05); }
.showcase-duo-info { padding: var(--s-xl); }
.showcase-duo-info h3 {
    font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
    color: var(--text-dark); margin-bottom: var(--s-sm); letter-spacing: -0.01em;
}
.showcase-duo-info p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: var(--s-lg); }


/* ============================================
   CULTURAL ROOTS
   ============================================ */
.roots-section { padding: var(--s-5xl) 0; background: var(--bg-white); }
.roots-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4xl); align-items: center;
}
.roots-img-stack { position: relative; }
.roots-img-main {
    border-radius: var(--radius-2xl); width: 100%; aspect-ratio: 4/3; object-fit: cover;
    box-shadow: var(--shadow-xl);
}
.roots-img-accent {
    position: absolute; bottom: -24px; right: -16px; width: 42%; aspect-ratio: 1;
    border-radius: var(--radius-xl); overflow: hidden; border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-lg);
}
.roots-img-accent img { width: 100%; height: 100%; object-fit: cover; }
.roots-title {
    font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700; color: var(--text-dark); line-height: 1.15;
    margin: var(--s-md) 0 var(--s-lg); letter-spacing: -0.02em;
}
.roots-title em { color: var(--accent); font-style: normal; }
.roots-text { font-size: 1rem; color: var(--text-light); line-height: 1.7; margin-bottom: var(--s-xl); }
.roots-list { display: flex; flex-direction: column; gap: var(--s-md); margin-bottom: var(--s-2xl); }
.roots-item {
    display: flex; gap: var(--s-lg); align-items: flex-start;
    padding: var(--s-lg); background: var(--bg-light); border-radius: var(--radius-lg);
    transition: all var(--t-fast);
}
.roots-item:hover { background: var(--bg-white); box-shadow: var(--shadow-md); }
.roots-item-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.roots-item h4 { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.roots-item p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }


/* ============================================
   MAP PREVIEW
   ============================================ */
.map-preview-section { padding: var(--s-5xl) 0; background: var(--bg-light); }
.map-preview-container { border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.map-preview-frame { position: relative; height: 400px; }
.map-preview-map { width: 100%; height: 100%; position: relative; z-index: 1; }
.map-preview-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(10,22,40,0.2); opacity: 0; transition: opacity var(--t-base);
}
.map-preview-frame:hover .map-preview-overlay { opacity: 1; }
.map-legend { display: flex; gap: var(--s-xl); padding: var(--s-lg) var(--s-xl); background: var(--bg-white); }
.map-legend-item { display: flex; align-items: center; gap: var(--s-sm); font-size: 0.85rem; color: var(--text-light); font-weight: 500; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }


/* ============================================
   MULTIMEDIA
   ============================================ */
.multimedia-section { padding: var(--s-5xl) 0; background: var(--bg-white); }
.multimedia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-xl); }
.multimedia-card {
    padding: var(--s-2xl) var(--s-xl); border-radius: var(--radius-2xl);
    border: 1px solid var(--border); background: var(--bg-white);
    transition: all var(--t-base) var(--ease); text-align: center;
}
.multimedia-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.multimedia-card-icon {
    width: 64px; height: 64px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--s-lg);
}
.multimedia-video .multimedia-card-icon { background: rgba(13,115,119,0.08); color: var(--primary); }
.multimedia-audio .multimedia-card-icon { background: rgba(34,197,94,0.08); color: var(--green); }
.multimedia-gallery .multimedia-card-icon { background: rgba(255,107,53,0.08); color: var(--accent); }
.multimedia-card h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--text-dark); margin-bottom: var(--s-sm); }
.multimedia-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: var(--s-lg); }
.multimedia-card-link { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.multimedia-card-link:hover { color: var(--accent); }


/* ============================================
   PRESERVATION CTA
   ============================================ */
.preservation-section {
    padding: var(--s-5xl) 0; text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    color: #fff; position: relative; overflow: hidden;
}
.preservation-section::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(13,115,119,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255,107,53,0.1) 0%, transparent 50%);
}
.preservation-content { position: relative; z-index: 1; max-width: 650px; margin: 0 auto; }
.preservation-title {
    font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700; line-height: 1.15; margin-bottom: var(--s-xl); color: #fff;
    letter-spacing: -0.02em;
}
.preservation-title em { color: var(--accent); font-style: normal; }
.preservation-text { font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); margin-bottom: var(--s-2xl); }
.preservation-actions { display: flex; gap: var(--s-md); justify-content: center; flex-wrap: wrap; }
.preservation-section .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.preservation-section .btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 0 8px 24px rgba(255,107,53,0.3); }
.preservation-section .btn-ghost { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.2); }
.preservation-section .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); color: #fff; }


/* ============================================
   PAGE HERO (Subpages)
   ============================================ */
.page-hero {
    padding: var(--s-5xl) 0 var(--s-3xl); margin-top: 64px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(13,115,119,0.12) 0%, transparent 60%);
}
.page-hero-content { max-width: 600px; margin: 0 auto; position: relative; }
.page-hero h1 {
    font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; color: var(--text-white); line-height: 1.15;
    margin-bottom: var(--s-lg); letter-spacing: -0.02em;
}
.page-hero h1 em { color: var(--accent); font-style: normal; }
.page-hero p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }


/* ============================================
   FILTERS BAR
   ============================================ */
.filters-bar {
    padding: var(--s-md) 0; background: var(--bg-white);
    border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 50;
}
.filters-inner { display: flex; gap: var(--s-sm); align-items: center; flex-wrap: wrap; }
.filter-btn {
    font-family: var(--font-heading); font-size: 0.8rem; font-weight: 500;
    padding: var(--s-sm) var(--s-lg); border-radius: var(--radius-full);
    background: transparent; border: 1px solid var(--border); color: var(--text-light);
    cursor: pointer; transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.search-input {
    flex: 1; min-width: 200px; padding: var(--s-sm) var(--s-lg); border-radius: var(--radius-full);
    border: 1px solid var(--border); font-family: var(--font-body); font-size: 0.85rem;
    background: var(--bg-light); color: var(--text-dark); outline: none;
    transition: all var(--t-fast);
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,115,119,0.1); }


/* ============================================
   DISHES GRID (Recetas page)
   ============================================ */
.featured-section { padding: var(--s-5xl) 0; }
.dishes-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--s-xl);
}
.dish-card {
    background: var(--bg-white); border-radius: var(--radius-2xl); overflow: hidden;
    border: 1px solid var(--border); transition: all var(--t-base) var(--ease);
}
.dish-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.dish-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.dish-card-image { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.dish-card-featured .dish-card-image { aspect-ratio: auto; min-height: 350px; }
.dish-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.dish-card:hover .dish-card-image img { transform: scale(1.05); }
.dish-card-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.4) 0%, transparent 60%);
}
.dish-card-badge {
    position: absolute; top: var(--s-lg); left: var(--s-lg);
    background: var(--accent); color: #fff;
    font-family: var(--font-heading); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 5px 12px; border-radius: var(--radius-full);
}
.dish-card-content { padding: var(--s-xl); display: flex; flex-direction: column; justify-content: center; }
.dish-card-category {
    font-family: var(--font-heading); font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--primary); margin-bottom: var(--s-xs);
}
.dish-card-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin-bottom: var(--s-sm); letter-spacing: -0.01em; }
.dish-card-description { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: var(--s-lg); }
.dish-card-meta { display: flex; gap: var(--s-lg); font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--s-lg); font-weight: 500; }
.dish-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--primary);
    transition: gap var(--t-base);
}
.dish-card-link:hover { gap: var(--s-sm); color: var(--accent); }

.favorite-btn {
    position: absolute; top: var(--s-md); right: var(--s-md); z-index: 2;
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t-fast); box-shadow: var(--shadow-sm);
}
.favorite-btn svg { width: 18px; height: 18px; color: var(--text-muted); }
.favorite-btn:hover { background: #fff; transform: scale(1.1); }
.favorite-btn.active svg { fill: var(--accent); color: var(--accent); }


/* ============================================
   RECIPE DETAIL
   ============================================ */
.recipe-detail-section { padding: var(--s-3xl) 0 var(--s-5xl); }
.recipe-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3xl); }
.recipe-image-main { border-radius: var(--radius-2xl); overflow: hidden; margin-bottom: var(--s-lg); aspect-ratio: 4/3; box-shadow: var(--shadow-lg); }
.recipe-image-main img { width: 100%; height: 100%; object-fit: cover; }
.recipe-video-container {
    border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-light);
    margin-bottom: var(--s-lg); aspect-ratio: 16/9;
}
.recipe-video-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text-muted);
}
.recipe-audio-container {
    background: var(--bg-light); border-radius: var(--radius-lg); padding: var(--s-lg);
    display: flex; align-items: center; gap: var(--s-lg);
}
.audio-icon { width: 48px; height: 48px; background: rgba(13,115,119,0.08); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.recipe-meta-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-md);
    padding: var(--s-lg); border-radius: var(--radius-lg); margin-bottom: var(--s-2xl);
    border-left: 3px solid var(--primary); background: var(--bg-light);
}
.recipe-meta-item { text-align: center; }
.meta-label { display: block; font-family: var(--font-heading); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--s-xs); }
.meta-value { display: block; font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--text-dark); }
.recipe-description { font-size: 1rem; color: var(--text-light); line-height: 1.7; margin-bottom: var(--s-xl); }
.recipe-cultural-note {
    padding: var(--s-lg); background: rgba(13,115,119,0.04); border-radius: var(--radius-lg);
    border-left: 3px solid var(--primary); margin-bottom: var(--s-2xl);
}
.recipe-cultural-note h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: var(--s-sm); }
.recipe-cultural-note p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }
.ingredients-list h3, .preparation-steps h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: var(--s-lg); letter-spacing: -0.01em; }
.ingredient-item {
    display: flex; align-items: center; gap: var(--s-md);
    padding: var(--s-md); border-radius: var(--radius-md); border: 1px solid var(--border);
    margin-bottom: var(--s-sm); cursor: pointer; transition: all var(--t-fast);
    background: var(--bg-white);
}
.ingredient-item:hover { background: var(--bg-light); border-color: var(--primary); }
.ingredient-check {
    width: 22px; height: 22px; border-radius: var(--radius-sm); border: 2px solid var(--border);
    flex-shrink: 0; transition: all var(--t-fast); cursor: pointer;
}
.ingredient-check.checked { background: var(--primary); border-color: var(--primary); }
.step-item { display: flex; gap: var(--s-lg); margin-bottom: var(--s-xl); }
.step-number {
    width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--primary); color: #fff;
    font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-content p { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }


/* ============================================
   MAP PAGE
   ============================================ */
.map-page-body main { height: calc(100vh - 64px); margin-top: 64px; position: relative; z-index: 1; }
.map-full-container { display: flex; height: 100%; position: relative; z-index: 1; }
.map-sidebar {
    width: 360px; flex-shrink: 0; padding: var(--s-xl); background: var(--bg-white);
    overflow-y: auto; border-right: 1px solid var(--border);
}
#mapFull { flex: 1; position: relative; z-index: 1; }
.map-location-list { display: flex; flex-direction: column; gap: var(--s-sm); }
.map-location-item {
    padding: var(--s-md); border-radius: var(--radius-lg); border: 1px solid var(--border);
    cursor: pointer; transition: all var(--t-fast); background: var(--bg-white);
}
.map-location-item:hover, .map-location-item.active { border-color: var(--primary); background: rgba(13,115,119,0.03); }
.map-location-item h4 { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin: var(--s-xs) 0; }
.map-location-item p { font-size: 0.8rem; color: var(--text-muted); }
.map-location-type {
    font-family: var(--font-heading); font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 3px 10px; border-radius: var(--radius-full); display: inline-block;
}
.type-restaurant { background: rgba(231,111,81,0.1); color: #E76F51; }
.type-market { background: rgba(42,157,143,0.1); color: #2A9D8F; }
.type-landmark { background: rgba(245,158,11,0.1); color: #D97706; }


/* ============================================
   LIBRARY PAGE
   ============================================ */
.library-tabs-container {
    padding: var(--s-lg) 0; background: var(--bg-white);
    border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 50;
}
.library-tabs { display: flex; gap: var(--s-sm); justify-content: center; }
.library-tab {
    padding: var(--s-sm) var(--s-xl); border-radius: var(--radius-full);
    font-family: var(--font-heading); font-size: 0.85rem; font-weight: 500; cursor: pointer;
    background: transparent; border: 1px solid var(--border); color: var(--text-light);
    display: flex; align-items: center; gap: var(--s-sm); transition: all var(--t-fast);
}
.library-tab:hover { border-color: var(--primary); color: var(--primary); }
.library-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.library-content > div { display: none; }
.library-content > div.active { display: block; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: var(--s-xl); }
.video-card { background: var(--bg-white); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); transition: all var(--t-base) var(--ease); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.video-thumbnail { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.95);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); transition: transform var(--t-fast);
}
.video-card:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.1); }
.video-info { padding: var(--s-lg); }
.video-info h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: var(--s-xs); }
.video-info p { font-size: 0.85rem; color: var(--text-muted); }

.audio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: var(--s-lg); }
.audio-card {
    background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--border);
    padding: var(--s-xl); display: flex; align-items: center; gap: var(--s-lg);
    transition: all var(--t-base);
}
.audio-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-md); }
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: all var(--t-base) var(--ease); aspect-ratio: 4/3; }
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Audio list (biblioteca) */
.audio-list { display: flex; flex-direction: column; gap: var(--s-md); }
.audio-item {
    background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--border);
    padding: var(--s-lg); display: flex; align-items: center; gap: var(--s-lg);
    transition: all var(--t-base);
}
.audio-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.audio-play {
    width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(13,115,119,0.08); color: var(--primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: all var(--t-fast);
}
.audio-play:hover { background: var(--primary); color: #fff; }
.audio-info { flex: 1; }
.audio-info h4 { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin-bottom: var(--s-xs); }
.audio-info p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.audio-duration { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--text-light); flex-shrink: 0; }

/* Library section content spacing */
.library-section { padding: var(--s-3xl) 0 var(--s-5xl); }

/* Testimonials video grid */
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xl); }
.testimonials-grid .video-thumbnail { aspect-ratio: 9/16; background: #000; }
.testimonials-grid .video-thumbnail video { width: 100%; height: 100%; object-fit: contain; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.6); padding: var(--s-4xl) 0 var(--s-xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-3xl); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-top: var(--s-md); color: rgba(255,255,255,0.4); }
.footer-logo { display: flex; align-items: center; gap: var(--s-sm); font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: #fff; }
.footer-nav h4 { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: var(--s-md); }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: var(--s-sm); }
.footer-nav a { font-size: 0.85rem; color: rgba(255,255,255,0.4); transition: color var(--t-fast); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
    margin-top: var(--s-3xl); padding-top: var(--s-xl);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-md);
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }


/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed; bottom: var(--s-xl); right: var(--s-xl);
    width: 44px; height: 44px; border-radius: var(--radius-lg);
    background: var(--primary); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: all var(--t-base); box-shadow: 0 4px 15px rgba(13,115,119,0.3); z-index: 90;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }


/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }


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

/* --- Tablet landscape / small desktop (1024px) --- */
@media (max-width: 1024px) {
    .container { padding: 0 var(--s-xl); }

    /* Navigation → hamburger */
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: var(--bg-white); flex-direction: column;
        padding: 5rem var(--s-xl) var(--s-xl);
        transition: right var(--t-base) var(--ease);
        box-shadow: -4px 0 30px rgba(0,0,0,0.1);
        z-index: 9000;
    }
    .nav-menu.active { right: 0; }
    .nav-toggle { display: flex; }

    /* Hero — centered */
    .hero-v2-title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
    .hero-v2-desc { font-size: 1rem; }
    .hero-v2-stats { gap: var(--s-xl); }
    .hero-v2-stat strong { font-size: 1.6rem; }
    .hero-carousel-item { width: 190px; }
    .hero-carousel-item img { height: 140px; }

    /* About — centered */
    .about-strip-inner { grid-template-columns: 1fr; gap: var(--s-xl); }
    .about-strip-text { text-align: center; }
    .about-features { grid-template-columns: repeat(3, 1fr); gap: var(--s-md); }
    .about-feature { padding: var(--s-lg); text-align: center; }

    /* Showcase — 1 col, centered */
    .showcase-row { grid-template-columns: 1fr; gap: var(--s-xl); justify-items: center; }
    .showcase-row-reverse { direction: ltr; }
    .showcase-img { max-height: 350px; width: 100%; max-width: 600px; }
    .showcase-info { text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 600px; }
    .showcase-info h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
    .showcase-info p { font-size: 0.9rem; }
    .showcase-meta { justify-content: center; }
    .showcase-category { text-align: center; }
    .showcase-duo { gap: var(--s-lg); }
    .showcase-duo-info { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .showcase-duo-info h3 { font-size: 1.1rem; }
    .showcase-duo-info p { font-size: 0.85rem; }
    .showcase-duo-info .dish-card-link { justify-content: center; }

    /* Roots — 1 col, centered */
    .roots-grid { grid-template-columns: 1fr; gap: var(--s-2xl); }
    .roots-content { text-align: center; }
    .roots-content .btn { margin: 0 auto; }
    .roots-item { text-align: left; }
    .roots-title { font-size: clamp(1.5rem, 3vw, 2rem); }

    /* Multimedia */
    .multimedia-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-md); }

    /* Preservation — centered */
    .preservation-content { text-align: center; }

    /* Footer — centered */
    .footer-nav { text-align: center; }
    .footer-nav ul { display: flex; flex-direction: column; align-items: center; }
    .footer-brand { text-align: center; }
    .footer-logo { justify-content: center; }

    /* Recetas */
    .dishes-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .dish-card-featured { grid-column: auto; display: block; }
    .dish-card-featured .dish-card-image { min-height: auto; aspect-ratio: 16/9; }
    .recipe-detail-grid { grid-template-columns: 1fr; }

    /* Biblioteca */
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

    /* Mapa */
    .map-sidebar { width: 260px; }

    /* Footer — 2x2 grid */
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-xl); }
}


/* --- Tablet portrait (768px) --- */
@media (max-width: 768px) {
    .container { padding: 0 var(--s-lg); }

    /* Hero */
    .hero-v2 { padding-top: 80px; }
    .hero-v2-title { font-size: clamp(2rem, 5vw, 2.8rem); }
    .hero-v2-desc { font-size: 1rem; }
    .hero-v2-stats { gap: var(--s-xl); }
    .hero-carousel-item { width: 170px; }
    .hero-carousel-item img { height: 120px; }

    /* About — centered */
    .about-strip { padding: var(--s-3xl) 0; }
    .about-strip-text { text-align: center; }
    .about-features { grid-template-columns: 1fr 1fr; }
    .about-feature { padding: var(--s-lg); text-align: center; }

    /* Showcase — 1 column, centered */
    .showcase-section { padding: var(--s-3xl) 0; }
    .showcase-row { grid-template-columns: 1fr; gap: var(--s-xl); justify-items: center; }
    .showcase-row-reverse { direction: ltr; }
    .showcase-img { max-height: 300px; width: 100%; max-width: 550px; }
    .showcase-info { text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 550px; }
    .showcase-info h3 { font-size: 1.4rem; }
    .showcase-meta { justify-content: center; flex-wrap: wrap; gap: var(--s-md); font-size: 0.8rem; }
    .showcase-category { text-align: center; }
    .showcase-duo { grid-template-columns: 1fr 1fr; gap: var(--s-md); }
    .showcase-duo-info { padding: var(--s-md); text-align: center; display: flex; flex-direction: column; align-items: center; }
    .showcase-duo-info h3 { font-size: 1rem; }
    .showcase-duo-info p { font-size: 0.82rem; }
    .showcase-duo-info .dish-card-link { justify-content: center; }

    /* Roots — 1 column, centered */
    .roots-section { padding: var(--s-3xl) 0; }
    .roots-grid { grid-template-columns: 1fr; gap: var(--s-2xl); }
    .roots-content { text-align: center; }
    .roots-content .btn { margin: 0 auto; }
    .roots-item { text-align: left; }
    .roots-img-accent { bottom: -15px; right: -10px; width: 38%; }

    /* Preservation — centered */
    .preservation-content { text-align: center; }
    .preservation-actions { justify-content: center; }

    /* Map */
    .map-full-container { flex-direction: column; }
    .map-sidebar { width: 100%; height: auto; max-height: 200px; border-right: none; border-bottom: 1px solid var(--border); }
    .map-legend { flex-wrap: wrap; gap: var(--s-md); }
    .map-preview-section { padding: var(--s-3xl) 0; }

    /* Recetas */
    .filters-inner { justify-content: center; flex-wrap: wrap; }
    .filter-btn { font-size: 0.75rem; padding: 6px 14px; }
    .search-input { min-width: 160px; font-size: 0.8rem; }
    .recipe-meta-bar { grid-template-columns: repeat(2, 1fr); }
    .featured-section { padding: var(--s-3xl) 0; }
    .dishes-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

    /* Biblioteca */
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .library-tabs { flex-wrap: wrap; justify-content: center; gap: var(--s-xs); }
    .library-tab { font-size: 0.8rem; padding: 6px 14px; }
    .library-tabs-container { padding: var(--s-md) 0; }
    .library-section { padding: var(--s-2xl) 0 var(--s-3xl); }
    .audio-list { gap: var(--s-lg); }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

    /* Page hero (all subpages) */
    .page-hero { padding: var(--s-3xl) 0 var(--s-2xl); }
    .page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
    .page-hero p { font-size: 0.95rem; }

    /* Multimedia */
    .multimedia-section { padding: var(--s-3xl) 0; }
    .multimedia-grid { grid-template-columns: 1fr 1fr; gap: var(--s-md); }

    /* Preservation CTA */
    .preservation-section { padding: var(--s-3xl) 0; }
    .preservation-title { font-size: clamp(1.5rem, 4vw, 2rem); }
    .preservation-actions { flex-direction: column; align-items: center; }

    /* Footer — 1 column centered */
    .footer { padding: var(--s-3xl) 0 var(--s-lg); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-xl); }
    .footer-brand { grid-column: 1 / -1; text-align: center; display: flex; flex-direction: column; align-items: center; }
    .footer-brand p { text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-nav { text-align: center; }
    .footer-nav ul { display: flex; flex-direction: column; align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}


/* --- Large phone / small tablet (600px) --- */
@media (max-width: 600px) {
    /* Showcase duo → 1 column */
    .showcase-duo { grid-template-columns: 1fr; }

    /* About features → 1 column */
    .about-features { grid-template-columns: 1fr; }

    /* Multimedia → 1 column */
    .multimedia-grid { grid-template-columns: 1fr; }

    /* Testimonials → 1 column */
    .testimonials-grid { grid-template-columns: 1fr; }

    /* Footer → full 1 column */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { grid-column: auto; }
}


/* --- Phone (480px) --- */
@media (max-width: 480px) {
    .container { padding: 0 var(--s-md); }

    /* Hero */
    .hero-v2 { min-height: auto; padding: 80px 0 var(--s-xl); }
    .hero-v2-title { font-size: 2rem; }
    .hero-v2-desc { font-size: 0.95rem; }
    .hero-v2-actions { flex-direction: column; }
    .hero-v2-actions .btn { width: 100%; justify-content: center; }
    .hero-v2-stats { flex-direction: column; gap: var(--s-md); }
    .hero-v2-stat strong { font-size: 1.5rem; }
    .hero-carousel-item { width: 150px; }
    .hero-carousel-item img { height: 100px; }
    .hero-carousel-track { gap: var(--s-md); }

    /* About */
    .about-strip { padding: var(--s-2xl) 0; }
    .about-feature { padding: var(--s-lg); }

    /* Showcase */
    .showcase-section { padding: var(--s-2xl) 0; }
    .showcase-row { margin-bottom: var(--s-2xl); }
    .showcase-info h3 { font-size: 1.2rem; }
    .showcase-meta { flex-wrap: wrap; gap: var(--s-md); }

    /* Page hero */
    .page-hero { padding: var(--s-2xl) 0 var(--s-xl); }
    .page-hero h1 { font-size: 1.6rem; }
    .page-hero h1 br { display: none; }
    .page-hero p { font-size: 0.9rem; }
    .section-tag { font-size: 0.7rem; }

    /* Recetas */
    .filters-bar { padding: var(--s-sm) 0; }
    .filters-inner { gap: 6px; }
    .filter-btn { font-size: 0.7rem; padding: 5px 10px; }
    .search-input { min-width: 100%; font-size: 0.8rem; }
    .dishes-grid { grid-template-columns: 1fr; }
    .dish-card-title { font-size: 1.1rem; }
    .dish-card-description { font-size: 0.85rem; }
    .dish-card-meta { flex-wrap: wrap; gap: var(--s-sm); font-size: 0.75rem; }
    .recipe-meta-bar { grid-template-columns: 1fr 1fr; gap: var(--s-sm); padding: var(--s-md); }
    .recipe-image-main { margin-bottom: var(--s-md); }
    .recipe-video-container { margin-bottom: var(--s-md); }
    .recipe-cultural-note { padding: var(--s-md); }
    .step-item { gap: var(--s-md); }
    .step-number { width: 32px; height: 32px; font-size: 0.8rem; }

    /* Biblioteca */
    .video-grid { grid-template-columns: 1fr; }
    .video-card { border-radius: var(--radius-lg); }
    .audio-list { gap: var(--s-md); }
    .audio-item { padding: var(--s-md); }
    .audio-info h4 { font-size: 0.85rem; }
    .audio-info p { font-size: 0.8rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: var(--s-sm); }
    .library-tabs { gap: 4px; }
    .library-tab { font-size: 0.75rem; padding: 5px 10px; }
    .library-tab svg { display: none; }

    /* Mapa */
    .map-sidebar { max-height: 150px; padding: var(--s-md); }
    .map-sidebar h2 { font-size: 1rem; }
    .map-location-item h4 { font-size: 0.85rem; }
    .map-location-item p { font-size: 0.75rem; }

    /* Sections general */
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.9rem; }

    /* Roots */
    .roots-section { padding: var(--s-2xl) 0; }
    .roots-title { font-size: 1.5rem; }
    .roots-text { font-size: 0.9rem; }
    .roots-item { padding: var(--s-md); gap: var(--s-md); }
    .roots-item h4 { font-size: 0.85rem; }
    .roots-item p { font-size: 0.8rem; }

    /* Preservation */
    .preservation-section { padding: var(--s-2xl) 0; }
    .preservation-title { font-size: 1.5rem; }
    .preservation-text { font-size: 0.9rem; }
    .preservation-actions .btn { width: 100%; justify-content: center; }

    /* Footer */
    .footer { padding: var(--s-2xl) 0 var(--s-md); }
    .footer-grid { gap: var(--s-lg); text-align: center; }
    .footer-logo { font-size: 1rem; justify-content: center; }
    .footer-nav h4 { font-size: 0.85rem; }
    .footer-nav a { font-size: 0.8rem; }
    .footer-bottom p { font-size: 0.75rem; }

    /* Buttons */
    .btn { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.9rem; }

    /* Back to top */
    .back-to-top { width: 38px; height: 38px; bottom: var(--s-md); right: var(--s-md); }
}
