/* =========================================================
   JUNTA DE USUARIOS DE AGUA — SECTOR HIDRÁULICO MENOR VIRÚ
   Paleta inspirada en el logotipo: verde institucional + azul agua
   ========================================================= */

:root {
    /* Paleta corporativa */
    --green:        #2c8a3e;
    --green-dark:   #1f6b2e;
    --green-soft:   #e8f5e9;
    --blue:         #1e4a9e;
    --blue-dark:    #163872;
    --blue-light:   #5cc8f5;
    --blue-soft:    #e7f3fb;

    /* Neutros */
    --ink:          #1a2332;
    --ink-soft:     #495568;
    --paper:        #ffffff;
    --paper-2:      #f7f9fb;
    --line:         #e3e7ec;
    --muted:        #6b7785;

    /* Acento dorado para CTAs especiales */
    --gold:         #f4b942;

    /* Tipografía */
    /* Titulares: serif suave y redondeada, menos rígida que Playfair.
       Alternativas: cambia solo esta línea.
         'Bitter'         -> serif de palo, muy legible
         'Outfit'         -> sin serif, geométrica y amable
         'Plus Jakarta Sans' -> sin serif, moderna y cálida            */
    --serif:  'Fraunces', 'Georgia', serif;

    /* Cuerpo: más cálida y con letras más abiertas que Inter.
       Alternativas: 'Plus Jakarta Sans', 'Outfit', 'Rubik'            */
    --sans:   'Nunito Sans', 'Segoe UI', system-ui, sans-serif;

    /* Layout */
    --max:    1280px;
    --gutter: clamp(20px, 4vw, 56px);
    --radius: 8px;
    --radius-lg: 16px;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.06);
    --shadow:    0 8px 28px rgba(26, 35, 50, 0.08);
    --shadow-lg: 0 24px 60px rgba(26, 35, 50, 0.12);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}
.btn i { font-size: 18px; }
.btn__icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}
.btn--sm  { padding: 9px 16px; font-size: 13px; }
.btn--sm .btn__icon-svg { width: 18px; height: 18px; }
.btn--lg  { padding: 16px 32px; font-size: 15px; }

.btn--primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 6px 20px rgba(44, 138, 62, 0.3);
}
.btn--primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(44, 138, 62, 0.4);
}

.btn--accent {
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 6px 20px rgba(244, 185, 66, 0.4);
}
.btn--accent:hover {
    background: #e9a925;
    transform: translateY(-2px);
}

.btn--light {
    background: #fff;
    color: var(--blue-dark);
}
.btn--light:hover {
    background: var(--blue-soft);
    transform: translateY(-2px);
}

.btn--outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
.btn--outline-light:hover {
    background: #fff;
    color: var(--blue-dark);
    border-color: #fff;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 10px 0;
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.topbar__left, .topbar__right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.topbar i { font-size: 16px; vertical-align: -3px; margin-right: 4px; color: var(--blue-light); }
.topbar a:hover { color: #fff; }
.topbar__social { display: flex; gap: 10px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.15); }
.topbar__social a {
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}
.topbar__social a:hover { background: var(--green); }
.topbar__social i { margin: 0; color: #fff; font-size: 14px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.nav.is-scrolled { box-shadow: var(--shadow); }

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.logo__img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}
.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo__text strong {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 17px;
    color: var(--blue-dark);
    letter-spacing: -0.01em;
}
.logo__text span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.nav__links {
    display: flex;
    gap: 30px;
    font-size: 14px;
    font-weight: 500;
}
.nav__links a {
    position: relative;
    padding: 4px 0;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}
.nav__links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: width 0.25s ease;
}
.nav__links a:hover,
.nav__links a.is-active {
    color: var(--green-dark);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }

.nav__toggle {
    display: none;
    width: 36px; height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
}
.nav__toggle span {
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__ctas {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   SLIDER HERO
   ========================================================= */
.slider {
    position: relative;
    height: calc(100vh - 84px - 40px);
    min-height: 580px;
    max-height: 780px;
    overflow: hidden;
    background: var(--blue-dark);
}
.slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 7s ease-out;
}
.slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Backgrounds en gradiente con efecto pattern */
.slide[data-bg="slide-1"] {
    background:
        linear-gradient(135deg, rgba(22, 56, 114, 0.72), rgba(44, 138, 62, 0.55)),
        radial-gradient(circle at 20% 30%, #1e4a9e 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, #2c8a3e 0%, transparent 50%),
        linear-gradient(135deg, #163872 0%, #1f6b2e 100%);
}
.slide[data-bg="slide-2"] {
    background:
        linear-gradient(135deg, rgba(22, 56, 114, 0.78), rgba(30, 74, 158, 0.5)),
        radial-gradient(circle at 70% 40%, #5cc8f5 0%, transparent 55%),
        linear-gradient(135deg, #163872 0%, #1e4a9e 100%);
}
.slide[data-bg="slide-3"] {
    background:
        linear-gradient(135deg, rgba(31, 107, 46, 0.7), rgba(22, 56, 114, 0.7)),
        radial-gradient(circle at 30% 60%, #2c8a3e 0%, transparent 50%),
        linear-gradient(135deg, #1f6b2e 0%, #163872 100%);
}

/* Patrón de ondas decorativo */
.slide__overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}
.slide__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.25) 100%);
}

.slide__content {
    position: relative;
    color: #fff;
    max-width: 820px;
}

.slide__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 28px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    font-weight: 500;
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--blue-light);
    box-shadow: 0 0 0 4px rgba(92, 200, 245, 0.3);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(92, 200, 245, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(92, 200, 245, 0.1); }
}

.slide__title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}
.slide__title em {
    font-style: italic;
    font-weight: 500;
    color: var(--blue-light);
    background: linear-gradient(135deg, #5cc8f5, #f4b942);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide__lead {
    max-width: 620px;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Animación de entrada del contenido */
.slide.is-active .slide__eyebrow,
.slide.is-active .slide__title,
.slide.is-active .slide__lead,
.slide.is-active .slide__actions {
    animation: slideUp 0.9s ease-out forwards;
}
.slide.is-active .slide__title { animation-delay: 0.1s; }
.slide.is-active .slide__lead { animation-delay: 0.25s; }
.slide.is-active .slide__actions { animation-delay: 0.4s; }
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Controles del slider */
.slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 4;
}
.slider__arrow:hover {
    background: #fff;
    color: var(--blue-dark);
    transform: translateY(-50%) scale(1.08);
}
.slider__arrow i { font-size: 28px; }
.slider__arrow--prev { left: 32px; }
.slider__arrow--next { right: 32px; }

.slider__dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}
.slider__dots button {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
}
.slider__dots button.is-active {
    background: #fff;
    width: 56px;
}

.slider__scroll {
    position: absolute;
    bottom: 36px;
    right: var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
    z-index: 4;
}
.slider__scroll i { font-size: 22px; }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* =========================================================
   QUICK ACCESS
   ========================================================= */
.quick-access {
    position: relative;
    margin-top: -60px;
    z-index: 5;
    padding-bottom: 60px;
}
.quick-access__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.quick-card {
    position: relative;
    background: #fff;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--line);
    overflow: hidden;
}
.quick-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.quick-card:hover::before { transform: scaleX(1); }
.quick-card--feat {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    border-color: transparent;
}
.quick-card--feat::before { background: var(--gold); }

.quick-card__icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.quick-card--feat .quick-card__icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.quick-card:hover .quick-card__icon { transform: scale(1.08) rotate(-4deg); }

.quick-card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.quick-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}
.quick-card--feat p { color: rgba(255, 255, 255, 0.8); }
.quick-card__arrow {
    position: absolute;
    top: 28px;
    right: 28px;
    color: var(--muted);
    font-size: 20px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}
.quick-card--feat .quick-card__arrow { color: #fff; opacity: 0.6; transform: none; }
.quick-card:hover .quick-card__arrow { opacity: 1; transform: translateX(0); color: var(--green); }
.quick-card--feat:hover .quick-card__arrow { opacity: 1; color: var(--gold); }

/* =========================================================
   SECCIONES — encabezado común
   ========================================================= */
.section-head {
    max-width: 720px;
    margin-bottom: 60px;
}
.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-head--flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
    max-width: none;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
    font-weight: 600;
}
.section-eyebrow--light { color: var(--blue-light); }
.section-eyebrow--accent { color: var(--gold); }

.section-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--ink);
}
.section-title em {
    font-style: italic;
    color: var(--green);
}
.section-title--light { color: #fff; }
.section-title--light em { color: var(--blue-light); }

.section-lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
}
.section-lead--light { color: rgba(255, 255, 255, 0.8); }

/* Link con flecha */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
    transition: gap 0.25s ease;
}
.link-arrow i { font-size: 18px; transition: transform 0.25s ease; }
.link-arrow:hover { color: var(--green-dark); }
.link-arrow:hover i { transform: translateX(4px); }
.link-arrow--sm { font-size: 13px; }

/* =========================================================
   ABOUT / INSTITUCIÓN
   ========================================================= */
.about {
    padding: clamp(80px, 10vw, 130px) 0;
    background: var(--green-soft);
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(44, 138, 62, 0.08), transparent 70%);
    pointer-events: none;
}
.about__inner { position: relative; }
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}
.about__image {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--green-soft), var(--blue-soft));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.about__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(44, 138, 62, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
}
.about__logo-wrap {
    position: relative;
    width: 70%;
    max-width: 360px;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 50%;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about__logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.about__badge {
    position: absolute;
    bottom: 32px;
    right: 32px;
    background: var(--green);
    color: #fff;
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.about__badge strong {
    display: block;
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}
.about__badge span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    line-height: 1.3;
    display: block;
}

.about__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 36px 0;
}
.about__pillars > div {
    padding: 20px;
    background: var(--paper-2);
    border-radius: var(--radius);
    border-left: 3px solid var(--green);
}
.about__pillars i {
    font-size: 28px;
    color: var(--green);
    margin-bottom: 12px;
}
.about__pillars h4 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 6px;
}
.about__pillars p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* =========================================================
   STATS
   ========================================================= */
.stats {
    position: relative;
    padding: 70px 0;
    overflow: hidden;
    color: #fff;
}
.stats__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(31, 107, 46, 0.95), rgba(22, 56, 114, 0.95)),
        radial-gradient(circle at 30% 50%, #2c8a3e 0%, transparent 50%);
    background-color: var(--blue-dark);
    z-index: -1;
}
.stats__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}
.stat {
    text-align: center;
    padding: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.stat:last-child { border-right: none; }
.stat i {
    font-size: 36px;
    color: var(--blue-light);
    margin-bottom: 12px;
}
.stat__num {
    font-family: var(--serif);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}
.stat__num::after {
    content: '+';
    color: var(--gold);
    margin-left: 2px;
}
.stat__label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.services {
    padding: clamp(80px, 10vw, 130px) 0;
    background: #fff;
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service {
    background: var(--paper-2);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--green-soft), transparent);
    border-bottom-left-radius: 100%;
    opacity: 0.6;
}
.service:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--green);
}
.service--feat {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    border-color: transparent;
}
.service--feat::before {
    background: linear-gradient(135deg, rgba(92, 200, 245, 0.3), transparent);
}
.service__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--green-soft);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
}
.service--feat .service__icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--blue-light);
}
.service h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.service > p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 20px;
}
.service--feat > p { color: rgba(255, 255, 255, 0.85); }
.service--feat .link-arrow { color: var(--gold); }
.service--feat .link-arrow:hover { color: #fff; }

/* =========================================================
   INFRA (oscura)
   ========================================================= */
.infra {
    padding: clamp(80px, 10vw, 130px) 0;
    background: var(--blue-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.infra::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(44, 138, 62, 0.25), transparent 70%);
    pointer-events: none;
}
.infra__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}
.infra__list {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.infra__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}
.infra__list i {
    color: var(--gold);
    font-size: 22px;
    flex-shrink: 0;
}

.infra__visual {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow: hidden;
}
.infra__svg { width: 100%; height: 100%; }
.infra__river {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawRiver 3s ease-out forwards;
}
@keyframes drawRiver {
    to { stroke-dashoffset: 0; }
}
.infra__points circle { transform-origin: center; }
.infra__points circle:not([fill="#fff"]) {
    animation: pulsePoint 2s ease-in-out infinite;
}
@keyframes pulsePoint {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.infra__chip {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    color: var(--blue-dark);
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow);
}
.infra__chip i { font-size: 16px; color: var(--green); }
.infra__chip--1 { top: 20%; right: 10%; }
.infra__chip--2 { bottom: 25%; left: 8%; }

/* =========================================================
   NOTICIAS
   ========================================================= */
.news {
    padding: clamp(80px, 10vw, 130px) 0;
    background: var(--blue-soft);
    position: relative;
    overflow: hidden;
}
.news::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 74, 158, 0.08), transparent 70%);
    pointer-events: none;
}
.news .container { position: relative; }
.news__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.news-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.news-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.news-card__image {
    height: 220px;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
/* Imágenes ficticias via gradiente */
.news-card__image--1 {
    background:
        linear-gradient(135deg, rgba(44, 138, 62, 0.6), rgba(22, 56, 114, 0.6)),
        radial-gradient(circle at 30% 30%, #5cc8f5, #1e4a9e);
}
.news-card__image--2 {
    background:
        linear-gradient(135deg, rgba(31, 107, 46, 0.65), rgba(244, 185, 66, 0.4)),
        radial-gradient(circle at 70% 60%, #2c8a3e, #1f6b2e);
}
.news-card__image--3 {
    background:
        linear-gradient(135deg, rgba(22, 56, 114, 0.65), rgba(44, 138, 62, 0.55)),
        radial-gradient(circle at 40% 70%, #1e4a9e, #163872);
}
.news-card__image--4 {
    background:
        linear-gradient(135deg, rgba(184, 132, 58, 0.55), rgba(31, 107, 46, 0.7)),
        radial-gradient(circle at 60% 40%, #f4b942, #b8843a);
}
.news-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.2) 1px, transparent 0);
    background-size: 18px 18px;
    opacity: 0.7;
}
.news-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff;
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
}
.news-card__body { padding: 28px; }
.news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}
.news-card__date i { font-size: 16px; color: var(--green); }
.news-card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.news-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* =========================================================
   CTA / TRANSPARENCIA
   ========================================================= */
.cta {
    padding: clamp(80px, 10vw, 130px) 0;
    background:
        linear-gradient(135deg, rgba(22, 56, 114, 0.96), rgba(31, 107, 46, 0.96)),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='1' fill='rgba(255,255,255,0.1)'/></svg>");
    background-size: cover, 20px 20px;
    color: #fff;
}
.cta__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}
.cta__title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #fff;
}
.cta__title em {
    font-style: italic;
    color: var(--gold);
}
.cta__text > p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 480px;
}
.cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cta__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.cta-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
}
.cta-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    border-color: var(--gold);
}
.cta-card i {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 12px;
}
.cta-card h4 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 4px;
}
.cta-card span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { padding: clamp(80px, 10vw, 130px) 0; }
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}
.contact__info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-item__icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    background: var(--green-soft);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.contact-item h4 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 4px;
}
.contact-item p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.contact__form {
    background: var(--paper-2);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}
.contact__form h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.field-row .field { margin-bottom: 18px; }
.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}
.field input,
.field textarea {
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
    font-family: inherit;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(44, 138, 62, 0.1);
}
.form-status {
    margin-top: 12px;
    font-size: 14px;
    color: var(--green);
    min-height: 20px;
    font-weight: 500;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 28px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo--footer .logo__text strong { color: #fff; }
.logo--footer .logo__text span { color: rgba(255, 255, 255, 0.6); }
.footer__brand p {
    margin: 20px 0;
    font-size: 14px;
    max-width: 320px;
    line-height: 1.6;
}
.footer__social {
    display: flex;
    gap: 10px;
}
.footer__social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}
.footer__social a:hover {
    background: var(--green);
    transform: translateY(-3px);
}
.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer__cols h5 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 18px;
    color: #fff;
}
.footer__cols a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 10px;
    transition: color 0.2s ease, padding 0.2s ease;
}
.footer__cols a:hover {
    color: var(--blue-light);
    padding-left: 4px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}
.footer__bottom div { display: flex; gap: 24px; }
.footer__bottom a:hover { color: #fff; }

/* =========================================================
   WHATSAPP FAB
   ========================================================= */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    z-index: 40;
    transition: transform 0.25s ease;
    animation: whatsappPulse 2.5s ease-in-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); }
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* =========================================================
   ANIMACIONES DE ENTRADA
   ========================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .nav__ctas .btn--accent { display: none; }
}

@media (max-width: 1024px) {
    .nav__links { gap: 22px; }
    .about__inner { gap: 48px; }
    .quick-access__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hide-md { display: none; }
    .nav__links { display: none; }
    .nav__links.is-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        padding: 16px var(--gutter) 24px;
        box-shadow: var(--shadow);
    }
    .nav__links.is-open a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }
    .nav__toggle { display: flex; }
    .nav__ctas { display: none; }

    .about__inner,
    .infra__inner,
    .cta__inner,
    .contact__grid { grid-template-columns: 1fr; gap: 48px; }
    .about__image { max-width: 480px; margin: 0 auto; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .news__grid { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
    .stat { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding-bottom: 16px; }
    .stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.15); }
    .stat:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
    .footer__inner { grid-template-columns: 1fr; gap: 48px; }
    .slider__arrow { display: none; }
    .slider__scroll { display: none; }
}

@media (max-width: 600px) {
    .hide-sm { display: none; }
    .topbar { font-size: 12px; }
    .topbar__left, .topbar__right { gap: 14px; }
    .logo__text strong { font-size: 15px; }
    .logo__text span { font-size: 10px; }
    .logo__img { width: 48px; height: 48px; }

    .slider { min-height: 520px; }
    .slide__title { font-size: clamp(30px, 8vw, 44px); }

    .quick-access__grid { grid-template-columns: 1fr; gap: 16px; }
    .quick-access { margin-top: -40px; }
    .services__grid { grid-template-columns: 1fr; }
    .about__pillars { grid-template-columns: 1fr; gap: 14px; }
    .cta__cards { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .footer__cols { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .contact__form { padding: 28px 24px; }
    .stats__grid { grid-template-columns: 1fr; }
    .stat { border-right: none !important; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
    .stat:last-child { border-bottom: none; }
}

/* =========================================================
   SWEETALERT 2 — Estilos personalizados Junta Virú
   ========================================================= */
.swal-junta {
    border-radius: var(--radius-lg) !important;
    padding: 28px 24px 24px !important;
    font-family: var(--sans) !important;
    box-shadow: 0 30px 80px rgba(13, 27, 42, 0.25) !important;
    border: 1px solid var(--line);
}
.swal-junta .swal2-title {
    font-family: var(--serif) !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    color: var(--ink) !important;
    letter-spacing: -0.01em;
    padding: 8px 0 6px !important;
}
.swal-junta .swal2-html-container,
.swal-junta .swal2-content {
    font-family: var(--sans) !important;
    font-size: 15px !important;
    color: var(--ink-soft) !important;
    line-height: 1.6 !important;
    margin-top: 4px !important;
}
.swal-junta .swal2-html-container strong {
    color: var(--ink);
    font-weight: 600;
}
.swal-junta .swal2-actions { margin-top: 20px !important; gap: 10px; }
.swal-junta .swal2-styled.swal2-confirm,
.swal-junta .swal2-styled.swal2-cancel,
.swal-junta .swal2-styled.swal2-deny {
    border-radius: var(--radius) !important;
    padding: 11px 22px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    font-family: var(--sans) !important;
    letter-spacing: 0.01em;
    box-shadow: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.swal-junta .swal2-styled.swal2-confirm:hover,
.swal-junta .swal2-styled.swal2-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 27, 42, 0.12) !important;
}
.swal-junta .swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 4px rgba(44, 138, 62, 0.2) !important;
}
.swal-junta .swal2-styled.swal2-cancel {
    background: var(--paper-2) !important;
    color: var(--ink-soft) !important;
    border: 1.5px solid var(--line) !important;
}

/* Iconos */
.swal-junta .swal2-icon { margin: 8px auto 16px !important; }
.swal-junta .swal2-icon.swal2-success {
    border-color: var(--green) !important;
    color: var(--green) !important;
}
.swal-junta .swal2-icon.swal2-success [class^='swal2-success-line'],
.swal-junta .swal2-icon.swal2-success .swal2-success-ring {
    background-color: var(--green) !important;
}
.swal-junta .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(44, 138, 62, 0.3) !important;
    background-color: transparent !important;
}
.swal-junta .swal2-icon.swal2-warning {
    border-color: #f4b942 !important;
    color: #b8843a !important;
}
.swal-junta .swal2-icon.swal2-error { border-color: #d9534f !important; color: #d9534f !important; }
.swal-junta .swal2-icon.swal2-info { border-color: var(--blue) !important; color: var(--blue) !important; }
.swal-junta .swal2-icon.swal2-question { border-color: var(--blue) !important; color: var(--blue) !important; }

/* Timer progress bar */
.swal-junta .swal2-timer-progress-bar {
    background: var(--green) !important;
    height: 4px !important;
}

/* Backdrop */
.swal2-backdrop-show {
    background: rgba(13, 27, 42, 0.55) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* ===== Ajustes tipográficos (fuente amigable) ===== */
body{ -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

/* Fraunces rinde mejor con un poco menos de interletrado en titulares */
h1,h2,h3,h4{ letter-spacing:-0.015em; }

/* Cifras de ancho fijo: los importes no "bailan" al cambiar de valor */
.turno-row__sub,.turno-editor__hint strong,
.precio-chip strong,.resumen-compra strong,
.summary-line span:last-child,
input[type=number]{ font-variant-numeric: tabular-nums; }

/* Degradados extra para portadas de noticias */
.news-card__image--5 {
    background: linear-gradient(135deg, #0f6e56 0%, #7fb539 100%);
}
.news-card__image--6 {
    background: linear-gradient(135deg, #1e4a9e 0%, #6b3fa0 100%);
}

