:root {
    /* Marca oficial Leo Diana: rojo "Leo" + celeste/petróleo "Diana" */
    --brand-gradient: linear-gradient(135deg,
        #ee1b22 0%, #cf131d 24%, #8a2f4e 45%,
        #1c627f 66%, #117ba7 86%, #0f93c6 100%);
    --brand-dark: #0b0c10;
    --brand-white: #ffffff;
    --brand-gray: #f4f5f7;
    --accent: #ea111b;
    --accent-deep: #136885;
    --text-muted: #64748b;
    --text-body: #475569;
    --card-bg: #14161c;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--brand-dark); color: var(--brand-white); font-family: var(--font-body); overflow-x: hidden; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== ACCESIBILIDAD ===== */
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: #0b0c10; padding: 0.6rem 1rem; z-index: 200; font-weight: 600; border-radius: 0 0 4px 0; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .chip:focus-visible, .contact-card:focus-visible, .news-card:focus-visible {
    outline: 3px solid #ffffff; outline-offset: 3px; border-radius: 4px;
}
.section-light a:focus-visible, .section-light button:focus-visible, .section-light input:focus-visible,
.section-light select:focus-visible, .section-light textarea:focus-visible { outline-color: var(--accent-deep); }

/* ===== HEADER ===== */
header {
    position: sticky; top: 0; z-index: 50;
    padding: 1.1rem 2rem; display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(17, 123, 167, 0.18);
    transition: padding 0.3s ease, background 0.3s ease;
}
header.scrolled { padding: 0.7rem 2rem; background: #fff; box-shadow: 0 2px 14px rgba(17,123,167,0.12); }
.logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: -1px; text-decoration: none; color: var(--brand-white); display: flex; align-items: center; }
.logo span { color: var(--accent); margin-left: 2px; }
.logo-img { height: 44px; width: auto; display: block; }

/* ===== HERO BANNER (video 0630, reproduce una vez) ===== */
.hero-banner { position: relative; width: 100%; background: #0b0c10; line-height: 0; font-size: 0; overflow: hidden; }
.hero-banner-video, .hero-banner-cover { display: block; width: 100%; height: auto; }
.hero-banner-video[hidden], .hero-banner-cover[hidden] { display: none; }
/* Portada (= último frame del video): aparece con fundido corto, ALINEADA al video (misma posición) para un handoff imperceptible */
.hero-banner-end { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; z-index: 2; }
.hero-banner-end.show { opacity: 1; }
/* Marcas de gobierno + bloque: aparecen junto con la portada (abajo a la derecha) */
/* Grupo que aparece al terminar el video: botón despacho (arriba) + marca del Senado (abajo) */
.hero-endgroup { position: absolute; z-index: 3; right: clamp(5.5rem, 7vw, 7.5rem); bottom: clamp(0.7rem, 2.4vw, 1.4rem); display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem; opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none; }
.hero-endgroup.show { opacity: 1; transform: none; }
.hero-endgroup.show .hero-despacho { pointer-events: auto; }
.hero-despacho { display: inline-flex; align-items: center; gap: 0.46rem; background: var(--accent); color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.4px; text-decoration: none; padding: 0.71rem 1.27rem; border-radius: 10px; box-shadow: 0 9px 22px -5px rgba(234,17,27,0.7), 0 2px 6px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.28); transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; white-space: nowrap; }
.hero-despacho:hover { background: #cf131d; transform: translateY(-2px); box-shadow: 0 13px 26px -5px rgba(234,17,27,0.82), 0 3px 7px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.28); }
.hero-party { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.85rem; border-radius: 10px; background: rgba(11,12,16,0.5); backdrop-filter: blur(3px); white-space: nowrap; }
.hero-party-logo { height: 40px; width: auto; filter: brightness(0) invert(1); }
.hero-party-text { font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; line-height: 1.2; color: #fff; border-left: 1.5px solid rgba(255,255,255,0.4); padding-left: 0.75rem; }
.hero-party-text span { display: block; font-weight: 400; font-size: 0.72rem; opacity: 0.92; }
.hero-party-bloc { font-size: 0.66rem !important; text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; opacity: 0.85 !important; }
nav { display: flex; gap: 2rem; align-items: center; }
nav a { color: #117ba7; text-decoration: none; font-size: 0.82rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; opacity: 0.95; transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease; }
nav a:hover { opacity: 1; transform: translateY(-1px); }
.nav-cta { background: var(--accent) !important; color: var(--brand-white) !important; padding: 0.55rem 1.2rem; border-radius: 100px; opacity: 1 !important; }
.nav-cta:hover { background: var(--accent-deep) !important; color: var(--brand-white) !important; }
.nav-toggle { display: none; background: none; border: none; color: #117ba7; font-size: 1.5rem; cursor: pointer; line-height: 1; }

/* ===== BOTONES ===== */
.btn { display: inline-block; text-decoration: none; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 0.9rem; padding: 0.95rem 1.8rem; border-radius: 4px; cursor: pointer; border: none; transition: transform 0.18s ease, background-color 0.2s ease, color 0.2s ease; letter-spacing: 0.3px; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--brand-dark); color: var(--brand-white); }
.btn-dark:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--brand-white); border: 2px solid rgba(255,255,255,0.75); }
.btn-ghost:hover { background: var(--brand-white); color: var(--brand-dark); }
.btn-light { background: var(--brand-white); color: var(--brand-dark); }
.btn-light:hover { background: var(--accent); color: var(--brand-white); }
.btn-wide { margin-top: 2.5rem; }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.78rem; }

/* ===== HERO ===== */
.hero { background: var(--brand-gradient); display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); padding: 1.75rem clamp(1.5rem, 3.2vw, 4.5rem) 2rem; align-items: center; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,16,0.72) 0%, rgba(11,12,16,0.45) 45%, rgba(11,12,16,0.22) 75%, rgba(11,12,16,0.1) 100%); pointer-events: none; z-index: 1; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; opacity: 0.2; mix-blend-mode: luminosity; pointer-events: none; }
.hero-slogan { font-style: italic; font-weight: 600; font-size: 1.15rem; color: #8fd6f2; margin-top: 0.45rem; letter-spacing: 0.2px; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.hero-left, .hero-right { position: relative; z-index: 2; min-width: 0; }
.hero-left { padding-left: 0; }
.hero-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.hero-tag { background-color: var(--brand-dark); color: var(--brand-white); display: inline-block; padding: 0.4rem 0.85rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 3px; }
.hero-tag-accent { background-color: var(--accent); }
.hero-title { font-family: var(--font-display); font-size: clamp(2.4rem, 4.7vw, 3.9rem); font-weight: 800; text-transform: uppercase; line-height: 0.88; letter-spacing: -1.5px; color: var(--brand-white); text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero-title span { display: block; color: var(--brand-dark); letter-spacing: -2.5px; }
.hero-sub { margin-top: 0.5rem; font-size: 1.0625rem; max-width: 30rem; color: #fff; font-weight: 500; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.1rem; flex-wrap: wrap; }
.party-brand { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.15rem; }
.party-logo-img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.party-text { font-size: 0.92rem; font-weight: 700; line-height: 1.25; border-left: 1.5px solid rgba(255,255,255,0.45); padding-left: 0.85rem; text-shadow: 0 1px 4px rgba(0,0,0,0.35); }
.party-text span { display: block; font-weight: 400; font-size: 0.78rem; opacity: 0.92; }
.party-bloc { font-size: 0.72rem !important; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; opacity: 0.85 !important; }
.hero-right { display: flex; justify-content: flex-end; align-items: center; padding-right: 0; }
.hero-portrait { position: relative; width: min(380px, 44vw); aspect-ratio: 4 / 5; max-height: 64vh; flex: 0 0 auto; align-self: center; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); border: 4px solid rgba(255,255,255,0.92); }
.hero-portrait picture { display: block; width: 100%; height: 100%; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.portrait-badge { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(11,12,16,0.88); color: var(--brand-white); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; text-align: center; padding: 0.7rem; }

/* ===== PRENSA ===== */
.press { background: #07080b; padding: 1.6rem clamp(1.5rem, 3.2vw, 4.5rem); text-align: center; }
.press-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; color: #6b7280; font-weight: 600; margin-bottom: 0.9rem; }
.press-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 2.2rem; max-width: var(--maxw); margin: 0 auto; }
.press-logos span { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1rem; color: #9aa3b2; opacity: 0.65; letter-spacing: -0.3px; transition: opacity 0.2s ease, color 0.2s ease; }
.press-logos span:hover { opacity: 1; color: #fff; }

/* ===== STATS ===== */
.stats { background: #fff; padding: 0.7rem clamp(1.5rem, 3.2vw, 4.5rem); }
.stats-grid { max-width: none; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(17,123,167,0.18); border: 1px solid rgba(17,123,167,0.18); border-radius: 10px; overflow: hidden; }
.stat { background: #fff; padding: 0.6rem 1.25rem; text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat-label { display: block; margin-top: 0.25rem; font-size: 0.78rem; color: #117ba7; font-weight: 600; }
/* Barra horizontal de FICHA (Cargo/Mandato/Bloque/Trayectoria/Cabecera) */
.facts-bar { grid-template-columns: repeat(5, 1fr); }
.facts-bar .stat { display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; padding: 0.5rem 0.9rem; text-align: center; }
.fact-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }
.fact-value { font-family: var(--font-display); font-size: 0.98rem; font-weight: 700; color: var(--brand-dark); line-height: 1.18; }
/* Números (62%/2/9/14+) en la columna derecha del perfil */
.profile-stats { list-style: none; display: flex; flex-direction: column; }
.profile-stats li { display: flex; flex-direction: column; gap: 0.05rem; padding: 0.5rem 0; border-bottom: 1px solid #e2e8f0; }
.profile-stats li:last-child { border-bottom: none; }
.profile-stats .stat-num { font-size: 2rem; }
.profile-stats .stat-label { color: #117ba7; }

/* ===== SECCIONES ===== */
.section { padding: 2.4rem clamp(1.5rem, 3.2vw, 4.5rem); }
.container { max-width: none; margin: 0; }
.section-light { background: var(--brand-white); color: var(--brand-dark); }
.section-dark { background: var(--brand-dark); color: var(--brand-white); }
.section-grad { background: var(--brand-gradient); color: var(--brand-white); position: relative; }
.section-grad::before { content: ""; position: absolute; inset: 0; background: rgba(11,12,16,0.32); pointer-events: none; }
.section-grad > * { position: relative; z-index: 1; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 0.5rem; }
.eyebrow-light { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; text-transform: uppercase; letter-spacing: -1px; line-height: 1.04; margin-bottom: 1rem; border-bottom: 4px solid var(--accent); padding-bottom: 0.6rem; display: inline-block; }
.section-title.light { color: var(--brand-white); border-bottom-color: var(--brand-white); text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.lead { font-size: 1.08rem; font-weight: 500; color: var(--brand-dark); margin-bottom: 0.75rem; max-width: 38rem; }
.body-text { font-size: 1rem; line-height: 1.55; color: var(--text-body); max-width: 40rem; }
.body-text.light { color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,0.4); }
.body-text strong, .lead strong { color: var(--accent); }
.body-text.light strong { color: #ffd84d; }
.intro-text { margin-bottom: 0.75rem; }
.quote { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.28; color: var(--brand-dark); border-left: 4px solid var(--accent); padding: 0.2rem 0 0.2rem 1.1rem; margin: 1rem 0; }
.text-link { display: inline-block; margin-top: 1.5rem; color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.text-link:hover { text-decoration: underline; }
.profile-facts { list-style: none; border-top: 1px solid #e2e8f0; }
.profile-facts li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0; border-bottom: 1px solid #e2e8f0; }
.profile-facts span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }
.profile-facts strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--brand-dark); }
/* Perfil COMPACTO + columnas alineadas (misma altura, facts distribuidos) */
#perfil { padding-top: 0.7rem; padding-bottom: 0.7rem; }
#perfil .two-col { gap: 2.5rem; align-items: stretch; }
#perfil .eyebrow { margin-bottom: 0.15rem; font-size: 0.66rem; }
#perfil .section-title { font-size: clamp(1.2rem, 2vw, 1.55rem); margin-bottom: 0.35rem; padding-bottom: 0.28rem; }
#perfil .lead { font-size: 0.9rem; line-height: 1.34; margin-bottom: 0.35rem; max-width: none; }
#perfil .body-text { font-size: 0.87rem; line-height: 1.32; max-width: none; }
#perfil .quote { font-size: 0.9rem; line-height: 1.2; margin: 0.4rem 0; padding-top: 0; padding-bottom: 0; }
#perfil .text-link { margin-top: 0.4rem; font-size: 0.88rem; }
#perfil .profile-stats { justify-content: space-between; height: 100%; }
#perfil .profile-stats li { padding: 0.25rem 0; }

/* ===== CARDS GESTIÓN ===== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 1.5rem; }
.card { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 1.3rem; transition: transform 0.2s ease, border-color 0.2s ease; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-gradient); }
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.card-tag { display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #3fa9d4; font-weight: 700; margin-bottom: 0.75rem; }
.card h3 { font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: -0.5px; margin-bottom: 0.6rem; line-height: 1.1; }
.card p { font-size: 0.95rem; color: #9aa3b2; line-height: 1.55; }
/* Gestión COMPACTA + 4 cards en una sola fila (mejor distribuida, −50% alto) */
#gestion { padding-top: 0.95rem; padding-bottom: 0.95rem; }
#gestion .eyebrow { margin-bottom: 0.15rem; font-size: 0.66rem; }
#gestion .section-title { font-size: clamp(1.3rem, 2.3vw, 1.7rem); margin-bottom: 0.35rem; padding-bottom: 0.28rem; }
#gestion .intro-text { margin-bottom: 0; max-width: 50rem; font-size: 0.85rem; line-height: 1.36; }
#gestion .cards { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; margin-top: 0.85rem; }
#gestion .card { padding: 0.8rem 0.8rem; }
#gestion .card::before { width: 3px; }
#gestion .card-tag { margin-bottom: 0.4rem; font-size: 0.66rem; }
#gestion .card h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
#gestion .card p { font-size: 0.82rem; line-height: 1.36; }
/* Gestión en tema claro (sin fondo negro) */
#gestion .card { background: var(--brand-gray); border-color: #e2e8f0; }
#gestion .card:hover { border-color: #cbd5e1; }
#gestion .card p { color: var(--text-body); }
#gestion .card-tag { color: #117ba7; }

/* ===== PROYECTOS ===== */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.5rem; }
.project { background: var(--brand-gray); border: 1px solid #e2e8f0; border-radius: 10px; padding: 1.3rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.project:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(0,0,0,0.25); }
.project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.6rem; }
.project h3 { font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; letter-spacing: -0.3px; color: var(--brand-dark); line-height: 1.05; }
.project p { font-size: 0.9rem; color: var(--text-body); line-height: 1.5; }
.badge { flex-shrink: 0; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; padding: 0.28rem 0.55rem; border-radius: 100px; white-space: nowrap; }
.badge-progress { background: #fff4d6; color: #9a6700; }
.badge-done { background: #dcfce7; color: #15803d; }
.badge-active { background: #e0e7ff; color: #3730a3; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; align-items: center; }
.chips-label { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 0.85rem; color: var(--brand-dark); margin-right: 0.3rem; }
.chip { background: var(--brand-gray); color: var(--brand-dark); border: 1px solid #e2e8f0; padding: 0.55rem 1rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600; transition: all 0.2s ease; }
.chip:hover { background: var(--accent); color: var(--brand-white); border-color: var(--accent); }
/* Gestión + Iniciativas lado a lado en desktop (acorta la página) */
@media (min-width: 981px) {
    .dual-row { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
    .dual-row > .section { padding: 0.9rem clamp(1.1rem, 2vw, 2rem); }
    .dual-row #proyectos { border-left: 1px solid #e9edf2; }
    /* Gestión: 4 cards en 2×2 compactas */
    .dual-row #gestion .cards { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; margin-top: 0.8rem; }
    .dual-row #gestion .card { padding: 0.7rem 0.75rem; }
    .dual-row #gestion .card h3 { font-size: 0.9rem; margin-bottom: 0.3rem; }
    .dual-row #gestion .card p { font-size: 0.78rem; line-height: 1.3; }
    .dual-row #gestion .card-tag { margin-bottom: 0.3rem; }
    /* Iniciativas: título compacto, proyectos apilados y chips más chicos */
    .dual-row #proyectos .eyebrow { margin-bottom: 0.15rem; }
    .dual-row #proyectos .section-title { font-size: clamp(1.25rem, 2.1vw, 1.65rem); margin-bottom: 0.4rem; padding-bottom: 0.3rem; }
    .dual-row #proyectos .projects { grid-template-columns: 1fr; gap: 0.6rem; margin-top: 0.8rem; }
    .dual-row #proyectos .project { padding: 0.7rem 0.9rem; }
    .dual-row #proyectos .project-head { margin-bottom: 0.3rem; }
    .dual-row #proyectos .project h3 { font-size: 0.98rem; }
    .dual-row #proyectos .project p { font-size: 0.82rem; line-height: 1.34; }
    .dual-row #proyectos .chips { margin-top: 0.85rem; gap: 0.4rem; }
    .dual-row #proyectos .chips-label { font-size: 0.78rem; }
    .dual-row #proyectos .chip { padding: 0.35rem 0.7rem; font-size: 0.76rem; }
}

/* ===== TERRITORIO ===== */
.territory-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: stretch; }
.territory-col { display: flex; flex-direction: column; }
.terr-intro { margin-bottom: 0.9rem; max-width: 34rem; }
.territory-flex { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: auto; }
.territory-flex .territory-list { flex: 1; min-width: 0; }
.territory-flex .map-wrap { flex: 0 0 auto; }
.territory-list { margin-top: 0; }
.territory-node { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.3); }
.territory-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; text-transform: uppercase; text-shadow: 0 1px 4px rgba(0,0,0,0.35); }
.territory-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; background: rgba(11,12,16,0.55); padding: 0.3rem 0.7rem; border-radius: 100px; font-weight: 600; }
.map-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.map-wrap img { width: auto; max-height: 215px; filter: drop-shadow(0 12px 22px rgba(0,0,0,0.4)); background: rgba(255,255,255,0.14); border-radius: 8px; padding: 0.6rem; }
.map-caption { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }

/* ===== FORMS ===== */
.report-wrap { margin-top: 2.5rem; }
.report-card { background: var(--brand-white); color: var(--brand-dark); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; box-shadow: 0 30px 60px -25px rgba(0,0,0,0.5); }
.report-intro h3 { font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: -0.5px; line-height: 1.05; margin-bottom: 0.4rem; }
.report-intro p { font-size: 0.9rem; }
.report-intro p { font-size: 0.95rem; color: var(--text-body); line-height: 1.55; }
.form { display: flex; flex-direction: column; gap: 0.7rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.form input, .form select, .form textarea { font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--brand-dark); background: #fff; border: 1.5px solid #d7dce3; border-radius: 7px; padding: 0.5rem 0.7rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,0,52,0.12); outline: none; }
.form textarea { resize: vertical; min-height: 48px; }
.consent { flex-direction: row !important; align-items: flex-start; gap: 0.6rem !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 0.82rem !important; font-weight: 400 !important; color: var(--text-body) !important; line-height: 1.4; }
.consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--accent); }
.consent a { color: var(--accent); font-weight: 600; }
.form-status { font-size: 0.9rem; font-weight: 600; min-height: 1rem; margin: 0; text-transform: none; letter-spacing: 0; }
.form-status.ok { color: #15803d; }
.form-status.err { color: var(--accent); }
.form-card { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 2rem; }
.form-card label { color: #9aa3b2; }
.form-card input, .form-card select { background: #0d0f14; border-color: #2a2f3a; color: #fff; }
.form-card .consent { color: #9aa3b2 !important; }
.sumate-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.sumate-list li { position: relative; padding-left: 1.6rem; font-size: 0.98rem; color: #fff; }
.sumate-list li::before { content: "✓"; position: absolute; left: 0; color: #3fa9d4; font-weight: 800; }

/* ===== NOVEDADES ===== */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.news-card { background: var(--brand-gray); border: 1px solid #e2e8f0; border-radius: 10px; padding: 1.6rem; text-decoration: none; color: var(--brand-dark); display: flex; flex-direction: column; gap: 0.6rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -18px rgba(0,0,0,0.3); }
.news-date { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; }
.news-card h3 { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: -0.4px; line-height: 1.1; }
.news-card p { font-size: 0.92rem; color: var(--text-body); line-height: 1.5; flex-grow: 1; }
.news-link { font-size: 0.85rem; font-weight: 700; color: var(--accent); }

/* ===== CONTACTO ===== */
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-lead { margin: 0 auto; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; width: 100%; }
.contact-card { background: rgba(11,12,16,0.78); border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; padding: 1.6rem 1rem; text-decoration: none; color: var(--brand-white); transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; display: flex; flex-direction: column; gap: 0.4rem; }
.contact-card:hover { transform: translateY(-4px); border-color: #fff; background: rgba(11,12,16,0.92); }
.contact-card-primary { background: #25D366; color: #07241a; border-color: #25D366; }
.contact-card-primary:hover { background: #1ebe5a; border-color: #fff; }
.contact-k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; font-weight: 600; }
.contact-v { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
/* Contacto compacto (~−50% alto) */
#contacto { padding-top: 0.7rem; padding-bottom: 0.7rem; }
#contacto .eyebrow { margin-bottom: 0.1rem; font-size: 0.66rem; }
#contacto .section-title { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 0.35rem; padding-bottom: 0.28rem; }
#contacto .contact-lead { font-size: 0.85rem; line-height: 1.36; margin-bottom: 0.25rem; max-width: 52rem; }
#contacto .contact-grid { margin-top: 0.85rem; gap: 0.65rem; }
#contacto .contact-card { padding: 0.7rem 0.85rem; }
#contacto .contact-k { font-size: 0.66rem; }
#contacto .contact-v { font-size: 0.95rem; }
#contacto .btn-wide { margin-top: 0.7rem; }

/* ===== FOOTER ===== */
footer { background: #fff; padding: 3rem clamp(1.5rem, 3.2vw, 4.5rem); border-top: 1px solid rgba(17,123,167,0.18); }
.footer-wrap { max-width: none; margin: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; font-weight: 800; letter-spacing: -1px; }
.footer-logo-img { height: 86px; width: auto; display: block; }
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 0.85rem; color: #117ba7; font-weight: 600; margin-top: 0.4rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { font-size: 0.85rem; color: #117ba7; font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-meta { text-align: right; font-size: 0.82rem; color: #4b7d92; line-height: 1.7; }
.footer-copy { margin-top: 0.6rem; opacity: 0.7; }
/* Footer compacto */
footer { padding-top: 0.4rem; padding-bottom: 0.4rem; }
.footer-logo-img { height: 30px; }
.footer-tagline { margin-top: 0.1rem; font-size: 0.73rem; }
.footer-nav { gap: 0.12rem; }
.footer-nav a { font-size: 0.75rem; line-height: 1.15; }
.footer-meta { line-height: 1.3; font-size: 0.75rem; }
.footer-copy { margin-top: 0.15rem; }

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float { position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px -6px rgba(0,0,0,0.45); transition: transform 0.2s ease; }
.wa-float:hover { transform: scale(1.08); }

/* ===== CONSENT BANNER ===== */
.consent-banner[hidden] { display: none; }
.consent-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; background: rgba(11,12,16,0.97); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.12); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.consent-banner p { font-size: 0.85rem; color: #c7cdd6; max-width: 60ch; }
.consent-banner a { color: #fff; text-decoration: underline; }
.consent-actions { display: flex; gap: 0.75rem; }

/* ===== REVEAL + STAGGER ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: 0.08s; }
[data-reveal].d2 { transition-delay: 0.16s; }
[data-reveal].d3 { transition-delay: 0.24s; }
[data-reveal].d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .btn:hover, .card:hover, .news-card:hover, .project:hover, .contact-card:hover, .wa-float:hover { transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; padding: 1.5rem 1.5rem 2rem; }
    .hero::before { background: linear-gradient(180deg, rgba(11,12,16,0.5), rgba(11,12,16,0.15)); }
    .hero-video { display: none; }
    .logo-img { height: 40px; }
    .hero-left, .hero-right { padding-left: 0; padding-right: 0; }
    .hero-right { justify-content: center; }
    .hero-portrait { width: min(360px, 78vw); }
    .hero-portrait img { max-height: 60vh; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .facts-bar .stat:last-child { grid-column: 1 / -1; }
    .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
    .territory-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .territory-flex { flex-direction: column; align-items: stretch; margin-top: 1rem; }
    .territory-flex .map-wrap { align-self: center; }
    .cards { grid-template-columns: 1fr; }
    #gestion .cards { grid-template-columns: repeat(2, 1fr); }
    .projects { grid-template-columns: 1fr; }
    .news { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .report-card { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.75rem; }
    nav { position: fixed; top: 64px; right: 0; left: 0; flex-direction: column; gap: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(14px); padding: 1rem 2rem; align-items: stretch; transform: translateY(-150%); transition: transform 0.3s ease; border-bottom: 1px solid rgba(17,123,167,0.18); box-shadow: 0 10px 24px rgba(17,123,167,0.1); max-height: calc(100vh - 64px); overflow-y: auto; }
    nav.open { transform: translateY(0); }
    nav a { padding: 0.9rem 0; border-bottom: 1px solid rgba(17,123,167,0.12); }
    .nav-cta { text-align: center; margin-top: 0.5rem; }
    .nav-toggle { display: block; }
}
@media (max-width: 560px) {
    .section { padding: 2rem 1.25rem; }
    .hero-endgroup { display: none; } /* el banner es muy finito en celular */
    /* Hero */
    .hero { padding: 1.25rem 1.25rem 1.75rem; gap: 1.5rem; }
    .hero-title { font-size: 2rem; line-height: 0.95; }
    .hero-sub { font-size: 1rem; margin-top: 0.7rem; max-width: 100%; }
    .hero-actions { flex-direction: column; gap: 0.6rem; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .party-brand { margin-top: 1rem; }
    .hero-portrait { width: min(300px, 80vw); }
    /* Stats */
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .facts-bar { grid-template-columns: 1fr; }
    .facts-bar .stat { text-align: left; }
    #gestion .cards { grid-template-columns: 1fr; }
    .stat { padding: 1.1rem 0.6rem; }
    .stat-num { font-size: 1.9rem; }
    .stat-label { font-size: 0.76rem; }
    /* Forms */
    .form-row { grid-template-columns: 1fr; }
    /* Territorio */
    .territory-grid { gap: 1.25rem; }
    .territory-flex { gap: 1rem; }
    .map-wrap img { max-height: 155px; }
    .report-card { padding: 1.25rem; gap: 0.8rem; }
    .report-intro h3 { font-size: 1.15rem; }
    /* Otros */
    .contact-grid { grid-template-columns: 1fr; }
    .footer-wrap { flex-direction: column; align-items: flex-start; }
    .footer-meta { text-align: left; }
    .consent-banner { flex-direction: column; align-items: flex-start; }
}
