/* Reset & Variables */
:root {
    /* Theme Colors */
    --clr-turquoise: #40E0D0;
    --clr-turquoise-dark: #2BBBAD;
    --clr-volcanic-gray: #4A5553;
    --clr-volcanic-dark: #2F3635;
    --clr-forest-green: #2E8B57;
    --clr-forest-light: #3CB371;

    /* Accents & Neutrals */
    --clr-fire: #FF5A5F;
    --clr-bg-light: #F8FAF9;
    --clr-text-dark: #1A201F;
    --clr-text-light: #F0F4F4;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Altura del navbar fijo (dos filas) — usada por scroll-margin-top */
    --navbar-h: 90px;
}

/* Respetar preferencia de movimiento reducido (accesibilidad) */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Todas las secciones/elementos con ID reciben un margen de scroll
   igual a la altura del navbar + 8px buffer.
   Aplica tanto a clics en anclas, navegación por teclado y
   "Find in page" del navegador — sin necesidad de JS. */
[id] {
    scroll-margin-top: calc(var(--navbar-h) + 8px);
}


body {
    font-family: var(--font-body);
    color: var(--clr-text-dark);
    background-color: var(--clr-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--clr-volcanic-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

/* Typography elements */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}


/* Navbar — sticky con efecto de scroll */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.55rem 2%;
    display: flex;
    flex-wrap: wrap;              /* permite que nav-links crezca en altura */
    justify-content: space-between;
    align-items: center;
    /* Estado inicial: semi-transparente sobre el hero oscuro */
    background: rgba(248, 250, 249, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    /* Barra de acento superior (color marca) */
    box-shadow: inset 0 3px 0 0 rgba(64, 224, 208, 0.55);
    transition:
        background   0.4s ease,
        box-shadow   0.4s ease,
        padding      0.3s ease,
        border-color 0.4s ease;
}

/* Estado al hacer scroll: opaco, compacto y con sombra definida */
.nav-scrolled {
    padding: 0.4rem 2%;
    background: rgba(248, 250, 249, 0.97);
    border-bottom: 1px solid rgba(64, 224, 208, 0.3);
    box-shadow:
        inset 0 3px 0 0 var(--clr-turquoise),          /* barra teal superior */
        0 4px 24px rgba(0, 0, 0, 0.10),                 /* sombra suave */
        0 1px 4px  rgba(47, 54, 53, 0.08);              /* línea base */
}

/* Logo se reduce ligeramente al hacer scroll */
.nav-scrolled .logo {
    font-size: 1.25rem;
    transition: font-size 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-volcanic-dark);
    transition: font-size 0.3s ease;
}

.logo span {
    font-weight: 300;
}
.logo-agua {
    background: linear-gradient(180deg,
        #e0f7ff 0%,
        #67e8f9 20%,
        #06b6d4 50%,
        #0369a1 80%,
        #0c4a6e 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    filter: drop-shadow(0 0 8px rgba(6,182,212,0.55));
}
h1 .logo-agua {
    background: linear-gradient(180deg,
        #ffffff 0%,
        #a5f3fc 15%,
        #22d3ee 40%,
        #0ea5e9 70%,
        #0369a1 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter:
        drop-shadow(0 0 8px rgba(255,255,255,0.9))
        drop-shadow(0 0 18px rgba(34,211,238,1))
        drop-shadow(0 0 40px rgba(6,182,212,0.85))
        drop-shadow(0 0 70px rgba(14,165,233,0.5));
}
h1 .logo-fuego {
    background: linear-gradient(180deg,
        #fffde7 0%,
        #fde047 10%,
        #fb923c 38%,
        #ef4444 68%,
        #991b1b 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter:
        drop-shadow(0 0 8px rgba(255,255,200,0.9))
        drop-shadow(0 0 18px rgba(251,146,60,1))
        drop-shadow(0 0 40px rgba(239,68,68,0.85))
        drop-shadow(0 0 70px rgba(220,38,38,0.5));
}
.logo-fuego {
    background: linear-gradient(180deg,
        #fff9c4 0%,
        #fde047 15%,
        #fb923c 40%,
        #ef4444 70%,
        #991b1b 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    filter: drop-shadow(0 0 10px rgba(251,146,60,0.65));
}

.nav-links {
    display: flex;
    flex-wrap: wrap;              /* permite dos filas */
    justify-content: center;
    list-style: none;
    gap: 0;
    align-items: center;
    row-gap: 1px;                 /* espacio mínimo entre filas */
}

/* Quiebre de fila — ocupa el 100% del ancho y empuja el resto */
.nav-links .nav-row-break {
    flex-basis: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    /* Línea decorativa teal tenue entre las dos filas */
    border-top: 1px solid rgba(64, 224, 208, 0.25);
    pointer-events: none;
}
/* El quiebre no debe mostrar separador propio */
.nav-links .nav-row-break::before { display: none !important; }
/* El primer ítem tras el quiebre tampoco lleva separador a su izquierda */
.nav-links .nav-row-break + li::before { display: none !important; }

/* Separador vertical entre ítems del menú desktop */
.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links li + li::before {
    content: '';
    display: block;
    width: 1px;
    height: 1.1em;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(74, 85, 83, 0.25) 30%,
        rgba(64, 224, 208, 0.45) 50%,
        rgba(74, 85, 83, 0.25) 70%,
        transparent
    );
    flex-shrink: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--clr-volcanic-gray);
    font-weight: 600;
    font-size: 0.78rem;
    padding: .3rem .55rem;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: color .25s, background .25s, transform .2s;
    white-space: nowrap;
}

/* Línea inferior animada */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    width: 0; height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: width .25s, left .25s;
}

.nav-links a:hover::after { width: 80%; left: 10%; }
.nav-links a:hover { transform: translateY(-2px); }

/* Color individual por posición — Fila 1 (ítems 1–8) */
.nav-links li:nth-child(1) a:hover { color: #2563eb; background: rgba(37,99,235,.07); }   /* Inicio — azul */
.nav-links li:nth-child(2) a:hover { color: #0ea5e9; background: rgba(14,165,233,.07); }  /* Patrimonio — celeste */
.nav-links li:nth-child(3) a:hover { color: #C8952A; background: rgba(200,149,42,.08); }  /* Historia — dorado */
.nav-links li:nth-child(4) a:hover { color: #d97706; background: rgba(217,119,6,.07); }   /* Imágenes Históricas — ámbar */
.nav-links li:nth-child(5) a:hover { color: #10b981; background: rgba(16,185,129,.07); }  /* Directorio Turístico — verde */
.nav-links li:nth-child(6) a:hover { color: #ec4899; background: rgba(236,72,153,.07); }  /* Galería — rosa */
.nav-links li:nth-child(7) a:hover { color: #f97316; background: rgba(249,115,22,.07); }  /* Gastronomía — naranja */
.nav-links li:nth-child(8) a:hover { color: #0891b2; background: rgba(8,145,178,.07); }   /* Tech Center — cyan oscuro */
/* nth-child(9) = nav-row-break → sin hover */
/* Color individual por posición — Fila 2 (ítems 10–16) */
.nav-links li:nth-child(10) a:hover { color: #8b5cf6; background: rgba(139,92,246,.07); } /* Empleo — violeta */
.nav-links li:nth-child(11) a:hover { color: #f59e0b; background: rgba(245,158,11,.07); } /* Eventos — ámbar */
.nav-links li:nth-child(12) a:hover { color: #64748b; background: rgba(100,116,139,.07); }/* Plan Regulador — gris */
.nav-links li:nth-child(13) a:hover { color: #ef4444; background: rgba(239,68,68,.07); }  /* Seguridad — rojo */
.nav-links li:nth-child(14) a:hover { color: #06b6d4; background: rgba(6,182,212,.07); }  /* Cómo Llegar — cyan */
.nav-links li:nth-child(15) a:hover { color: #e11d48; background: rgba(225,29,72,.07); }  /* Quejas — carmesí */
.nav-links li:nth-child(16) a:hover { color: #22c55e; background: rgba(34,197,94,.07); }  /* Contacto — verde lima */

.btn-primary {
    background: linear-gradient(135deg, var(--clr-turquoise), var(--clr-forest-light));
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.4);
}

/* Hero Section: Fire vs Water */
.hero {
    height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

.hero-split {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
    overflow: hidden;
}

/* Pseudo visuals for Fire & Water sides — backgrounds animate independently */
.hero-fire::before,
.hero-water::before {
    content: '';
    position: absolute;
    /* Sobre-dimensionado para que el parallax no muestre bordes */
    inset: -12% 0;
    height: 124%;
    z-index: 0;
    will-change: transform;
    transition: transform 0.6s ease;
    background-size: cover;
    background-position: center;
    /* Parallax vía CSS custom property heredada del padre:
       el JS actualiza --parallax-y en .hero-fire / .hero-water */
    transform: scale(var(--parallax-scale, 1))
               translateY(var(--parallax-y, 0px));
}

.hero-split:hover::before {
    --parallax-scale: 1.07;
}

.hero-fire::before {
    background: linear-gradient(to bottom, rgba(47, 54, 53, 0.8), rgba(74, 85, 83, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%234A5553" width="100" height="100"/></svg>');
}

.hero-water::before {
    background: linear-gradient(to bottom, rgba(46, 139, 87, 0.6), rgba(64, 224, 208, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%2340E0D0" width="100" height="100"/></svg>');
}

.hero-content {
    color: var(--clr-text-light);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-content-right {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
}

/* Logo principal del sitio en el hero */
.hero-site-logo {
    width: 170px;
    height: 170px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin-bottom: 1.1rem;
    box-shadow:
        0 0 0 4px rgba(255,255,255,0.25),
        0 0 0 8px rgba(255,200,50,0.18),
        0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: logoPulse 3s ease-in-out infinite;
}
.hero-site-logo:hover {
    transform: scale(1.07) rotate(2deg);
    box-shadow:
        0 0 0 5px rgba(255,255,255,0.35),
        0 0 0 10px rgba(255,200,50,0.3),
        0 16px 55px rgba(0,0,0,0.6);
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255,255,255,0.25), 0 0 0 8px rgba(255,200,50,0.18), 0 10px 40px rgba(0,0,0,0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(255,255,255,0.35), 0 0 0 14px rgba(255,200,50,0.28), 0 14px 50px rgba(0,0,0,0.55); }
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.fire-status {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.dot {
    height: 10px;
    width: 10px;
    background-color: var(--clr-fire);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--clr-fire);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 90, 95, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 90, 95, 0);
    }
}

.hero-center {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    pointer-events: none;
    /* Let hover events pass through to splits */
}

.hero-center h1 {
    font-size: clamp(1.9rem, 6vw, 4.5rem);
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}
.hero-title-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15em;
    text-shadow: none;
    line-height: 1;
}
.hero-title-poas {
    font-size: clamp(2.4rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1;
    background: linear-gradient(180deg,
        #d9f99d 0%,
        #86efac 18%,
        #4ade80 38%,
        #16a34a 62%,
        #14532d 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter:
        drop-shadow(0 0 8px rgba(255,255,255,0.7))
        drop-shadow(0 0 18px rgba(74,222,128,0.9))
        drop-shadow(0 0 40px rgba(22,163,74,0.65))
        drop-shadow(0 0 70px rgba(20,83,45,0.4));
}
.hero-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    gap: .3em;
    font-size: clamp(1.8rem, 6.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
}
.hero-title-row .logo-agua { flex: 0 0 auto; text-align: left; }
.hero-title-row .logo-fuego { flex: 0 0 auto; text-align: right; }
.hero-title-y {
    flex: 1;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    font-size: .8em;
}

.hero-center p {
    font-size: 1.2rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.scroll-down {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    pointer-events: auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Alertas & Info Section */
.info-section {
    padding: 6rem 0;
    background-color: var(--clr-bg-light);
}

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.alert-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid transparent;
    transition: transform 0.3s;
}

.alert-card:hover {
    transform: translateY(-5px);
}

.alert-warning {
    border-top-color: #FFA500;
}

.alert-ash {
    border-top-color: var(--clr-volcanic-gray);
}

.alert-routes {
    border-top-color: var(--clr-forest-green);
}

.alert-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--clr-volcanic-dark);
    font-weight: 700;
    font-family: var(--font-heading);
}

.badge {
    background: #FFF3CD;
    color: #856404;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.warning {
    background: #FFE5B4;
    color: #FF8C00;
}

/* Patrimonio Hídrico */
/* ═══════════════════════════════════════════════
   SECCIÓN PATRIMONIO HÍDRICO — rediseño completo
═══════════════════════════════════════════════ */
.water-heritage-section {
    position: relative;
    padding: 0;
    background: linear-gradient(180deg,
        #071520 0%,
        #0b2237 35%,
        #0a3a4a 70%,
        #083040 100%);
    color: #fff;
    overflow: hidden;
}

/* ── Olas decorativas ── */
.water-wave-top,
.water-wave-bottom {
    display: block;
    line-height: 0;
    overflow: hidden;
}
.water-wave-top  { margin-bottom: -2px; }
.water-wave-bottom { margin-top: -2px; }
.water-wave-top  svg,
.water-wave-bottom svg { width: 100%; height: 80px; display: block; }

/* ── Burbujas flotantes ── */
.water-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.water-bubbles span {
    position: absolute;
    border-radius: 50%;
    background: rgba(64, 224, 208, 0.08);
    border: 1px solid rgba(64, 224, 208, 0.15);
    animation: bubbleRise 10s infinite ease-in-out;
}
.water-bubbles span:nth-child(1) { width:80px;  height:80px;  left:8%;   bottom:10%; animation-duration:12s; animation-delay:0s;   }
.water-bubbles span:nth-child(2) { width:40px;  height:40px;  left:20%;  bottom:5%;  animation-duration:9s;  animation-delay:2s;   }
.water-bubbles span:nth-child(3) { width:60px;  height:60px;  left:55%;  bottom:8%;  animation-duration:14s; animation-delay:4s;   }
.water-bubbles span:nth-child(4) { width:30px;  height:30px;  left:75%;  bottom:15%; animation-duration:8s;  animation-delay:1s;   }
.water-bubbles span:nth-child(5) { width:90px;  height:90px;  left:85%;  bottom:5%;  animation-duration:16s; animation-delay:3s;   }
.water-bubbles span:nth-child(6) { width:50px;  height:50px;  left:40%;  bottom:3%;  animation-duration:11s; animation-delay:5s;   }
@keyframes bubbleRise {
    0%   { transform: translateY(0)   scale(1);    opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-420px) scale(1.1); opacity: 0; }
}

/* ── Layout interno ── */
.water-inner {
    position: relative;
    z-index: 1;
    padding-top: 3rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* ── Encabezado ── */
.water-header {
    text-align: center;
    max-width: 700px;
}
.water-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--clr-turquoise);
    background: rgba(64,224,208,.12);
    border: 1px solid rgba(64,224,208,.3);
    border-radius: 30px;
    padding: .3rem 1rem;
    margin-bottom: 1rem;
}
.water-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #fff;
}
.water-title em {
    font-style: normal;
    background: linear-gradient(90deg, #40E0D0, #22d3ee, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.water-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255,255,255,.78);
}

/* ── Tarjetas de datos ── */
.water-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}
.water-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(64,224,208,.15);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.water-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(64,224,208,.15);
    border-color: rgba(64,224,208,.4);
}
.water-card--accent {
    background: rgba(64,224,208,.1);
    border-color: rgba(64,224,208,.35);
    box-shadow: 0 0 30px rgba(64,224,208,.08);
}
.water-card-icon {
    font-size: 2.4rem;
    margin-bottom: .8rem;
    display: block;
}
.water-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .6rem;
    color: #7dd3fc;
}
.water-card p {
    font-size: .9rem;
    line-height: 1.65;
    color: rgba(255,255,255,.72);
}

/* ── Video + CTA ── */
.water-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.water-video-wrap {
    position: relative;
    display: inline-block;
}
.water-video-glow {
    position: absolute;
    inset: -20px;
    border-radius: 28px;
    background: radial-gradient(ellipse at center,
        rgba(64,224,208,.25) 0%,
        transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes glowPulse {
    0%, 100% { opacity: .6; transform: scale(1);   }
    50%       { opacity: 1;  transform: scale(1.04); }
}
.water-video {
    width: 420px;
    max-width: 90vw;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(64,224,208,.25);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    position: relative;
    z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .water-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .water-cards { grid-template-columns: 1fr; }
    .water-video  { width: 100%; }
}

/* Mantener clase .volcan-video para compatibilidad con otras páginas */
.volcan-video {
    width: 480px;
    height: 540px;
    border-radius: 18px;
    object-fit: cover;
    display: block;
}

/* Ondas del río bajando por el volcán */
.river-wave {
    animation: rioDown 2.5s linear infinite;
}
.rw1 { animation-duration: 2.5s; animation-delay: 0s;   }
.rw2 { animation-duration: 3.2s; animation-delay: -1s;  }

@keyframes rioDown {
    from { transform: translateY(0);    }
    to   { transform: translateY(30px); }
}

/* Espuma bajando */
.river-foam {
    animation: foamDown 3s ease-in-out infinite;
}
.rf1 { animation-duration: 3s;   animation-delay: 0s;    }
.rf2 { animation-duration: 3.5s; animation-delay: -0.7s; }
.rf3 { animation-duration: 2.8s; animation-delay: -1.5s; }
.rf4 { animation-duration: 4s;   animation-delay: -0.4s; }
.rf5 { animation-duration: 3.2s; animation-delay: -2s;   }

@keyframes foamDown {
    0%, 100% { transform: translateY(0);     opacity: 0.9; }
    50%       { transform: translateY(12px);  opacity: 1;   }
}

/* Vapor del cráter */
.vapor {
    animation: vaporRise 3s ease-in-out infinite;
}
.v1 { animation-duration: 3s;   animation-delay: 0s;    }
.v2 { animation-duration: 3.5s; animation-delay: -1s;   }
.v3 { animation-duration: 4s;   animation-delay: -2s;   }

@keyframes vaporRise {
    0%, 100% { transform: translateY(0) scaleX(1);   opacity: 0.7; }
    50%       { transform: translateY(-8px) scaleX(1.2); opacity: 0.4; }
}

/* Nubes flotando */
.cloud {
    animation: cloudDrift 8s ease-in-out infinite;
}
.c1 { animation-duration: 8s;  animation-delay: 0s;   }
.c2 { animation-duration: 10s; animation-delay: -3s;  }

@keyframes cloudDrift {
    0%, 100% { transform: translateX(0);    }
    50%       { transform: translateX(8px); }
}

@keyframes dropFloat {
    0%, 100% { transform: translateY(0px) scaleX(1);   }
    40%       { transform: translateY(-18px) scaleX(1.03); }
    70%       { transform: translateY(-10px) scaleX(0.98); }
}

/* Gotas pequeñas orbitando */
.mini-drop {
    position: absolute;
    filter: drop-shadow(0 4px 8px rgba(33, 150, 196, 0.4));
}

.mini-drop svg { display: block; }

/* Posición y tamaño de cada gota */
.md1 { width: 38px; top:  18px; left: 50%; margin-left:  90px; animation: miniFloat1 4s ease-in-out infinite; }
.md2 { width: 30px; top:  80px; left: 50%; margin-left: 115px; animation: miniFloat2 3.5s ease-in-out infinite 0.6s; }
.md3 { width: 42px; top: 170px; left: 50%; margin-left:  95px; animation: miniFloat3 4.2s ease-in-out infinite 1.1s; }
.md4 { width: 34px; top:  60px; right: 50%; margin-right: 108px; animation: miniFloat1 3.8s ease-in-out infinite 0.4s; }
.md5 { width: 26px; top: 155px; right: 50%; margin-right: 115px; animation: miniFloat2 3.3s ease-in-out infinite 0.9s; }

@keyframes miniFloat1 {
    0%, 100% { transform: translateY(0px)   rotate(0deg);   }
    50%       { transform: translateY(-12px) rotate(8deg);   }
}
@keyframes miniFloat2 {
    0%, 100% { transform: translateY(0px)  rotate(0deg);   }
    50%       { transform: translateY(10px) rotate(-6deg);  }
}
@keyframes miniFloat3 {
    0%, 100% { transform: translateY(0px)   rotate(0deg);  }
    50%       { transform: translateY(-8px)  rotate(5deg);  }
}

/* Ondas de impacto */
.drop-ripple {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 2px solid rgba(33, 150, 196, 0.5);
    width: 50px;
    height: 16px;
    animation: rippleExpand 3s ease-out infinite;
}

.r1 { animation-delay: 0s;   }
.r2 { animation-delay: 1s;   }
.r3 { animation-delay: 2s;   }

@keyframes rippleExpand {
    0%   { width:  50px; height: 16px; opacity: 0.8; }
    100% { width: 220px; height: 70px; opacity: 0;   }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Portal Ciudadano */
.citizen-portal-section {
    padding: 6rem 0;
    background-color: var(--clr-bg-light);
    position: relative;
}

.subtitle {
    text-align: center;
    color: var(--clr-volcanic-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-glass);
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.interactive-form .form-group {
    margin-bottom: 1.5rem;
}

.interactive-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--clr-volcanic-dark);
}

.interactive-form input,
.interactive-form select,
.interactive-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E2E8E6;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #F8FAF9;
    transition: all 0.3s;
}

.interactive-form input:focus,
.interactive-form select:focus,
.interactive-form textarea:focus {
    outline: none;
    border-color: var(--clr-turquoise);
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.2);
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--clr-volcanic-dark);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: var(--clr-forest-green);
    transform: translateY(-2px);
}

.success-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #D4EDDA;
    color: #155724;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.hidden {
    display: none;
}

/* Comunidad & Turismo */
.community-section {
    padding: 6rem 0;
    background: white;
}

/* ── Tarjeta Volcán Poás — Estilo Fuego ── */
.volcan-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(180,40,0,0.25), 0 4px 20px rgba(0,0,0,0.3);
    min-height: 400px;
}

/* Panel visual izquierdo */
.volcan-card-visual {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}
.volcan-card-img {
    position: absolute;
    inset: 0;
    background: url('img/erupcion_poas.jpg') center 40% / cover no-repeat;
    transform: scale(1.05);
    transition: transform 6s ease;
}
.volcan-card:hover .volcan-card-img { transform: scale(1.12); }

.volcan-card-lava {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(5,0,0,0.15) 0%,
        rgba(80,10,0,0.55) 40%,
        rgba(180,40,0,0.82) 70%,
        rgba(220,70,0,0.92) 100%
    );
    z-index: 1;
}

/* Brasas animadas */
.volcan-embers {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.volcan-embers span {
    position: absolute;
    bottom: -10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD580, #FF6B00);
    box-shadow: 0 0 6px 2px rgba(255,120,0,0.6);
    animation: emberRise var(--dur, 4s) ease-in infinite;
    animation-delay: var(--del, 0s);
    opacity: 0;
}
.volcan-embers span:nth-child(1)  { left: 12%;  --dur: 3.8s; --del: 0.0s; width: 4px;  height: 4px;  }
.volcan-embers span:nth-child(2)  { left: 25%;  --dur: 5.1s; --del: 0.7s; width: 6px;  height: 6px;  }
.volcan-embers span:nth-child(3)  { left: 40%;  --dur: 4.3s; --del: 1.4s; width: 3px;  height: 3px;  }
.volcan-embers span:nth-child(4)  { left: 55%;  --dur: 6.0s; --del: 0.3s; width: 5px;  height: 5px;  }
.volcan-embers span:nth-child(5)  { left: 68%;  --dur: 3.5s; --del: 1.9s; width: 4px;  height: 4px;  }
.volcan-embers span:nth-child(6)  { left: 78%;  --dur: 4.8s; --del: 0.9s; width: 7px;  height: 7px;  }
.volcan-embers span:nth-child(7)  { left: 88%;  --dur: 5.5s; --del: 2.2s; width: 3px;  height: 3px;  }
.volcan-embers span:nth-child(8)  { left: 33%;  --dur: 4.0s; --del: 3.1s; width: 5px;  height: 5px;  }
@keyframes emberRise {
    0%   { transform: translateY(0)   translateX(0)    scale(1);   opacity: 0;   }
    10%  { opacity: 1; }
    50%  { transform: translateY(-55%) translateX(12px) scale(0.85); opacity: 0.9; }
    100% { transform: translateY(-130%) translateX(-8px) scale(0.4); opacity: 0;  }
}

.volcan-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2.2rem;
    z-index: 3;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.volcan-badge-activo {
    display: inline-block;
    background: rgba(255,60,0,0.85);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255,140,0,0.6);
    box-shadow: 0 0 12px rgba(255,80,0,0.5);
}
.volcan-card-label h3 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    margin: 0 0 0.3rem;
}
.volcan-card-label h3 em {
    font-style: normal;
    color: #FFB347;
}
.volcan-card-elev {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Panel derecho: info */
.volcan-card-info {
    background: #0F0805;
    padding: 2.4rem 2.4rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.4rem;
}
.volcan-info-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255,100,0,0.2);
}
.volcan-icon-fire { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.volcan-info-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFB347;
    line-height: 1.3;
}
.volcan-info-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.2rem;
    line-height: 1.4;
}
.volcan-info-rows {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}
.volcan-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,100,0,0.12);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
}
.volcan-info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.volcan-info-row div { display: flex; flex-direction: column; gap: 0.1rem; }
.volcan-info-row strong { color: #FFB347; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.volcan-info-row span  { color: rgba(255,255,255,0.8); font-size: 0.88rem; }

/* Botones */
.volcan-info-btns {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.volcan-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}
.volcan-btn-fire {
    background: linear-gradient(135deg, #C43400, #FF6B00);
    color: #fff;
    box-shadow: 0 4px 16px rgba(200,60,0,0.4);
}
.volcan-btn-fire:hover { filter: brightness(1.15); transform: translateY(-2px); }
.volcan-btn-cam {
    background: rgba(255,255,255,0.06);
    color: #FF9A60;
    border: 1px solid rgba(255,100,0,0.35);
}
.volcan-btn-cam:hover { background: rgba(255,100,0,0.15); transform: translateY(-2px); }
.volcan-btn-tips {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}
.volcan-btn-tips:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-2px); }

/* Responsive */
@media (max-width: 820px) {
    .volcan-card { grid-template-columns: 1fr; }
    .volcan-card-visual { min-height: 280px; }
    .volcan-card-label h3 { font-size: 2.2rem; }
}
@media (max-width: 480px) {
    .volcan-card-visual { min-height: 240px; }
    .volcan-card-info { padding: 1.6rem; }
    .volcan-card-label h3 { font-size: 1.9rem; }
    .volcan-card-label { padding: 1.2rem 1.4rem; }
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.comm-card {
    padding: 2.5rem;
    border-radius: 16px;
    background: #F8FAF9;
    border: 1px solid #E2E8E6;
}

.comm-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--clr-forest-green);
}

.park-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.btn-outline {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--clr-forest-green);
    color: var(--clr-forest-green);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--clr-forest-green);
    color: white;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.product-item .emoji {
    font-size: 2rem;
    background: white;
    padding: 0.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.product-item h4 {
    font-size: 1.2rem;
    color: var(--clr-volcanic-dark);
    margin-bottom: 0.25rem;
}

.product-item p {
    color: var(--clr-volcanic-gray);
    font-size: 0.95rem;
}

/* Galería Section */
.gallery-section {
    padding: 6rem 0;
    background: var(--clr-bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #E2E8E6;
}

/* El span se controla con inline style en cada item grande */

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid white;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--clr-turquoise);
    transform: rotate(90deg);
}

.lightbox-caption {
    margin-top: 20px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
}

/* Footer */
footer {
    background: var(--clr-volcanic-dark);
    color: var(--clr-text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--clr-turquoise);
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 300px;
    color: #A0AAB2;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--clr-turquoise);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #A0AAB2;
    font-size: 0.9rem;
}

.copyright-autor {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--clr-turquoise);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Plan Regulador Section */
.regulador-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #FFFFFF, #F0F4F4);
}

/* ── Hero secundario (páginas internas) ── */
.secondary-hero {
    /* 7rem = espacio suficiente por encima del navbar fijo de 2 filas (~90px) */
    padding: clamp(5rem, 10vw, 7rem) 0 3.5rem;
    color: #fff;
    text-align: center;
}

.secondary-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.secondary-hero-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

.secondary-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0 0 1rem;
    color: #fff;
}

.secondary-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* ── Página de Quejas interna ── */
.quejas-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.quejas-tipo-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid #E2E8E6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quejas-tipo-icon {
    font-size: 2.2rem;
}

.quejas-tipo-card h3 {
    color: #1A237E;
    font-size: 1.1rem;
    margin: 0;
}

.quejas-tipo-card p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.5;
    flex: 1;
}

.quejas-link-btn {
    display: inline-block;
    margin-top: 0.5rem;
    background: #FFF200;
    color: #1A237E !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid #1A237E;
    transition: background 0.2s, transform 0.2s;
    align-self: flex-start;
}

.quejas-link-btn:hover {
    background: #1A237E;
    color: #FFF200 !important;
    transform: translateY(-2px);
}

.quejas-form-section {
    background: #F8F9FF;
    border: 2px solid #1A237E22;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 750px;
    margin: 0 auto;
}

.quejas-form-section h2 {
    color: #1A237E;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.quejas-form-desc {
    color: #555;
    margin-bottom: 1.75rem;
}

.quejas-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quejas-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.quejas-form label {
    font-weight: 600;
    color: #1A237E;
    font-size: 0.92rem;
}

.quejas-form input,
.quejas-form select,
.quejas-form textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.quejas-form input:focus,
.quejas-form select:focus,
.quejas-form textarea:focus {
    outline: none;
    border-color: #1A237E;
}

.quejas-submit-btn {
    width: 100%;
    padding: 1rem;
    background: #1A237E;
    color: #FFF200;
    font-size: 1.1rem;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    margin-top: 0.5rem;
}

.quejas-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 750px) {
    .quejas-form .form-row { grid-template-columns: 1fr; }
    .quejas-form-section { padding: 1.75rem 1.25rem; }
}

/* ── Sección de Quejas / Denuncias ── */
.quejas-section {
    padding: 3rem 0 2rem;
    background: #fff;
}

.quejas-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #FFF200;
    border: 3px solid #1A237E;
    outline: 3px dashed #000;
    outline-offset: 6px;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 30px rgba(26, 35, 126, 0.15);
}

.quejas-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.quejas-texto {
    flex: 1;
}

.quejas-texto h2 {
    color: #1A237E;
    font-size: 1.6rem;
    margin: 0 0 0.4rem;
}

.quejas-texto p {
    color: #1A237E;
    font-size: 1rem;
    margin: 0;
    opacity: 0.85;
}

.quejas-btn {
    display: inline-block;
    background: #1A237E;
    color: #FFF200 !important;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
    letter-spacing: 0.02em;
}

.quejas-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
}

@media (max-width: 600px) {
    .quejas-card {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem 1.5rem;
    }
    .quejas-btn {
        width: 100%;
        text-align: center;
    }
}

/* Tarjeta de acceso rápido al Plan Regulador */
.regulador-preview-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #FFFFFF, #F0F4F4);
}

.regulador-preview-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-left: 6px solid var(--clr-turquoise);
    flex-wrap: wrap;
}

.regulador-preview-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.regulador-preview-text {
    flex: 1;
    min-width: 220px;
}

.regulador-preview-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clr-volcanic-dark);
    margin-bottom: 0.5rem;
}

.regulador-preview-text p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.regulador-preview-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.regulador-preview-tags li {
    background: #F0F9F8;
    color: var(--clr-volcanic-dark);
    border: 1px solid #C8E6E3;
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.regulador-preview-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.9rem 1.75rem;
}

@media (max-width: 600px) {
    .regulador-preview-card {
        flex-direction: column;
        text-align: center;
    }
    .regulador-preview-tags {
        justify-content: center;
    }
}

.regulador-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.regulador-info {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(64, 224, 208, 0.2);
}

.regulador-info .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    color: var(--clr-volcanic-dark);
}

.regulador-features {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.8rem;
    background: white;
    padding: 0.6rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.feature-item h4 {
    color: var(--clr-volcanic-dark);
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--clr-volcanic-gray);
}

.regulador-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.regulador-map {
    position: relative;
}

.map-container {
    width: 100%;
    max-height: 700px;
    overflow-y: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    scrollbar-width: thin;
    scrollbar-color: var(--clr-turquoise) transparent;
}

.zoning-map {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    cursor: grab;
}

.zoning-map:active {
    cursor: grabbing;
}

.zoning-map:hover {
    transform: scale(1.05);
}

/* Responsive adjustment for Regulador */
@media (max-width: 992px) {
    .regulador-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .regulador-info {
        order: 1;
    }

    .regulador-map {
        order: 2;
    }
}

/* =====================
   Contacto & Redes
   ===================== */
.contacto-section {
    padding: 6rem 0;
    background: var(--clr-volcanic-dark);
    color: var(--clr-text-light);
}

.contacto-section .section-title {
    color: var(--clr-turquoise);
}

.contacto-section .subtitle {
    color: rgba(240, 244, 244, 0.7);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.contacto-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contacto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.contacto-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.contacto-icon svg {
    width: 100%;
    height: 100%;
}

.contacto-icon i {
    font-size: 1.75rem;
    line-height: 1;
    color: currentColor;
}

.contacto-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.contacto-info p {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 0.4rem;
}

.contacto-link {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Colores por red */
.whatsapp-card  { background: linear-gradient(135deg, #075E54, #128C7E); }
.facebook-card  { background: linear-gradient(135deg, #1877F2, #0D5DBF); }
.instagram-card { background: linear-gradient(135deg, #833AB4, #E1306C, #F77737); }
.tiktok-card    { background: linear-gradient(135deg, #010101, #69C9D0); }

@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    /* Una columna a partir de 600px: las tarjetas de contacto
       son demasiado anchas para mostrarse en 2 cols en phones */
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================
   Bolsa de Empleo
   ===================== */
.empleo-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--clr-volcanic-dark), #1a2928);
    color: var(--clr-text-light);
}

.empleo-section .section-title {
    color: var(--clr-turquoise);
}

.empleo-section .subtitle {
    color: rgba(240, 244, 244, 0.7);
}

.empleo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.empleo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(64, 224, 208, 0.15);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.empleo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.empleo-card--highlight {
    border-color: rgba(64, 224, 208, 0.35);
    background: rgba(64, 224, 208, 0.07);
}

.empleo-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.empleo-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-turquoise);
    margin-bottom: 0.5rem;
}

.empleo-body p {
    font-size: 0.95rem;
    color: rgba(240, 244, 244, 0.75);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.empleo-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: var(--clr-turquoise);
    color: var(--clr-volcanic-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.25s, transform 0.2s;
    align-self: flex-start;
}

.empleo-btn:hover {
    background: var(--clr-turquoise-dark);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .empleo-section {
        padding: 4rem 0;
    }

    .empleo-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Banner Municipalidad ── */
.muni-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, #003366 0%, #004a8f 60%, #0E5E6F 100%);
    border-radius: 18px;
    padding: 1.8rem 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    box-shadow: 0 6px 24px rgba(0,51,102,0.2);
}
.muni-banner-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}
.muni-escudo {
    width: 90px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}
.muni-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.3rem;
}
.muni-info p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin: 0;
}
.muni-lema {
    color: #FFD700 !important;
    font-size: 0.82rem !important;
    margin-top: 0.3rem !important;
}
.muni-btn {
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #003366;
    font-weight: 800;
    border-radius: 25px;
    padding: 0.65rem 1.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: filter 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(255,165,0,0.4);
}
.muni-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

@media (max-width: 600px) {
    .muni-banner { flex-direction: column; text-align: center; }
    .muni-banner-left { flex-direction: column; align-items: center; text-align: center; }
    .muni-btn { width: 100%; text-align: center; }
}

/* ── Banner Ruta Gastronómica ── */
.ruta-gastronomica-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, #3B1A08, #7A3A00);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ruta-banner-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    min-width: 220px;
}

.ruta-banner-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.ruta-banner-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFBB56;
    margin-bottom: 0.3rem;
}

.ruta-banner-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.5;
}

.ruta-banner-btn {
    background: #FFBB56 !important;
    color: #6B3000 !important;
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    flex-shrink: 0;
}

.ruta-banner-btn:hover {
    background: #FFD080 !important;
}

@media (max-width: 600px) {
    .ruta-gastronomica-banner { flex-direction: column; text-align: center; }
    .ruta-banner-content { flex-direction: column; text-align: center; }
}

/* ── Language Switcher (inside navbar) ── */
.flag-icon {
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    margin-right: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.nav-lang {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.lang-btn {
    background: linear-gradient(135deg, #C0392B, #E74C3C);
    border: none;
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 800;
    text-decoration: none;
    transition: filter 0.2s, transform 0.15s;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(231,76,60,0.45);
}

.lang-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: linear-gradient(135deg, #0E5E6F, #17A589);
    box-shadow: 0 2px 8px rgba(14,94,111,0.5);
    color: #fff;
}

/* Navbar con scroll — botones de idioma */
.navbar.nav-scrolled .lang-btn {
    background: linear-gradient(135deg, #C0392B, #E74C3C);
    color: #fff;
}
.navbar.nav-scrolled .lang-btn.active {
    background: linear-gradient(135deg, #0E5E6F, #17A589);
    color: #fff;
}

@media (max-width: 1100px) {
    /* Una sola fila sin wrap: logo → lang → hamburger */
    .navbar {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.3rem;
    }
    /* Logo no se encoge */
    .logo {
        flex-shrink: 0;
    }
    /* Botones de idioma: emoji + sin texto */
    .nav-lang {
        display: flex;
        gap: 0.25rem;
        flex-shrink: 0;
    }
    .lang-btn {
        font-size: 1.15rem;    /* emoji visible */
        padding: 0.2rem 0.35rem;
        line-height: 1;
    }
    .lang-btn .lang-label {
        display: none;         /* oculta texto, deja solo el emoji */
    }
    /* Hamburger siempre pegado a la derecha */
    .hamburger {
        margin-left: auto;
        flex-shrink: 0;
    }
}

/* =====================
   Turismo / Directorio
   ===================== */
.turismo-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #F0F4F4, #FFFFFF);
}

.turismo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.55rem 1.2rem;
    border: 2px solid var(--clr-turquoise-dark);
    border-radius: 50px;
    background: transparent;
    color: var(--clr-volcanic-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--clr-turquoise-dark);
    color: white;
}

.negocios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.negocio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    box-shadow: var(--shadow-soft);
    border: 1px solid #E2E8E6;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.negocio-card > .negocio-card-header,
.negocio-card > .negocio-desc,
.negocio-card > .negocio-meta {
    padding-left: 2rem;
    padding-right: 2rem;
}

.negocio-card > .negocio-card-header { padding-top: 1.5rem; }
.negocio-card > .negocio-meta { padding-bottom: 0.75rem; }

/* Tarjetas sin galería: padding uniforme, sin espacio vacío */
.negocio-card-simple {
    padding: 2rem;
}
.negocio-card-simple > .negocio-card-header,
.negocio-card-simple > .negocio-desc,
.negocio-card-simple > .negocio-meta {
    padding-left: 0;
    padding-right: 0;
}
.negocio-card-simple > .negocio-card-header { padding-top: 0; }
.negocio-card-simple > .negocio-meta { padding-bottom: 0; }
.negocio-card-simple > .negocio-social {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

/* Banner ancho completo (ej: Macrobiótica Presagio) */
.negocio-banner-ancho {
    width: 100%;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border-radius: 0;
}
.negocio-banner-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}
.negocio-banner-img:hover { transform: scale(1.03); }

/* Banner de logo en la parte superior de la tarjeta (ej: Tech Center CR) */
.negocio-logo-banner {
    width: 100%;
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 50%, #e3ecf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    margin-bottom: 0;
    border-radius: 0;
    min-height: 160px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #c7d8f5;
}
.negocio-logo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(100,149,237,0.15), transparent 65%);
}
.negocio-logo-banner-img {
    max-width: 260px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.15));
}

/* Galería de fotos del negocio */
.negocio-galeria {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 160px 160px;
    gap: 3px;
    width: 100%;
    margin-bottom: 1.25rem;
}

.negocio-galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.negocio-galeria img:first-child {
    grid-row: span 2;
}

.negocio-galeria img:hover {
    transform: scale(1.03);
}

/* Logo del negocio */
.negocio-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #E2E8E6;
    background: #fff;
    padding: 4px;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.negocio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.negocio-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.negocio-emoji {
    font-size: 2.2rem;
    background: var(--clr-bg-light);
    padding: 0.7rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    line-height: 1;
}

.negocio-card h4 {
    font-size: 1.2rem;
    color: var(--clr-volcanic-dark);
    margin: 0 0 0.25rem;
}

.negocio-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(64, 224, 208, 0.15);
    color: var(--clr-turquoise-dark);
}

.negocio-desc {
    color: var(--clr-volcanic-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-top: 0.75rem;
}

.negocio-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-top: 1px solid #E2E8E6;
    padding-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--clr-volcanic-gray);
}

.negocio-meta a {
    color: var(--clr-turquoise-dark);
    text-decoration: none;
    word-break: break-all;
}

.negocio-meta a:hover {
    text-decoration: underline;
}

/* Botones de redes sociales en negocio-card */
.negocio-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 2rem 1.5rem;
    border-top: 1px solid #E2E8E6;
    margin-top: 0.25rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    color: #fff !important;
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    text-decoration: none !important;
}

.wa-btn  { background: #25D366; }
.fb-btn  { background: #1877F2; }
.ig-btn  { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.tt-btn  { background: #010101; }
.booking-btn { background: #003580; }
.ver-mas-btn { background: linear-gradient(135deg, #6a0dad, #9b30d9); }
.wz-btn  { background: #33CCFF; color: #000 !important; }

/* ── Lightbox galería negocios ── */
#negocio-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#negocio-lightbox.active { display: flex; }

.nlb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(4px);
}

.nlb-img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: nlb-zoom .25s ease;
}

@keyframes nlb-zoom {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.nlb-close, .nlb-prev, .nlb-next {
    position: absolute;
    z-index: 2;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s;
    line-height: 1;
}

.nlb-close { top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.2rem; }
.nlb-prev  { left: 1rem;  top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.nlb-next  { right: 1rem; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }

.nlb-close:hover, .nlb-prev:hover, .nlb-next:hover { background: rgba(255,255,255,0.3); }

.nlb-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.45);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
}

/* Cursor pointer en fotos de galería */
.negocio-galeria-img { cursor: zoom-in; }

.no-negocios {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--clr-volcanic-gray);
    font-size: 1.1rem;
}

.add-negocio-cta {
    text-align: center;
    padding: 2.5rem;
    background: var(--clr-bg-light);
    border-radius: 16px;
    border: 2px dashed #C9D8D6;
}

.add-negocio-cta p {
    color: var(--clr-volcanic-gray);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.btn-add-negocio {
    background: linear-gradient(135deg, var(--clr-forest-green), var(--clr-turquoise-dark));
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn-add-negocio:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.4);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--clr-volcanic-gray);
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.modal-close:hover {
    color: var(--clr-fire);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.8rem;
    color: var(--clr-volcanic-dark);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--clr-volcanic-gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* =====================
   Hamburger Menu
   ===================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
    z-index: 1100;
}

.hamburger:hover {
    background: rgba(74, 85, 83, 0.1);
}

.hamburger:active {
    transform: scale(0.82);
}

.hamburger-label {
    display: none;
    font-style: normal;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--clr-volcanic-dark);
    line-height: 1;
    margin-top: 1px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #2F3635;
    border-radius: 3px;
    transition: transform 0.35s ease, opacity 0.35s ease;
    animation: barPulse 1.8s ease-in-out infinite;
}

.hamburger span:nth-child(1) { animation-delay: 0s;    }
.hamburger span:nth-child(2) { animation-delay: 0.22s; }
.hamburger span:nth-child(3) { animation-delay: 0.44s; }

@keyframes barPulse {
    0%, 100% {
        background: #2F3635;
        box-shadow: none;
        transform: scaleX(1);
    }
    50% {
        background: #C8952A;
        box-shadow: 0 0 8px rgba(200, 149, 42, 0.8), 0 0 2px rgba(200, 149, 42, 0.6);
        transform: scaleX(1.15);
    }
}

/* Detener animación cuando el menú está abierto */
.hamburger.open span {
    animation: none;
    background: #2F3635;
    box-shadow: none;
}

/* Open state */
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile nav — backdrop ── */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
    backdrop-filter: blur(3px);
}

.mobile-nav.open {
    display: block;
    animation: backdropIn 0.25s ease forwards;
}

@keyframes backdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Panel lateral ── */
.mobile-nav-panel {
    position: fixed;
    top: 0; right: 0;
    width: min(80vw, 300px);
    height: 100%;
    background: #1a2020;
    border-left: 1px solid rgba(200,149,42,0.2);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    z-index: 1051;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    /* clip en lugar de hidden: contiene el panel visualmente sin
       impedir que .mobile-nav-links haga scroll interno */
    overflow: clip;
}

.mobile-nav.open .mobile-nav-panel {
    transform: translateX(0);
}

/* Cabecera del panel */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid rgba(200,149,42,0.15);
    flex-shrink: 0;
}

.mobile-nav-logo {
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    letter-spacing: .5px;
}

.mobile-nav-logo span { color: #C8952A; }

.mobile-nav-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: .2rem .4rem;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.mobile-nav-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Lista de enlaces */
.mobile-nav-links {
    overflow-y: auto;
    flex: 1;
    padding: .6rem 0;
}

/* ── Enlaces de navegación (solo dentro de .mobile-nav-links) ── */
.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: .75rem 1.4rem;
    border-left: 3px solid transparent;
    transition: color .18s, background .18s, border-color .18s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible {
    color: #C8952A;
    background: rgba(200,149,42,0.08);
    border-left-color: #C8952A;
    outline: none;
}

.mobile-nav-links a:active {
    background: rgba(200,149,42,0.15);
}

/* Ítem de la página actual */
.mobile-nav-links a.nav-active {
    color: #C8952A;
    background: rgba(200,149,42,0.1);
    border-left-color: #C8952A;
    font-weight: 700;
}

/* Separador visual entre grupos */
.mobile-nav-sep {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: .4rem 1.2rem;
}

/* Selector de idioma en el panel */
.mobile-nav-lang {
    display: flex;
    gap: .6rem;
    padding: .8rem 1.4rem;
    border-top: 1px solid rgba(200,149,42,0.12);
    flex-shrink: 0;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    padding: .3rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: color .2s, border-color .2s, background .2s;
}

.mobile-lang-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

.mobile-lang-active {
    color: #C8952A !important;
    border-color: rgba(200,149,42,0.5) !important;
    background: rgba(200,149,42,0.08);
}

/* Pie del panel */
.mobile-nav-footer {
    padding: .6rem 1.4rem .9rem;
    color: rgba(255,255,255,0.2);
    font-size: .7rem;
    flex-shrink: 0;
}

/* =====================
   Responsive — Tablet
   ===================== */
@media (max-width: 900px) {
    .community-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ── Navbar: hamburger en tablet y móvil (≤1100px) ──────────────────
   El nav de dos filas necesita al menos ~1100px para caber cómodamente.
   Por debajo se usa el menú hamburger lateral.
───────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .nav-links  { display: none; }
    .hamburger  { display: flex; }
    .hamburger-label { display: block; }
}

/* =====================
   Responsive — Mobile
   ===================== */
@media (max-width: 768px) {

    /* Section spacing */
    .info-section,
    .water-heritage-section,
    .citizen-portal-section,
    .community-section,
    .gallery-section,
    .turismo-section,
    .contacto-section,
    .regulador-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.9rem;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        height: auto;
        min-height: 100svh;
        overflow: visible;
    }

    .hero-split {
        width: 100%;
        height: 45vh;
        padding: 2rem 1.5rem;
        flex: none;
    }

    .hero-split:hover {
        flex: none;
    }

    .hero-center {
        position: static;
        transform: none;
        /* padding-top extra para que el navbar fijo no tape "Poás" en móvil */
        padding: 7.5rem 1.5rem 2.5rem;
        background: linear-gradient(135deg, var(--clr-volcanic-dark), var(--clr-volcanic-gray));
        text-align: center;
        order: -1;
        pointer-events: auto;
        width: 100%;
    }

    .hero-center h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .hero-center p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    /* Patrimonio hídrico */
    .water-heritage-section .section-title {
        text-align: center;
    }

    .water-visual {
        display: none;
    }

    /* Glass panel form */
    .glass-panel {
        padding: 1.75rem 1.25rem;
        border-radius: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    /* Items con span 3 → span 2 en tablet */
    .gallery-item[style*="span 3"] {
        grid-column: span 2 !important;
    }

    /* Turismo filters */
    .turismo-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        font-size: 0.82rem;
        padding: 0.4rem 0.85rem;
    }

    .negocios-grid {
        grid-template-columns: 1fr;
    }

    /* Contacto */
    .contacto-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-links ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Regulador */
    .regulador-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .regulador-info {
        padding: 1.75rem;
    }
}

/* =====================
   Responsive — Small phones
   ===================== */
@media (max-width: 480px) {

    html {
        font-size: 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-split {
        height: 38vh;
        padding: 1.5rem 1rem;
    }

    .hero-center {
        padding: 7rem 1rem 2rem;
    }

    .hero-center h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .fire-status {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Gallery small phones */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    /* Todos los items a 1 columna en móvil */
    .gallery-item[style*="span 3"] {
        grid-column: span 1 !important;
        aspect-ratio: 4/3 !important;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .contacto-card {
        padding: 1.25rem;
    }

    .alert-card {
        padding: 1.5rem;
    }

    .negocio-card {
        padding: 1.5rem;
    }

    .modal-box {
        padding: 1.75rem 1.25rem;
        border-radius: 14px;
    }

    .scroll-down {
        font-size: 0.9rem;
    }
}
/* ===== PANEL DE ADMINISTRADOR ===== */
#admin-fab {
    position: fixed;
    bottom: 1.2rem;
    right: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30,30,40,0.7);
    border: 1px solid rgba(255,255,255,0.12);
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(6px);
    transition: background 0.2s, transform 0.2s;
    display: flex; align-items: center; justify-content: center;
}
#admin-fab:hover { background: rgba(50,50,70,0.9); transform: rotate(30deg); color: #fff; }

.admin-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.admin-modal-box {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    color: #fff;
}
.admin-close {
    position: absolute; top: 1rem; right: 1.2rem;
    background: none; border: none; color: #888;
    font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.admin-close:hover { color: #fff; }
.admin-logo { font-size: 2.5rem; text-align: center; margin-bottom: 0.5rem; }
.admin-title { text-align: center; font-size: 1.3rem; margin: 0; }
.admin-subtitle { text-align: center; color: #888; font-size: 0.85rem; margin: 0.3rem 0 1.5rem; }
.admin-input {
    width: 100%; padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px; color: #fff;
    font-size: 0.95rem; margin-bottom: 0.75rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.admin-input:focus { border-color: #7b61ff; }
.admin-input::placeholder { color: #666; }
.admin-error { color: #ff6b6b; font-size: 0.82rem; margin: -0.3rem 0 0.6rem; }
.admin-btn-login {
    width: 100%; padding: 0.8rem;
    background: linear-gradient(135deg, #7b61ff, #a855f7);
    border: none; border-radius: 10px;
    color: #fff; font-size: 1rem; font-weight: 600;
    cursor: pointer; margin-top: 0.25rem;
    transition: opacity 0.2s;
}
.admin-btn-login:hover { opacity: 0.85; }
.admin-welcome { text-align: center; color: #ccc; font-size: 0.9rem; margin: 0 0 1.2rem; }
.admin-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-action-btn {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px; text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s, transform 0.15s;
    background: rgba(255,255,255,0.04);
}
.admin-action-btn:hover { background: rgba(255,255,255,0.1); transform: translateX(3px); }
.admin-action-icon { font-size: 1.6rem; flex-shrink: 0; }
.admin-action-text { display: flex; flex-direction: column; }
.admin-action-text strong { color: #fff; font-size: 0.95rem; }
.admin-action-text small { color: #888; font-size: 0.78rem; }
.claude-btn { border-color: rgba(123,97,255,0.4); }
.claude-btn:hover { background: rgba(123,97,255,0.15) !important; }
.github-btn { border-color: rgba(255,255,255,0.2); }
.commits-btn { border-color: rgba(64,224,208,0.3); }
.commits-btn:hover { background: rgba(64,224,208,0.1) !important; }
.admin-logout {
    width: 100%; margin-top: 1.2rem; padding: 0.6rem;
    background: none; border: 1px solid rgba(255,80,80,0.3);
    border-radius: 8px; color: #ff6b6b;
    font-size: 0.85rem; cursor: pointer;
    transition: background 0.2s;
}
.admin-logout:hover { background: rgba(255,80,80,0.1); }

/* ===== ADMIN DASHBOARD EXTENDIDO ===== */
.admin-header-bar {
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:1rem; padding-bottom:0.75rem;
    border-bottom:1px solid rgba(255,255,255,0.1);
    font-size:0.9rem; color:#ccc;
}
.admin-tabs {
    display:flex; gap:0.3rem; flex-wrap:wrap;
    margin-bottom:1rem;
}
.atab {
    padding:0.4rem 0.75rem; border-radius:8px;
    background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
    color:#888; font-size:0.78rem; cursor:pointer; transition:all 0.2s;
}
.atab:hover { background:rgba(255,255,255,0.1); color:#fff; }
.atab.active { background:#7b61ff; border-color:#7b61ff; color:#fff; }
.atab-content { min-height:160px; }

/* Stats */
.admin-stats-grid {
    display:grid; grid-template-columns:repeat(4,1fr); gap:0.6rem; margin-bottom:1rem;
}
.admin-stat-card {
    background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08);
    border-radius:10px; padding:0.75rem 0.5rem; text-align:center;
    display:flex; flex-direction:column; gap:0.2rem;
}
.asc-emoji { font-size:1.4rem; }
.asc-count { font-size:1.5rem; font-weight:700; color:#fff; }
.asc-label { font-size:0.68rem; color:#888; }
.admin-storage-bar-wrap { margin-top:0.5rem; }
.admin-storage-label { font-size:0.78rem; color:#888; display:block; margin-bottom:0.3rem; }
.admin-storage-bar { height:6px; background:rgba(255,255,255,0.1); border-radius:4px; overflow:hidden; }
.admin-storage-fill { height:100%; border-radius:4px; transition:width 0.4s; }

/* Páginas */
.admin-pages-grid {
    display:grid; grid-template-columns:repeat(3,1fr); gap:0.4rem;
}
.admin-page-link {
    padding:0.45rem 0.5rem; border-radius:8px; font-size:0.78rem; text-decoration:none;
    background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08);
    color:#ccc; transition:all 0.2s; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.admin-page-link:hover { background:rgba(255,255,255,0.12); color:#fff; }
.admin-page-link.ext { border-color:rgba(123,97,255,0.3); color:#a78bfa; }
.admin-page-link.claude { border-color:rgba(123,97,255,0.5); background:rgba(123,97,255,0.1); }

/* Backup / Sistema */
.admin-tool-desc { color:#888; font-size:0.82rem; margin:0 0 1rem; }
.admin-tool-row { display:flex; align-items:center; gap:1rem; }
.admin-tool-btn {
    padding:0.55rem 1rem; border-radius:9px; border:none;
    font-size:0.85rem; font-weight:600; cursor:pointer; white-space:nowrap;
    transition:opacity 0.2s;
}
.admin-tool-btn:hover { opacity:0.8; }
.admin-tool-btn.green { background:#2f9e44; color:#fff; }
.admin-tool-btn.blue  { background:#1971c2; color:#fff; display:block; }
.admin-tool-btn.red   { background:#c92a2a; color:#fff; }
.admin-tool-msg { font-size:0.82rem; margin-top:0.75rem; }

/* Anuncios */
.admin-textarea {
    width:100%; min-height:70px; padding:0.75rem;
    background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.15);
    border-radius:10px; color:#fff; font-size:0.88rem; resize:vertical;
    margin-bottom:0.75rem; box-sizing:border-box; outline:none;
}
.admin-anuncio-preview {
    background:#FFF200; color:#1A237E; border-radius:8px;
    padding:0.6rem 1rem; font-size:0.85rem; font-weight:600; margin-top:0.75rem;
}

/* Sistema */
.admin-sys-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:0.5rem; }
.admin-sys-btn {
    padding:0.6rem 0.75rem; border-radius:10px;
    background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12);
    color:#ccc; font-size:0.82rem; cursor:pointer; text-align:left; transition:all 0.2s;
}
.admin-sys-btn:hover { background:rgba(255,255,255,0.14); color:#fff; }
.admin-sys-btn.danger { border-color:rgba(255,80,80,0.4); color:#ff8787; }
.admin-sys-btn.danger:hover { background:rgba(255,80,80,0.15); }
.admin-storage-pre {
    background:rgba(0,0,0,0.4); border:1px solid rgba(255,255,255,0.1);
    border-radius:8px; padding:0.75rem; color:#0f0; font-size:0.72rem;
    max-height:180px; overflow-y:auto; margin-top:0.75rem; white-space:pre-wrap; word-break:break-all;
}

/* Banner de anuncio */
#site-anuncio-bar {
    position:fixed; top:0; left:0; right:0; z-index:9998;
    background:#FFF200; color:#1A237E; padding:0.6rem 1.5rem;
    font-size:0.9rem; font-weight:700; display:flex;
    align-items:center; justify-content:center; gap:1rem;
    box-shadow:0 2px 8px rgba(0,0,0,0.2);
}

/* Botón Conocer más — Patrimonio Hídrico */
.btn-conocer-mas {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.75rem;
    background: linear-gradient(135deg, #1565C0, #40C4FF);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(64,196,255,0.3);
}
.btn-conocer-mas:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(64,196,255,0.45);
}

/* ==========================================
   Banner Historia del Cantón
   ========================================== */
.historia-banner-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 1rem;
    text-align: center;
    isolation: isolate;
}

.historia-banner-bg {
    position: absolute;
    /* Sobre-dimensionado para parallax */
    inset: -12% 0;
    height: 124%;
    background:
        linear-gradient(135deg,
            #0d1f0a 0%,
            #1a3a10 30%,
            #2d5a1b 60%,
            #1a3a10 80%,
            #0d1f0a 100%);
    z-index: 0;
    will-change: transform;
}

.historia-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184,134,11,0.22) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 100%, rgba(255,200,50,0.10) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

/* Partículas flotantes doradas */
.historia-banner-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.historia-banner-particles span {
    position: absolute;
    display: block;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(212,175,55,0.6);
    animation: hbParticle 8s infinite ease-in-out;
}
.historia-banner-particles span:nth-child(1) { left:10%; top:20%; animation-delay:0s; animation-duration:7s; }
.historia-banner-particles span:nth-child(2) { left:85%; top:30%; animation-delay:1.5s; animation-duration:9s; width:6px;height:6px; }
.historia-banner-particles span:nth-child(3) { left:50%; top:70%; animation-delay:3s; animation-duration:8s; }
.historia-banner-particles span:nth-child(4) { left:25%; top:60%; animation-delay:4.5s; animation-duration:6s; width:3px;height:3px; }
.historia-banner-particles span:nth-child(5) { left:70%; top:15%; animation-delay:2s; animation-duration:10s; width:5px;height:5px; }
@keyframes hbParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.4); opacity: 1; }
}

/* Línea decorativa superior */
.historia-banner-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4AF37, #fff8, #D4AF37, transparent);
    z-index: 3;
}

.historia-banner-content {
    position: relative;
    z-index: 4;
    max-width: 700px;
    margin: 0 auto;
}

.historia-banner-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #D4AF37;
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 30px;
    padding: 0.35rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(212,175,55,0.08);
}

.historia-banner-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.historia-banner-title em {
    font-style: italic;
    color: #D4AF37;
}

.historia-banner-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.62);
    letter-spacing: 0.04em;
    margin: 0 0 2.5rem;
}

.historia-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #D4AF37, #b8860b);
    color: #0d1f0a;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 6px 30px rgba(212,175,55,0.4), 0 0 0 0 rgba(212,175,55,0.3);
    transition: transform 0.25s, box-shadow 0.25s;
}
.historia-banner-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(212,175,55,0.55), 0 0 0 6px rgba(212,175,55,0.12);
}

@media (max-width: 600px) {
    .historia-banner-section { padding: 3.5rem 1rem; }
    .historia-banner-title { font-size: 1.8rem; }
}

/* ==========================================
   Banner Seguridad Ciudadana
   ========================================== */
.seguridad-banner-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 1rem;
    text-align: center;
    isolation: isolate;
}

.seguridad-banner-bg {
    position: absolute;
    /* Sobre-dimensionado para parallax */
    inset: -12% 0;
    height: 124%;
    background: linear-gradient(135deg,
        #070E2B 0%,
        #0D1B3E 30%,
        #132060 60%,
        #0D1B3E 80%,
        #070E2B 100%);
    z-index: 0;
    will-change: transform;
}

.seguridad-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(63,94,251,0.22) 0%, transparent 70%),
        radial-gradient(ellipse 50% 70% at 85% 100%, rgba(26,35,126,0.30) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

/* Anillos de radar pulsantes */
.seguridad-banner-radar {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.seguridad-banner-radar span {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(99,131,255,0.35);
    animation: scRadar 4.5s infinite ease-out;
}
.seguridad-banner-radar span:nth-child(1) { animation-delay: 0s; }
.seguridad-banner-radar span:nth-child(2) { animation-delay: 1.5s; }
.seguridad-banner-radar span:nth-child(3) { animation-delay: 3s; }
@keyframes scRadar {
    0%   { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(5);   opacity: 0;   }
}

/* Línea decorativa superior */
.seguridad-banner-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #5C6BC0, rgba(255,255,255,0.4), #5C6BC0, transparent);
    z-index: 3;
}

.seguridad-banner-content {
    position: relative;
    z-index: 4;
    max-width: 700px;
    margin: 0 auto;
}

.seguridad-banner-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #90CAF9;
    border: 1px solid rgba(144,202,249,0.35);
    border-radius: 30px;
    padding: 0.35rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(144,202,249,0.08);
}

.seguridad-banner-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.seguridad-banner-title em {
    font-style: italic;
    color: #90CAF9;
}

.seguridad-banner-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
    margin: 0 0 2.5rem;
}

.seguridad-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #3F5EFB, #1A237E);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 6px 30px rgba(63,94,251,0.45);
    transition: transform 0.25s, box-shadow 0.25s;
}
.seguridad-banner-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(63,94,251,0.65), 0 0 0 6px rgba(63,94,251,0.12);
}

@media (max-width: 600px) {
    .seguridad-banner-section { padding: 3.5rem 1rem; }
    .seguridad-banner-title { font-size: 1.8rem; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE GLOBAL — MEJORAS COMPLETAS
   Corrige desbordamientos, tipografía y grids
═══════════════════════════════════════════════════ */

/* ── Tablet 900px ── */
@media (max-width: 900px) {

    /* Hero principal */
    .hero-center h1 { font-size: 3rem; }
    .hero-content h2 { font-size: 1.5rem; }
    .hero-content p  { font-size: 0.95rem; }

    /* Video volcán */
    .volcan-video {
        width: 320px;
        height: 360px;
    }
    .water-anim-container {
        width: 100%;
        max-width: 340px;
        height: auto;
        min-height: 380px;
    }

    /* Galería */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item[style*="span 3"] { grid-column: span 2 !important; }

    /* Community grid */
    .community-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .comm-card { padding: 1.75rem; }

    /* Water heritage section */
    .water-section-content { flex-direction: column; gap: 2rem; }
    .water-visual { justify-content: center; }
}

/* ── Móvil 768px ── */
@media (max-width: 768px) {
    /* Tipografía */
    .section-title { font-size: 1.9rem; }
    .hero-center h1 { font-size: 2.4rem; }
    .hero-center p  { font-size: 1rem; }

    /* Hero split */
    .hero-split { padding: 2rem 1.5rem; }

    /* Logo hero — arriba centrado en móvil, sin solapar el texto */
    .hero-site-logo {
        top: 1.2rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 120px !important;
        height: 120px !important;
    }

    /* Video volcán */
    .volcan-video {
        width: 280px;
        height: 315px;
    }
    .water-anim-container {
        width: 100%;
        max-width: 300px;
        min-height: 330px;
    }
    .river-wrapper { animation: none; } /* desactivar float en móvil */

    /* Galería de negocios */
    .negocio-galeria {
        grid-template-columns: 1fr !important;
        grid-template-rows: 180px !important;
    }
    .negocio-galeria-img { grid-column: 1 !important; grid-row: auto !important; }

    /* Regulador preview */
    .regulador-info { padding: 2rem 1.5rem; }

    /* Quejas form */
    .quejas-form-row { grid-template-columns: 1fr !important; }

    /* Lightbox */
    .lightbox-close { top: 12px; right: 16px; font-size: 2rem; }
    .lightbox-caption { font-size: 1rem; margin-top: 10px; }

    /* Alert card */
    .alert-card { padding: 1.5rem; }

    /* Community cards padding */
    .comm-card h3 { font-size: 1.4rem; }
    .park-info p  { font-size: 1rem; }
}

/* ── Móvil 600px ── */
@media (max-width: 600px) {
    /* Container padding */
    .container { padding: 0 4%; }

    /* Video volcán — pequeño */
    .volcan-video {
        width: 240px;
        height: 270px;
        border-radius: 12px;
    }
    .water-anim-container {
        max-width: 260px;
        min-height: 280px;
    }

    /* Hero center */
    .hero-center h1 { font-size: 2rem; letter-spacing: 0; }
    .hero-center p  { font-size: 0.9rem; }
    .hero-split { padding: 1.5rem 1rem; }

    /* Navbar logo */
    .logo { font-size: 1.2rem; }

    /* Section titles */
    .section-title { font-size: 1.65rem; margin-bottom: 1.25rem; }

    /* Cards */
    .comm-card       { padding: 1.25rem; }
    .alert-card      { padding: 1.25rem; }
    .contacto-card   { padding: 1.25rem; }
    .quejas-card     { padding: 1.25rem 1rem; }
    .negocio-card    { padding: 1rem; }

    /* Negocio card header/meta */
    .negocio-card-header,
    .negocio-card-desc,
    .negocio-card-meta { padding-left: 1rem !important; padding-right: 1rem !important; }

    /* Galería fotos negocio */
    .negocio-galeria {
        grid-template-columns: 1fr !important;
        grid-template-rows: 160px !important;
    }

    /* Admin modal */
    .admin-modal-box { padding: 1.75rem 1.1rem; max-width: calc(100vw - 2rem); }

    /* NLB lightbox */
    .nlb-close { top: 0.5rem; right: 0.5rem; width: 36px; height: 36px; font-size: 1.1rem; }
    .nlb-prev  { left: 0.25rem; }
    .nlb-next  { right: 0.25rem; }
    .nlb-counter { font-size: 0.75rem; }

    /* Historia banner */
    .historia-banner-title { font-size: 1.6rem; }
    .historia-banner-btn   { font-size: 0.82rem; padding: 0.75rem 1.5rem; }

    /* Quejas section */
    .quejas-section { padding: 1rem; }
    .quejas-card    { flex-direction: column; text-align: center; gap: 0.5rem; }

    /* Mini drops — ocultar en móvil para evitar desbordamiento */
    .md1,.md2,.md3,.md4,.md5 { display: none; }

    /* Muni banner */
    .muni-banner    { flex-wrap: wrap; gap: 0.75rem; padding: 0.75rem 1rem; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr; gap: 0.6rem; }
    .gallery-item[style*="span 3"] { grid-column: span 1 !important; }

    /* Comunidad grid */
    .community-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Regulador tags */
    .regulador-preview-tags { flex-wrap: wrap; gap: 0.4rem; }

    /* Eventos */
    .evento-card { padding: 1rem; }
}

/* ── Móvil pequeño 400px ── */
@media (max-width: 400px) {
    html { font-size: 14px; }

    .volcan-video {
        width: 200px;
        height: 225px;
        border-radius: 10px;
    }
    .water-anim-container { max-width: 220px; min-height: 240px; }

    .hero-center h1 { font-size: 1.7rem; }
    .section-title  { font-size: 1.4rem; }
    .logo           { font-size: 1rem; }

    .negocio-galeria { grid-template-rows: 140px !important; }

    .pr-hero h1 { font-size: 1.6rem; }
    .mapriot-hero h2 { font-size: 1.4rem; }
}

/* ══════════════════════════════════════════════════
   BÚSQUEDA GLOBAL
   ══════════════════════════════════════════════════ */

/* Botón en el navbar */
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(74, 85, 83, 0.2);
    background: transparent;
    cursor: pointer;
    color: var(--clr-volcanic-gray, #4A5553);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
.search-btn svg { width: 17px; height: 17px; }
.search-btn:hover {
    background: rgba(64, 224, 208, 0.1);
    border-color: var(--clr-turquoise, #40E0D0);
    color: var(--clr-turquoise-dark, #00B4A0);
}

/* Overlay fondo */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.search-overlay.active {
    pointer-events: all;
    opacity: 1;
}
.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 14, 43, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Modal contenedor */
.search-modal {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    margin: 0 1rem;
    background: #0F1A3A;
    border: 1px solid rgba(144, 202, 249, 0.18);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    transform: translateY(-12px);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.search-overlay.active .search-modal {
    transform: translateY(0);
}

/* Barra de input */
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(144, 202, 249, 0.1);
}
.search-icon-input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #90CAF9;
}
#search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.05rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
}
#search-input::placeholder { color: rgba(255,255,255,0.35); }
#search-input::-webkit-search-cancel-button { display: none; }
.search-esc-hint {
    font-size: 0.72rem;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 5px;
    padding: 0.15rem 0.5rem;
    font-family: monospace;
    flex-shrink: 0;
}

/* Lista de resultados */
.search-results-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(144,202,249,0.2) transparent;
}
.search-results-list::-webkit-scrollbar { width: 4px; }
.search-results-list::-webkit-scrollbar-thumb { background: rgba(144,202,249,0.2); border-radius: 4px; }

/* Item de resultado */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.25rem;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s;
    border-radius: 0;
}
.search-result-item:hover {
    background: rgba(144, 202, 249, 0.08);
}
.search-result-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}
.search-result-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}
.search-result-text strong {
    font-size: 0.97rem;
    font-weight: 600;
    color: #E3EEFF;
}
.search-result-text span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
}
.search-result-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgba(144,202,249,0.4);
    transition: color 0.15s, transform 0.15s;
}
.search-result-item:hover .search-result-arrow {
    color: #90CAF9;
    transform: translateX(3px);
}

/* Estado vacío */
.search-empty {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    text-align: center;
}
.search-empty span {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}
.search-empty p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
    margin: 0.35rem 0 0;
}

/* Responsive */
@media (max-width: 600px) {
    .search-overlay { padding-top: 70px; }
    .search-modal { margin: 0 0.75rem; border-radius: 14px; }
    #search-input { font-size: 0.97rem; }
    .search-esc-hint { display: none; }
}

/* ══════════════════════════════════════════════════
   SECCIÓN AGRICULTURA
   ══════════════════════════════════════════════════ */

.agri-section {
    background: linear-gradient(160deg, #0f2b1a 0%, #1a3d28 40%, #0d2416 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.agri-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2334a853' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.agri-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.agri-badge {
    display: inline-block;
    background: rgba(52, 168, 83, 0.15);
    border: 1px solid rgba(52, 168, 83, 0.35);
    color: #6fcf8a;
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.agri-header .section-title {
    color: #fff;
    margin-bottom: 1.25rem;
}

.agri-header .section-title em {
    color: #6fcf8a;
    font-style: normal;
}

.agri-intro {
    max-width: 740px;
    margin: 0 auto;
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    line-height: 1.7;
}

/* Grid de dos columnas */
.agri-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.agri-col-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.agri-col-trad {
    background: linear-gradient(90deg, rgba(139, 90, 43, 0.25), rgba(139, 90, 43, 0.08));
    border: 1px solid rgba(139, 90, 43, 0.4);
}

.agri-col-new {
    background: linear-gradient(90deg, rgba(52, 168, 83, 0.2), rgba(52, 168, 83, 0.06));
    border: 1px solid rgba(52, 168, 83, 0.35);
}

.agri-col-icon {
    font-size: 1.4rem;
}

.agri-col-header h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

/* Tarjetas de cultivos */
.agri-cards {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.agri-card {
    display: flex;
    gap: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    transition: background 0.2s, border-color 0.2s;
}

.agri-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(52, 168, 83, 0.25);
}

.agri-card-emoji {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.agri-card-body h4 {
    color: #e8f5e0;
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.agri-card-body p {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
}

/* Campo Ferial destacado */
.agri-ferial {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(120deg, rgba(255, 200, 0, 0.12), rgba(255, 160, 0, 0.06));
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 18px;
    padding: 1.5rem 2rem;
    position: relative;
}

.agri-ferial-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
}

.agri-ferial-text h3 {
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.agri-ferial-text p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .agri-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .agri-section { padding: 3.5rem 1rem; }
    .agri-ferial { flex-direction: column; text-align: center; padding: 1.25rem; }
}

/* ── Legacy mobile-nav: flat links directly inside .mobile-nav ──────────
   Used by bolsa-empleo, directorio, eventos, ruta-gastronomica,
   plan-regulador, seguridad-ciudadana (no .mobile-nav-panel structure)
──────────────────────────────────────────────────────────────────── */
.mobile-nav > .close-btn {
    position: absolute;
    top: 1.2rem; right: 1.5rem;
    background: none; border: none;
    color: rgba(255,255,255,0.85); font-size: 2rem;
    cursor: pointer; z-index: 2; line-height: 1;
}
.mobile-nav > .close-btn:hover { color: #fff; }
.mobile-nav > a {
    display: block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-size: 0.95rem; font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    transition: background 0.15s, color 0.15s;
}
.mobile-nav > a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.mobile-nav > a:first-of-type { margin-top: 4rem; }

/* ── Botón "Ver galería" en tarjetas de negocio ── */
.negocio-galeria-cta { margin: 0.1rem 0 0.85rem; }
.negocio-galeria-btn {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(90deg, #2BBBAD, #2E8B57);
    color: #fff; border: none; border-radius: 10px;
    padding: 11px 16px; font-size: 0.92rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 12px rgba(43,187,173,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.negocio-galeria-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(43,187,173,0.35); }
.negocio-galeria-btn:active { transform: scale(0.98); }
