:root {
    --red:         #f91119;
    --red-dark:    #f91119;
    --red-light:   rgba(251,19,32,0.10);
    --blue:        #0059ae;
    --blue-dark:   #0059ae;
    --blue-mid:    #1a3a72;
    --blue-light:  rgba(32,72,142,0.08);
    --white:       #ffffff;
    --off-white:   #f4f6fb;
    --gray-light:  #e8ecf4;
    --text-dark:   #0d1b2a;
    --text-muted:  #6b7a93;
    --font-head:   'Montserrat', sans-serif;
    --font-body:   'Open Sans', sans-serif;
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --transition:  all 0.3s var(--ease);
    --shadow-sm:   0 2px 8px rgba(13,27,42,0.08);
    --shadow-md:   0 8px 24px rgba(13,27,42,0.12);
    --shadow-lg:   0 20px 48px rgba(13,27,42,0.18);
    --radius-sm:   8px;
    --radius-md:   16px;
    --radius-lg:   24px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 72px; }
body { font-family: var(--font-body); color: var(--text-dark); scroll-behavior: smooth; background: var(--white); line-height: 1.65; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.15; }
img { max-width: 100%; }

/* UTILITY */
.text-red { color: var(--red) !important; }
.text-blue { color: var(--blue) !important; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 0.85rem;
}
.section-tag::before { content:''; display:inline-block; width:28px; height:3px; background:var(--red); border-radius:2px; }
.section-title { font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight:800; color:var(--text-dark); margin-bottom:1rem; }
.section-lead { font-size:1.05rem; color:var(--text-muted); max-width:560px; }

/* TOPBAR */
.topbar { background:var(--blue-dark); color:rgba(255,255,255,0.6); font-size:0.78rem; padding:6px 0; border-bottom:1px solid rgba(255,255,255,0.07); }
.topbar a { color:rgba(255,255,255,0.6); text-decoration:none; transition:var(--transition); }
.topbar a:hover { color:var(--red); }

/* NAVBAR */
.navbar { background:var(--blue-dark); border-bottom:3px solid var(--red); padding:0.6rem 0; transition:var(--transition); }
.navbar.scrolled { padding:0.35rem 0; box-shadow:0 4px 20px rgba(0,0,0,0.25); }
.navbar-brand { font-family:var(--font-head); font-weight:900; font-size:1.4rem; color:var(--white) !important; letter-spacing:0.04em; line-height:1; }
.navbar-brand span { color:var(--red); }
.navbar-brand small { display:block; font-size:0.5rem; font-weight:600; letter-spacing:0.28em; color:rgba(255,255,255,0.4); margin-top:2px; }
.navbar .nav-link { font-family:var(--font-head); color:rgba(255,255,255,0.78) !important; font-weight:600; font-size:0.78rem; letter-spacing:0.06em; text-transform:uppercase; padding:0.6rem 0.7rem !important; position:relative; transition:var(--transition); }
.navbar .nav-link::after { content:''; position:absolute; bottom:0; left:50%; width:0; height:2px; background:var(--red); transition:var(--transition); transform:translateX(-50%); }
.navbar .nav-link:hover, .navbar .nav-link.active { color:var(--white) !important; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { width:60%; }
.btn-nav-cuenta { font-family:var(--font-head); font-size:0.76rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; background:var(--red); color:var(--white) !important; border:none; border-radius:var(--radius-sm); padding:8px 16px; text-decoration:none; transition:var(--transition); white-space:nowrap; }
.btn-nav-cuenta:hover { background:var(--red-dark); transform:translateY(-1px); box-shadow:0 4px 12px rgba(251,19,32,0.35); }

/* HERO */
.hero-slider .carousel-item { height:90vh; min-height:520px; background:var(--blue-dark); overflow:hidden; }
.hero-slider .carousel-item img { height:100%; width:100%; object-fit:cover; filter:brightness(0.45) saturate(0.85); transform:scale(1.04); transition:transform 6s ease; }
.hero-slider .carousel-item.active img { transform:scale(1); }
.carousel-caption { bottom:18%; z-index:10; padding:0; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:8px; background:var(--red); color:var(--white); font-family:var(--font-head); font-size:0.7rem; font-weight:700; letter-spacing:0.2em; text-transform:uppercase; padding:5px 14px; border-radius:4px; margin-bottom:1.2rem; }
.hero-title { font-family:var(--font-head); font-weight:900; font-size:clamp(2.6rem,6.5vw,4.8rem); line-height:1.0; color:var(--white); text-transform:uppercase; text-shadow:0 4px 32px rgba(0,0,0,0.5); margin-bottom:1.2rem; }
.hero-title span { color:var(--red); }
.hero-sub { font-size:1.05rem; font-weight:400; color:rgba(255,255,255,0.78); line-height:1.6; }
.btn-hero-primary { font-family:var(--font-head); font-weight:700; font-size:0.88rem; letter-spacing:0.06em; text-transform:uppercase; background:var(--red); color:var(--white); border:none; border-radius:var(--radius-sm); padding:13px 26px; text-decoration:none; transition:var(--transition); display:inline-flex; align-items:center; gap:8px; }
.btn-hero-primary:hover { background:var(--red-dark); color:var(--white); transform:translateY(-2px); box-shadow:0 8px 24px rgba(251,19,32,0.4); }
.btn-hero-secondary { font-family:var(--font-head); font-weight:700; font-size:0.88rem; letter-spacing:0.06em; text-transform:uppercase; background:transparent; color:var(--white); border:2px solid rgba(255,255,255,0.55); border-radius:var(--radius-sm); padding:11px 26px; text-decoration:none; transition:var(--transition); display:inline-flex; align-items:center; gap:8px; }
.btn-hero-secondary:hover { background:rgba(255,255,255,0.1); border-color:var(--white); color:var(--white); }

/* COUNTDOWN */
.countdown-wrap { position:relative; z-index:100; margin-top:-60px; }
.countdown-box { background:var(--blue-dark); border-radius:var(--radius-md); border-left:5px solid var(--red); box-shadow:var(--shadow-lg); padding:1.5rem 2.5rem; display:flex; align-items:center; gap:1.75rem; }
.cd-unit { text-align:center; min-width:50px; }
.cd-num { font-family:var(--font-head); font-weight:900; font-size:2.3rem; line-height:1; color:var(--white); }
.cd-num.accent { color:var(--red); }
.cd-label { font-size:0.6rem; font-weight:700; letter-spacing:0.2em; text-transform:uppercase; color:rgba(255,255,255,0.4); margin-top:4px; }
.cd-sep { font-family:var(--font-head); font-size:1.8rem; font-weight:900; color:rgba(255,255,255,0.2); line-height:1; padding-bottom:12px; }
.cd-meta { margin-left:auto; padding-left:1.75rem; border-left:2px solid rgba(255,255,255,0.1); }
.cd-meta h5 { font-family:var(--font-head); font-weight:700; color:var(--white); font-size:0.95rem; margin-bottom:3px; }
.cd-meta span { font-size:0.8rem; color:var(--red); font-weight:600; }

/* STATS BAR */
.stats-bar { background:var(--off-white); border-bottom:1px solid var(--gray-light); padding:2.5rem 0; }
.stat-item { text-align:center; }
.stat-number { font-family:var(--font-head); font-weight:900; font-size:2.1rem; color:var(--blue); line-height:1; }
.stat-number span { color:var(--red); }
.stat-desc { font-size:0.78rem; color:var(--text-muted); font-weight:600; margin-top:4px; text-transform:uppercase; letter-spacing:0.08em; }

/* CANDIDATO */
#candidato { background:var(--white); padding:5rem 0; }
.candidate-img-wrap { position:relative; display:inline-block; max-width:420px; }
.candidate-img-wrap img { border-radius:var(--radius-lg); position:relative; z-index:2; width:100%; display:block; box-shadow:var(--shadow-lg); }
.candidate-img-wrap::after { content:''; position:absolute; top:20px; left:20px; width:100%; height:100%; background:var(--red); border-radius:var(--radius-lg); z-index:1; }
.badge-years { position:absolute; bottom:-16px; right:-16px; z-index:3; background:var(--blue-dark); color:var(--white); border-radius:var(--radius-md); padding:18px 22px; text-align:center; box-shadow:var(--shadow-md); }
.badge-years strong { font-family:var(--font-head); font-size:2rem; font-weight:900; color:var(--red); display:block; line-height:1; }
.badge-years small { font-size:0.68rem; letter-spacing:0.1em; text-transform:uppercase; opacity:0.6; }
.quote-block { border-left:4px solid var(--red); padding:0.75rem 1.25rem; background:var(--blue-light); border-radius:0 var(--radius-sm) var(--radius-sm) 0; margin:1.5rem 0; }
.quote-block p { font-style:italic; font-size:1.02rem; color:var(--text-dark); margin:0; }
.values-grid { display:flex; flex-wrap:wrap; gap:10px; margin-top:1.5rem; }
.value-pill { display:inline-flex; align-items:center; gap:7px; background:var(--blue-light); border:1px solid rgba(32,72,142,0.15); border-radius:50px; padding:7px 16px; font-size:0.8rem; font-weight:600; color:var(--blue); }
.value-pill i { color:var(--red); }

/* PROPUESTAS */
#propuestas { background:var(--blue-dark); padding:5rem 0; position:relative; overflow:hidden; }
#propuestas::before { content:''; position:absolute; top:-80px; right:-80px; width:380px; height:380px; background:radial-gradient(circle,rgba(251,19,32,0.07) 0%,transparent 70%); pointer-events:none; }
#propuestas .section-tag { color:rgba(255,255,255,0.45); }
#propuestas .section-tag::before { background:var(--red); }
.propuesta-card { background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:var(--radius-md); padding:2rem; height:100%; transition:var(--transition); position:relative; overflow:hidden; }
.propuesta-card::before { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--red); transform:scaleX(0); transition:var(--transition); transform-origin:left; }
.propuesta-card:hover { background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.15); transform:translateY(-8px); box-shadow:0 24px 48px rgba(0,0,0,0.3); }
.propuesta-card:hover::before { transform:scaleX(1); }
.propuesta-num { font-family:var(--font-head); font-size:3.5rem; font-weight:900; /*color:rgba(255,255,255,0.05);*/ line-height:1; margin-bottom:0.4rem; color: white;}
.propuesta-icon { width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center; margin-bottom:1.25rem; font-size:1.4rem; }
.propuesta-icon.red  { background:rgba(251,19,32,0.18); color:var(--red); }
.propuesta-icon.blue { background:rgba(32,72,142,0.35); color:#7aa8f5; }
.propuesta-card h4 { font-size:1.1rem; font-weight:700; color:var(--white); margin-bottom:0.6rem; }
.propuesta-card p { font-size:0.88rem; color:rgba(255,255,255,0.55); margin:0; line-height:1.65; }

/* VOLUNTARIADO */
#voluntariado { background:var(--white); padding:5rem 0; }
.vol-wrapper { background:var(--off-white); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-lg); display:flex; }
.vol-left { background:var(--red); padding:3rem; flex:0 0 38%; display:flex; flex-direction:column; justify-content:center; position:relative; overflow:hidden; }
.vol-left::after { content:''; position:absolute; bottom:-40px; right:-40px; width:200px; height:200px; background:rgba(255,255,255,0.07); border-radius:50%; }
.vol-left .section-tag { color:rgba(255,255,255,0.65); }
.vol-left .section-tag::before { background:rgba(255,255,255,0.45); }
.vol-left h2 { font-size:1.85rem; font-weight:800; color:var(--white); margin-bottom:0.85rem; }
.vol-left p { color:rgba(255,255,255,0.7); font-size:0.9rem; margin-bottom:1.5rem; }
.vol-benefit { display:flex; align-items:flex-start; gap:12px; margin-bottom:1rem; }
.vol-benefit-icon { width:34px; height:34px; background:rgba(255,255,255,0.15); border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--white); font-size:0.9rem; }
.vol-benefit-text { font-size:0.85rem; color:rgba(255,255,255,0.75); line-height:1.4; }
.vol-benefit-text strong { display:block; color:var(--white); font-weight:600; margin-bottom:1px; }
.vol-right { padding:3rem; flex:1; }
.vol-right h4 { font-size:1.3rem; font-weight:700; margin-bottom:0.3rem; }
.step-label { font-size:0.72rem; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); margin:1.25rem 0 1rem; display:flex; align-items:center; gap:8px; }
.step-label::after { content:''; flex:1; height:1px; background:var(--gray-light); }
.form-label { font-size:0.82rem; font-weight:600; color:var(--text-dark); margin-bottom:5px; }
.form-control, .form-select { font-family:var(--font-body); border-radius:var(--radius-sm); padding:11px 14px; border:1.5px solid var(--gray-light); font-size:0.9rem; color:var(--text-dark); transition:var(--transition); }
.form-control:focus, .form-select:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(32,72,142,0.12); outline:none; }
.btn-submit { font-family:var(--font-head); font-weight:700; font-size:0.88rem; letter-spacing:0.08em; text-transform:uppercase; background:var(--blue); color:var(--white); border:none; border-radius:var(--radius-sm); padding:14px 24px; width:100%; transition:var(--transition); display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; }
.btn-submit:hover { background:var(--blue-dark); transform:translateY(-2px); box-shadow:0 8px 24px rgba(32,72,142,0.3); }

/* TESTIMONIOS */
#testimonios { background:var(--white); padding:5rem 0; }
.testimonial-card { background:var(--off-white); border-radius:var(--radius-md); padding:2rem; height:100%; border:1px solid var(--gray-light); transition:var(--transition); position:relative; }
.testimonial-card::before { content:'"'; position:absolute; top:1rem; right:1.5rem; font-family:Georgia,serif; font-size:5rem; color:var(--red); opacity:0.1; line-height:1; }
.testimonial-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:transparent; }
.stars { color:#f0a500; font-size:0.82rem; margin-bottom:1rem; }
.testimonial-card p { font-style:italic; color:var(--text-muted); font-size:0.9rem; line-height:1.7; margin-bottom:1.5rem; }
.t-avatar { width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:var(--font-head); font-weight:800; font-size:0.88rem; color:var(--white); flex-shrink:0; }
.t-av-red { background:var(--red); }
.t-av-blue { background:var(--blue); }
.t-av-dark { background:var(--blue-dark); }

/* CONTACTO */
#contacto { background:var(--off-white); padding:5rem 0; }
.map-wrapper { border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-md); border:3px solid var(--white); height:100%; min-height:380px; }

/* FORMULARIO DE CONTACTO */
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
}
.contact-form-header {
    background: var(--blue-dark);
    padding: 1.5rem 2rem;
    border-left: 5px solid var(--red);
}
.contact-form-header h5 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 3px;
}
.contact-form-header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    margin: 0;
}
.contact-form-body { padding: 1.75rem 2rem; }
.contact-form-body .form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    letter-spacing: 0.03em;
}
.contact-form-body .form-control {
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-light);
    font-size: 0.88rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--off-white);
    padding: 10px 13px;
}
.contact-form-body .form-control:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(32,72,142,0.10);
    outline: none;
}
.contact-form-body textarea.form-control { resize: vertical; min-height: 110px; }
.contact-form-body .input-icon-wrap { position: relative; }
.contact-form-body .input-icon-wrap i {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}
.contact-form-body .input-icon-wrap .form-control { padding-left: 36px; }
.contact-form-body .textarea-wrap i { top: 14px; transform: none; }
.btn-contact-send {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 13px 24px;
    width: 100%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 0.25rem;
}
.btn-contact-send:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251,19,32,0.3);
}
.btn-contact-send:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.contact-alert {
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    padding: 10px 14px;
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 0.75rem;
}
.contact-alert.success { display:flex; background:rgba(25,135,84,0.1); border:1px solid rgba(25,135,84,0.3); color:#146c43; }
.contact-alert.error   { display:flex; background:rgba(220,53,69,0.1); border:1px solid rgba(220,53,69,0.25); color:#b02a37; }
.char-count { font-size: 0.72rem; color: var(--text-muted); text-align: right; margin-top: 3px; }

/* FOOTER */
footer { background:var(--blue-dark); border-top:4px solid var(--red); padding-top:4rem; }
.footer-brand { font-family:var(--font-head); font-weight:900; font-size:1.4rem; color:var(--white); letter-spacing:0.04em; }
.footer-brand span { color:var(--red); }
.footer-tagline { font-size:0.8rem; color:rgba(255,255,255,0.38); margin-top:4px; }
.footer-heading { font-family:var(--font-head); font-size:0.7rem; font-weight:700; letter-spacing:0.2em; text-transform:uppercase; color:var(--red); margin-bottom:1.2rem; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:0.55rem; }
.footer-links a { color:rgba(255,255,255,0.5); text-decoration:none; font-size:0.86rem; transition:var(--transition); display:flex; align-items:center; gap:6px; }
.footer-links a:hover { color:var(--white); padding-left:4px; }
.footer-links a i { font-size:0.55rem; color:var(--red); }
.footer-social { display:flex; gap:10px; margin-top:1.5rem; }
.footer-social a { width:36px; height:36px; background:rgba(255,255,255,0.07); border-radius:8px; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.55); font-size:0.95rem; text-decoration:none; transition:var(--transition); }
.footer-social a:hover { background:var(--red); color:var(--white); transform:translateY(-2px); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.07); padding:1.25rem 0; margin-top:3rem; font-size:0.76rem; color:rgba(255,255,255,0.3); }
.footer-bottom a { color:rgba(255,255,255,0.38); text-decoration:none; transition:var(--transition); }
.footer-bottom a:hover { color:var(--red); }

/* SCROLL TOP */
#scrollTop { position:fixed; bottom:28px; right:28px; width:44px; height:44px; background:var(--red); color:var(--white); border:none; border-radius:10px; font-size:1.1rem; display:flex; align-items:center; justify-content:center; cursor:pointer; opacity:0; pointer-events:none; transition:var(--transition); box-shadow:0 4px 16px rgba(251,19,32,0.35); z-index:999; }
#scrollTop.visible { opacity:1; pointer-events:auto; }
#scrollTop:hover { background:var(--red-dark); transform:translateY(-2px); }

/* MODAL */
.modal-content { border:none; border-radius:var(--radius-lg); overflow:hidden; }
.modal-header-custom { background:var(--blue-dark); padding:1.5rem 2rem; display:flex; align-items:center; justify-content:space-between; }
.modal-header-custom h5 { color:var(--white); font-size:1.05rem; font-weight:700; margin:0; }
.modal-header-custom .btn-close { filter:invert(1); opacity:0.65; }

/* RESPONSIVE */
@media (max-width: 991px) {
    .countdown-wrap { margin-top:0; padding-top:1.5rem; }
    .countdown-box { flex-wrap:wrap; gap:1rem; padding:1.5rem; }
    .cd-meta { margin-left:0; padding-left:0; border-left:none; border-top:1px solid rgba(255,255,255,0.1); padding-top:1rem; width:100%; }
    .vol-wrapper { flex-direction:column; }
    .vol-left { flex:none; }
}
@media (max-width: 767px) {
    .hero-slider .carousel-item { height:75vh; }
    .carousel-caption { bottom:8%; }
    .topbar { display:none !important; }
    .stats-bar .stat-item { padding:0.5rem; }
    .stat-number { font-size:1.6rem; }
}

/* ── Alertas de formulario ── */
.contact-alert {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

.contact-alert i {
    font-size: 1rem;
    flex-shrink: 0;
}

.alert-success-box {
    background: rgba(25, 135, 84, 0.10);
    border: 1px solid rgba(25, 135, 84, 0.35);
    color: #146c43;
}

.alert-success-box i {
    color: #198754;
}

.alert-error-box {
    background: rgba(220, 53, 69, 0.10);
    border: 1px solid rgba(220, 53, 69, 0.30);
    color: #b02a37;
}

.alert-error-box i {
    color: #dc3545;
}
/* ── PAGE LOADER ── */
#pageLoader {
    position: fixed;
    inset: 0;
    background: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#pageLoader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 2rem;
    color: var(--white);
    letter-spacing: 0.06em;
    margin-bottom: 2rem;
}

.loader-logo span { color: var(--red); }

.loader-bar-wrap {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: var(--red);
    border-radius: 2px;
    animation: loadProgress 1.2s ease forwards;
}

.loader-text {
    font-family: var(--font-head);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

@keyframes loadProgress {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   PLAN DE GOBIERNO — estilos exclusivos de plan-gobierno.php
   ═══════════════════════════════════════════════════════════════ */

/* Variables extra que usa el plan (aliases más cortos) */
:root {
    --gray:  #e4e8f0;        /* alias de --gray-light */
    --text:  #0d1b2a;        /* alias de --text-dark  */
    --muted: #6b7a93;        /* alias de --text-muted */
    --tr:    all 0.25s cubic-bezier(0.4,0,0.2,1);
    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  22px;
    --sh-sm: 0 2px 8px rgba(13,27,42,0.07);
    --sh-md: 0 6px 20px rgba(13,27,42,0.11);
    --sh-lg: 0 18px 48px rgba(13,27,42,0.16);
}

/* ── NAV "Volver" (solo plan) */
.nav-link-back {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--tr);
    font-family: var(--font-head);
}
.nav-link-back:hover { color: var(--white); }

/* ── HERO DEL PLAN */
.plan-hero {
    background: linear-gradient(160deg, var(--blue-dark) 0%, #0d1f3c 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    display: block;
}
.plan-hero::before {
    content: '';
    position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(251,19,32,0.10) 0%, transparent 65%);
    pointer-events: none;
}
.plan-hero::after {
    content: '';
    position: absolute; bottom: -60px; left: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(32,72,142,0.2) 0%, transparent 65%);
    pointer-events: none;
}
.plan-hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: var(--white);
    font-family: var(--font-head); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 4px; margin-bottom: 1.2rem;
}
.plan-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900; color: var(--white);
    text-transform: uppercase; line-height: 1.05; margin-bottom: 1rem;
}
.plan-hero h1 span { color: var(--red); }
.plan-hero .lead-text { font-size: 1rem; color: rgba(255,255,255,0.68); max-width: 580px; line-height: 1.75; }
.plan-hero .firma {
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.25rem;
    font-size: 0.85rem; color: rgba(255,255,255,0.5);
}
.plan-hero .firma strong { color: rgba(255,255,255,0.85); display: block; font-family: var(--font-head); }

/* ── BARRA DE NAVEGACIÓN RÁPIDA */
.plan-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray);
    position: sticky; top: 67px; z-index: 99;
    overflow-x: auto; white-space: nowrap;
}
.plan-nav-inner { display: flex; gap: 0; padding: 0 1rem; }
.plan-nav a {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--muted); text-decoration: none;
    font-family: var(--font-head); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 1rem 1.1rem;
    border-bottom: 3px solid transparent;
    transition: var(--tr); white-space: nowrap;
}
.plan-nav a:hover  { color: var(--blue); border-bottom-color: var(--blue); }
.plan-nav a.active { color: var(--red);  border-bottom-color: var(--red);  }

/* ── SECCIONES DEL PLAN */
.plan-section      { padding: 4.5rem 0; }
.plan-section.alt  { background: var(--off-white); }
.plan-section.dark { background: var(--blue-dark); }

.section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--red); margin-bottom: 0.7rem;
}
.section-eyebrow::before { content: ''; width: 24px; height: 3px; background: var(--red); border-radius: 2px; }

/* ── VISIÓN & MISIÓN */
.vision-box {
    background: var(--blue-dark);
    border-radius: var(--r-lg); padding: 2.5rem;
    border-left: 5px solid var(--red);
    position: relative; overflow: hidden;
}
.vision-box::after {
    content: '"'; font-size: 10rem; font-family: Georgia, serif;
    color: rgba(255,255,255,0.04); position: absolute;
    top: -1rem; right: 1.5rem; line-height: 1; pointer-events: none;
}
.vision-box .label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 0.5rem; }
.vision-box p      { font-size: 1.05rem; font-style: italic; color: rgba(255,255,255,0.85); line-height: 1.75; margin: 0; }

.mision-box {
    background: var(--blue-light);
    border: 1px solid rgba(32,72,142,0.18);
    border-radius: var(--r-lg); padding: 2.5rem;
}
.mision-box .label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.5rem; }
.mision-box p      { font-size: 1rem; font-style: italic; color: var(--text); line-height: 1.75; margin: 0; font-weight: 500; }

/* ── CARDS DE PRIORIDAD */
.prioridad-card { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); border: 1px solid var(--gray); height: 100%; transition: var(--tr); }
.prioridad-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.prioridad-header { padding: 1.5rem; display: flex; align-items: center; gap: 14px; }
.prioridad-icon { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.prioridad-num  { font-family: var(--font-head); font-size: 2.5rem; font-weight: 900; color: rgba(255,255,255,0.15); line-height: 1; }
.prioridad-header h3 { font-size: 1.1rem; font-weight: 800; color: var(--white); margin: 0; }
.prioridad-body { padding: 0 1.5rem 1.5rem; background: var(--white); }
.prioridad-body ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.prioridad-body ul li {
    padding: 0.55rem 0; border-bottom: 1px solid var(--gray);
    font-size: 0.875rem; color: var(--muted);
    display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.prioridad-body ul li:last-child  { border-bottom: none; }
.prioridad-body ul li::before     { content: '→'; color: var(--red); flex-shrink: 0; font-weight: 700; }

/* Colores por prioridad */
.p-segura   .prioridad-header { background: linear-gradient(135deg, #152f60, #1a3a72); }
.p-ordenada .prioridad-header { background: linear-gradient(135deg, #0d1f3c, #152f60); }
.p-limpia   .prioridad-header { background: linear-gradient(135deg, #1a3a72, #20488e); }
.p-amigable .prioridad-header { background: linear-gradient(135deg, var(--blue-dark), #1a3a72); }
.p-segura   .prioridad-icon, .p-limpia   .prioridad-icon { background: rgba(251,19,32,0.2);   color: var(--red);  }
.p-ordenada .prioridad-icon, .p-amigable .prioridad-icon { background: rgba(255,255,255,0.12); color: #7fb3ff; }

/* ── EJES ESTRATÉGICOS */
.eje-card { background: var(--white); border-radius: var(--r-md); border: 1px solid var(--gray); box-shadow: var(--sh-sm); padding: 1.75rem; height: 100%; transition: var(--tr); }
.eje-card:hover { box-shadow: var(--sh-md); border-color: rgba(32,72,142,0.25); }
.eje-num  { font-family: var(--font-head); font-size: 3rem; font-weight: 900; color: #152f60; line-height: 1; margin-bottom: 0.25rem; }
.eje-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }
.eje-icon.red  { background: var(--red-light); color: var(--red);  }
.eje-icon.blue { background: var(--blue-light); color: var(--blue); }
.eje-card h4 { font-size: 0.97rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.eje-card p  { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* ── PROYECTOS EMBLEMÁTICOS */
.proyecto-card { background: var(--white); border-radius: var(--r-md); border: 1px solid var(--gray); box-shadow: var(--sh-sm); overflow: hidden; margin-bottom: 0;height: 100%; }
.proyecto-header { background: var(--blue-dark); padding: 1.1rem 1.5rem; display: flex; align-items: center; gap: 14px; }
.proyecto-n {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--red); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 800; font-size: 0.9rem; color: var(--white); flex-shrink: 0;
}
.proyecto-header h4  { font-size: 0.95rem; font-weight: 700; color: var(--white); margin: 0; line-height: 1.3; }
.proyecto-body       { padding: 1.25rem 1.5rem; }
.proyecto-row        { display: flex; gap: 10px; margin-bottom: 0.85rem; align-items: flex-start; }
.proyecto-row:last-child { margin-bottom: 0; }
.proyecto-label {
    font-family: var(--font-head); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--red); min-width: 90px; flex-shrink: 0; padding-top: 2px;
}
.proyecto-val          { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.proyecto-val strong   { color: var(--text); font-weight: 600; }

/* ── OBJETIVOS ESTRATÉGICOS */
.oe-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.oe-tag  { background: var(--blue-light); border: 1px solid rgba(32,72,142,0.15); border-radius: 50px; padding: 5px 14px; font-size: 0.78rem; font-weight: 600; color: var(--blue); font-family: var(--font-head); }
.oe-card { background: var(--white); border-radius: var(--r-md); border-left: 4px solid var(--red); padding: 1.25rem 1.5rem; box-shadow: var(--sh-sm); height: 100%; transition: var(--tr); }
.oe-card:hover { transform: translateX(4px); box-shadow: var(--sh-md); }
.oe-card .oe-code { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; color: var(--red); letter-spacing: 0.15em; margin-bottom: 4px; }
.oe-card p { font-size: 0.9rem; font-weight: 600; color: var(--text); margin: 0; line-height: 1.45; }

/* ── CTA FINAL */
.cta-section {
    background: linear-gradient(135deg, var(--blue-dark) 0%, #0d1f3c 100%);
    padding: 4rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(251,19,32,0.12) 0%, transparent 70%);
}
.btn-plan-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: var(--white);
    font-family: var(--font-head); font-weight: 700; font-size: 0.88rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 13px 28px; border-radius: var(--r-sm);
    text-decoration: none; transition: var(--tr);
}
.btn-plan-primary:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(251,19,32,0.35); }
.btn-plan-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: rgba(255,255,255,0.8);
    font-family: var(--font-head); font-weight: 700; font-size: 0.88rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 11px 28px; border-radius: var(--r-sm);
    border: 2px solid rgba(255,255,255,0.35);
    text-decoration: none; transition: var(--tr);
}
.btn-plan-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.07); }

/* ── FOOTER DEL PLAN */
.plan-footer { background: var(--blue-dark); border-top: 3px solid var(--red); padding: 1.5rem 0; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.plan-footer a       { color: rgba(255,255,255,0.4); text-decoration: none; }
.plan-footer a:hover { color: var(--red); }

/* ── RESPONSIVE DEL PLAN */
@media (max-width: 767px) {
    .plan-hero    { padding: 3.5rem 0 3rem; }
    .plan-section { padding: 3rem 0; }
    .vision-box, .mision-box { padding: 1.75rem; }
}
/* ── Hamburger blanco en mobile */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(251,19,32,0.4);
}