/* ================================================================
   Bomberos Metropolitanos Voluntarios — STPM
   Shared Stylesheet  |  css/style.css
   ================================================================ */

/* ── VARIABLES ── */
:root {
    --blue:      #0055A4;
    --sky:       #4A9ECC;
    --sky-light: #87CEEB;
    --gold:      #C9A84C;
    --gold-dark: #A07C2A;
    --black:     #111111;
    --dark:      #0F1625;
    --white:     #FFFFFF;
    --gray-bg:   #F4F6F9;
    --text:      #2C2C2C;
    --red:       #C0392B;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; overflow-x:hidden; }
body { font-family:'Open Sans',sans-serif; color:var(--text); overflow-x:hidden; }

/* ── NAV ── */
nav {
    position:fixed; top:0; width:100%; z-index:1000;
    background:rgba(10,14,30,0.96);
    border-bottom:2px solid var(--gold);
    backdrop-filter:blur(10px);
}
.nav-inner {
    max-width:1200px; margin:0 auto; padding:0 24px;
    display:flex; align-items:center; justify-content:space-between; height:68px;
}
.nav-brand { display:flex; align-items:center; gap:12px; text-decoration:none; margin-left:-24px; }
.nav-brand > img { height:48px; width:auto; display:none; }
.nav-brand .logo-fallback {
    width:48px; height:48px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    overflow:hidden; flex-shrink:0;
}
.nav-brand .logo-fallback img { width:48px; height:48px; object-fit:cover; border-radius:50%; border:2px solid rgba(255,255,255,0.8); }
.nav-brand-text { color:var(--white); font-family:'Montserrat',sans-serif; font-weight:700; font-size:13px; line-height:1.3; }
.nav-brand-text em { display:block; color:var(--gold); font-style:normal; font-size:10px; font-weight:400; letter-spacing:1.5px; text-transform:uppercase; }
.nav-links { display:flex; list-style:none; gap:2px; }
.nav-links a {
    color:rgba(255,255,255,.85); text-decoration:none;
    font-family:'Montserrat',sans-serif; font-size:12px; font-weight:600;
    letter-spacing:.5px; text-transform:uppercase; padding:8px 13px;
    border-radius:4px; transition:all .25s;
}
.nav-links a:hover { color:var(--gold); background:rgba(201,168,76,.08); }
.nav-links a.active { color:var(--gold); border-bottom:2px solid var(--gold); }
.nav-links .cta-link a { background:var(--gold); color:var(--black) !important; }
.nav-links .cta-link a:hover { background:var(--gold-dark); color:var(--white) !important; }
.nav-links .cta-link a.active { border-bottom:none; }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:6px; }
.hamburger span { width:24px; height:2px; background:var(--white); transition:all .3s; display:block; }

/* ── PAGE HERO BANNER (non-home pages) ── */
.page-hero {
    padding-top:68px;
    height:260px;
    background:linear-gradient(160deg, rgba(0,20,60,0.97) 0%, rgba(0,55,164,0.90) 60%, rgba(0,20,60,0.97) 100%);
    display:flex; align-items:center; justify-content:center; text-align:center;
    position:relative; overflow:hidden;
}
.page-hero::before {
    content:'';
    position:absolute; inset:0;
    background:radial-gradient(ellipse at center, rgba(74,158,204,0.18) 0%, transparent 70%);
}
.page-hero-inner { position:relative; z-index:1; }
.page-hero-tag {
    display:inline-block; background:var(--gold); color:var(--black);
    padding:4px 16px; border-radius:3px; font-size:10px; font-weight:700;
    letter-spacing:2px; text-transform:uppercase; margin-bottom:14px;
    font-family:'Montserrat',sans-serif;
}
.page-hero h1 {
    font-family:'Montserrat',sans-serif;
    font-size:clamp(24px,4vw,42px);
    font-weight:900; color:var(--white);
    line-height:1.1; text-shadow:0 2px 20px rgba(0,0,0,.4);
}
.page-hero h1 span { color:var(--gold); }
.page-hero-bar {
    width:56px; height:3px; background:var(--gold); margin:14px auto 0;
}

/* ── HERO (index only) ── */
#inicio {
    min-height:100vh; position:relative;
    display:flex; align-items:center; justify-content:center;
}
.hero-photo-overlay {
    position:absolute; inset:0;
    background: url('img/6.jpeg') center/cover no-repeat;
    opacity:0.12; filter:blur(2px); transform:scale(1.02);
}
.hero-bg {
    position:absolute; inset:0;
    background: linear-gradient(160deg,rgba(0,0,0,.88) 0%,rgba(0,55,140,.72) 55%,rgba(0,0,0,.88) 100%),
                url('../img/hero-bg.jpg') center/cover no-repeat;
}
.hero-content {
    position:relative; z-index:2; text-align:center;
    max-width:860px; padding:0 20px; padding-top:80px; padding-bottom:60px;
}
.hero-logo-wrap {
    width:160px; height:160px; margin:0 auto 28px;
    border-radius:50%; overflow:hidden;
    display:flex; align-items:center; justify-content:center;
}
.hero-logo-wrap img { width:160px; height:160px; object-fit:cover; border-radius:50%; border:3px solid rgba(255,255,255,0.8); }
.hero-logo-wrap .logo-icon { display:none; }
.hero-badge {
    display:inline-flex; align-items:center; gap:8px;
    background:var(--gold); color:var(--black);
    padding:5px 20px; border-radius:20px;
    font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase;
    margin-bottom:22px; font-family:'Montserrat',sans-serif;
}
.hero-h1 {
    font-family:'Montserrat',sans-serif; font-size:clamp(24px,4vw,46px);
    font-weight:900; color:var(--white); line-height:1.08; margin-bottom:12px;
    text-shadow:0 2px 20px rgba(0,0,0,.5);
}
.hero-h1 span { color:var(--gold); }
.hero-sub {
    font-family:'Montserrat',sans-serif; font-size:clamp(13px,2vw,18px);
    color:var(--sky-light); letter-spacing:3px; text-transform:uppercase;
    font-weight:300; margin-bottom:16px;
}
.hero-p { color:rgba(255,255,255,.78); font-size:15px; line-height:1.75; max-width:580px; margin:0 auto 38px; }
.hero-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.hero-stats {
    position:absolute; bottom:58px; left:50%; transform:translateX(-50%);
    display:flex; gap:48px; z-index:2;
}
.h-stat { text-align:center; }
.h-stat-num { font-family:'Montserrat',sans-serif; font-size:34px; font-weight:900; color:var(--gold); line-height:1; }
.h-stat-lbl { font-size:10px; text-transform:uppercase; letter-spacing:1.5px; color:rgba(255,255,255,.55); margin-top:4px; }

/* ── BUTTONS ── */
.btn { display:inline-flex; align-items:center; gap:8px; padding:14px 32px;
       border-radius:4px; font-family:'Montserrat',sans-serif; font-weight:700;
       font-size:13px; letter-spacing:1px; text-transform:uppercase;
       text-decoration:none; border:none; cursor:pointer; transition:all .28s; }
.btn-gold { background:var(--gold); color:var(--black); }
.btn-gold:hover { background:var(--gold-dark); color:var(--white); transform:translateY(-2px); box-shadow:0 8px 24px rgba(201,168,76,.4); }
.btn-outline { background:transparent; color:var(--white); border:2px solid rgba(255,255,255,.45); }
.btn-outline:hover { border-color:var(--gold); color:var(--gold); transform:translateY(-2px); }
.btn-donate { background:transparent; color:var(--white); border:2px solid rgba(201,168,76,.55); font-family:'Montserrat',sans-serif; cursor:pointer; }
.btn-donate:hover { border-color:var(--gold); color:var(--gold); transform:translateY(-2px); }

/* ── MODAL DONAR ── */
.donar-rows { display:flex; flex-direction:column; gap:0; }
.donar-row { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:11px 0; border-bottom:1px solid #f0f0f0; }
.donar-row:last-child { border-bottom:none; }
.donar-lbl { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:#999; white-space:nowrap; flex-shrink:0; padding-top:2px; }
.donar-val { font-size:13px; font-weight:600; color:var(--dark); text-align:right; line-height:1.5; }
.donar-alias .donar-val { color:var(--blue); font-size:15px; font-weight:800; letter-spacing:1px; }
.alias-txt { font-family:'Montserrat',sans-serif; }

/* ── SECTIONS COMMON ── */
section { padding:96px 20px; }
.wrap { max-width:1200px; margin:0 auto; }
.s-head { text-align:center; margin-bottom:60px; }
.s-tag {
    display:inline-block; background:var(--gold); color:var(--black);
    padding:4px 16px; border-radius:3px; font-size:10px; font-weight:700;
    letter-spacing:2px; text-transform:uppercase; margin-bottom:14px;
    font-family:'Montserrat',sans-serif;
}
.s-title { font-family:'Montserrat',sans-serif; font-size:clamp(24px,4vw,38px); font-weight:800; color:var(--black); line-height:1.2; margin-bottom:14px; }
.s-title span { color:var(--blue); }
.s-bar { width:56px; height:3px; background:var(--gold); margin:0 auto 18px; }
.s-desc { color:#666; font-size:15px; line-height:1.75; max-width:600px; margin:0 auto; }

/* dark variant */
.dark-section { background:var(--dark); }
.dark-section .s-title { color:var(--white); }
.dark-section .s-desc { color:rgba(255,255,255,.6); }

/* ── HISTORIA ── */
.hist-grid { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.hist-gallery { display:grid; grid-template-columns:2fr 1fr; grid-template-rows:1fr 1fr; gap:10px; height:460px; }
.hist-gitem { overflow:hidden; border-radius:6px; }
.hist-gitem:first-child { grid-row:1/3; }
.hist-gitem img { width:100%; height:100%; object-fit:cover; transition:transform .5s; display:block; }
.hist-gitem:hover img { transform:scale(1.06); }
.ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.ph-1 { background:linear-gradient(135deg,var(--blue),var(--dark)); }
.ph-2 { background:linear-gradient(135deg,var(--sky),var(--blue)); }
.ph-3 { background:linear-gradient(135deg,var(--dark),var(--sky)); }
.ph i { font-size:40px; color:rgba(255,255,255,.25); }
.hist-text p { color:rgba(255,255,255,.78); font-size:15px; line-height:1.82; margin-bottom:18px; }
.hist-text-full { max-width:820px; margin:0 auto 48px; }
.hist-text-full p { color:rgba(255,255,255,.78); font-size:15px; line-height:1.85; margin-bottom:18px; text-align:justify; }
.hist-photos {
    display:grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 280px 220px;
    gap:14px; margin:0 auto;
}
.hist-photo-item { border-radius:12px; overflow:hidden; }
.hist-photo-item:nth-child(1) { grid-column:1; grid-row:1; }
.hist-photo-item:nth-child(2) { grid-column:2; grid-row:1 / span 2; }
.hist-photo-item:nth-child(3) { grid-column:1 / span 1; grid-row:2; display:grid; grid-template-columns:1fr 1fr; gap:14px; border-radius:0; overflow:visible; }
.hist-photo-item:nth-child(3) .hist-sub-img { border-radius:12px; overflow:hidden; height:220px; }
.hist-photo-item:nth-child(3) .hist-sub-img img { width:100%; height:100%; object-fit:cover; display:block; }
.hist-photo-ph {
    width:100%; height:100%; background:rgba(255,255,255,.06);
    border:2px dashed rgba(201,168,76,.35); border-radius:12px;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
}
.hist-photo-ph i { font-size:28px; color:rgba(201,168,76,.4); }
.hist-photo-ph span { font-size:11px; color:rgba(255,255,255,.3); letter-spacing:1px; text-transform:uppercase; }
.hist-photo-item img { width:100%; height:100%; object-fit:cover; display:block; }
@media(max-width:700px){
    .hist-photos { grid-template-columns:1fr; grid-template-rows:auto; }
    .hist-photo-item:nth-child(2) { grid-column:1; grid-row:auto; }
    .hist-photo-item:nth-child(3) { grid-column:1; grid-template-columns:1fr; }
    .hist-photo-item:nth-child(3) .hist-sub-img { height:200px; }
}
.hist-feats { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:28px; }

/* ── EQUIPO ── */
.equipo-foto { width:100%; max-width:860px; margin:0 auto 48px; border-radius:16px; overflow:hidden; box-shadow:0 8px 40px rgba(0,0,0,.5); }
.equipo-foto img { width:100%; display:block; object-fit:cover; }
.equipo-lista { max-width:860px; margin:0 auto; }
.equipo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:8px; }
.eq-top-blocks { display:flex; flex-direction:column; align-items:center; gap:14px; margin-bottom:28px; }
.eq-top-card { width:100%; max-width:500px; }
.eq-top-card .eq-list li { justify-content:center; }
.eq-top-card .eq-rank { min-width:80px; text-align:right; }
@media(max-width:640px){ .eq-top-card { max-width:100%; } }
.eq-directivo { display:flex; justify-content:center; gap:0; flex-wrap:wrap; padding:8px 0; }
.eq-dir-item { flex:1; min-width:160px; display:flex; flex-direction:column; align-items:center; padding:16px 20px; border-right:1px solid rgba(201,168,76,.15); }
.eq-dir-item:last-child { border-right:none; }
.eq-dir-rol { font-family:'Montserrat',sans-serif; font-size:10px; font-weight:700; color:var(--gold); text-transform:uppercase; letter-spacing:1px; margin-bottom:6px; }
.eq-dir-nombre { font-family:'Montserrat',sans-serif; font-size:14px; font-weight:600; color:rgba(255,255,255,.9); text-align:center; }
@media(max-width:600px){ .eq-directivo { flex-direction:column; } .eq-dir-item { border-right:none; border-bottom:1px solid rgba(201,168,76,.15); } .eq-dir-item:last-child { border-bottom:none; } }
.eq-card { background:rgba(255,255,255,.04); border:1px solid rgba(201,168,76,.18); border-radius:14px; overflow:hidden; }
.eq-card-full { grid-column: 1 / -1; }
.eq-card-head { background:rgba(201,168,76,.12); color:var(--gold); font-family:'Montserrat',sans-serif; font-weight:700; font-size:12px; letter-spacing:1.2px; text-transform:uppercase; padding:12px 18px; display:flex; align-items:center; gap:8px; border-bottom:1px solid rgba(201,168,76,.18); }
.eq-card-head i { font-size:13px; }
.eq-list { list-style:none; padding:10px 0; margin:0; }
.eq-list li { display:flex; align-items:baseline; gap:10px; padding:7px 18px; border-bottom:1px solid rgba(255,255,255,.04); }
.eq-list li:last-child { border-bottom:none; }
.eq-rank { font-family:'Montserrat',sans-serif; font-size:10px; font-weight:600; color:var(--gold); text-transform:uppercase; letter-spacing:.5px; white-space:nowrap; min-width:90px; }
.eq-name { font-family:'Open Sans',sans-serif; font-size:13px; color:rgba(255,255,255,.85); }
.eq-list-cols { display:grid; grid-template-columns:repeat(3,1fr); padding:10px 0; }
.eq-list-cols li { border-bottom:1px solid rgba(255,255,255,.04); }
@media(max-width:900px){ .equipo-grid { grid-template-columns:1fr 1fr; } .eq-card-full { grid-column:1/-1; } .eq-list-cols { grid-template-columns:1fr 1fr; } }
@media(max-width:600px){ .equipo-grid { grid-template-columns:1fr; } .eq-list-cols { grid-template-columns:1fr; } }
.hist-feat {
    display:flex; align-items:center; gap:10px;
    padding:12px 14px; background:rgba(255,255,255,.05);
    border-radius:6px; border-left:3px solid var(--gold);
}
.hist-feat i { color:var(--gold); font-size:17px; }
.hist-feat span { font-size:13px; color:rgba(255,255,255,.82); font-weight:600; }

/* ── SERVICIOS ── */
.svc-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.svc-card {
    background:var(--white); border-radius:10px; overflow:hidden;
    box-shadow:0 4px 20px rgba(0,0,0,.07); transition:all .3s;
    border-bottom:3px solid transparent; cursor:pointer; text-decoration:none; display:block; color:inherit;
}
.svc-card:hover { transform:translateY(-6px); box-shadow:0 16px 40px rgba(0,0,0,.14); border-bottom-color:var(--gold); }
.svc-img { height:200px; overflow:hidden; }
.svc-img img { width:100%; height:100%; object-fit:cover; transition:transform .5s; display:block; }
.svc-card:hover .svc-img img { transform:scale(1.06); }
.svc-ph { width:100%; height:200px; display:flex; align-items:center; justify-content:center; }
.svc-ph i { font-size:52px; color:rgba(255,255,255,.3); }
.svc-body { padding:24px; }
.svc-ico { width:48px; height:48px; background:var(--blue); border-radius:8px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.svc-ico i { color:var(--gold); font-size:20px; }
.svc-title { font-family:'Montserrat',sans-serif; font-size:16px; font-weight:700; margin-bottom:8px; }
.svc-desc { color:#666; font-size:13px; line-height:1.65; }

/* ── CAPACITACIONES ── */
.cursos-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:22px; }
.curso-card {
    border:1.5px solid #E4E8EE; border-radius:10px; padding:28px;
    cursor:pointer; transition:all .28s; position:relative; overflow:hidden; background:var(--white);
}
.curso-card::after {
    content:''; position:absolute; bottom:0; left:0; height:3px;
    width:0; background:var(--gold); transition:width .3s;
}
.curso-card:hover { border-color:var(--blue); transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,85,164,.12); }
.curso-card:hover::after { width:100%; }
.curso-ico {
    width:60px; height:60px; background:linear-gradient(135deg,var(--blue),var(--sky));
    border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.curso-ico i { font-size:26px; color:var(--white); }
.curso-title { font-family:'Montserrat',sans-serif; font-size:16px; font-weight:700; margin-bottom:9px; line-height:1.3; }
.curso-desc { color:#777; font-size:13px; line-height:1.65; margin-bottom:18px; }
.curso-tags { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:18px; }
.curso-tag { background:var(--gray-bg); color:var(--blue); padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; }
.curso-btn-el {
    width:100%; background:var(--blue); color:var(--white); border:none;
    padding:11px 18px; border-radius:6px; font-family:'Montserrat',sans-serif;
    font-weight:700; font-size:12px; letter-spacing:.5px; text-transform:uppercase;
    cursor:pointer; transition:all .28s; display:flex; align-items:center; justify-content:center; gap:7px;
}
.curso-btn-el:hover { background:var(--gold); color:var(--black); }
.cap-note {
    margin-top:40px; padding:24px 30px;
    background:linear-gradient(135deg,var(--blue),var(--sky)); border-radius:10px;
    color:var(--white); text-align:center; font-size:14px; line-height:1.7;
}
.cap-note strong { color:var(--gold); }

/* ── UNIRME ── */
.uni-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.uni-text h2 { font-family:'Montserrat',sans-serif; font-size:clamp(22px,3vw,36px); font-weight:900; color:var(--white); margin-bottom:18px; line-height:1.2; }
.uni-text h2 span { color:var(--gold); }
.uni-text > p { color:rgba(255,255,255,.7); font-size:14px; line-height:1.82; margin-bottom:20px; }
.req-list { list-style:none; margin-bottom:32px; }
.req-list li { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.07); color:rgba(255,255,255,.78); font-size:14px; }
.req-list li i { color:var(--gold); width:20px; font-size:15px; }
.uni-img-wrap { position:relative; }
.uni-img-wrap img { width:100%; height:500px; object-fit:cover; border-radius:8px; display:none; }
.uni-ph { width:100%; height:460px; background:linear-gradient(135deg,var(--blue),var(--sky)); border-radius:8px; display:flex; align-items:center; justify-content:center; }
.uni-ph i { font-size:90px; color:rgba(255,255,255,.15); }
.uni-benefits { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:18px; }
.bitem { background:rgba(255,255,255,.05); padding:15px; border-radius:8px; text-align:center; border:1px solid rgba(255,255,255,.07); }
.bitem i { font-size:24px; color:var(--gold); margin-bottom:7px; display:block; }
.bitem h4 { font-family:'Montserrat',sans-serif; font-size:12px; font-weight:700; color:var(--white); margin-bottom:3px; }
.bitem p { font-size:11px; color:rgba(255,255,255,.45); }

/* ── CONTACTO ── */
.ctc-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.ctc-info h3 { font-family:'Montserrat',sans-serif; font-size:20px; font-weight:700; margin-bottom:14px; }
.ctc-info > p { color:#666; font-size:14px; line-height:1.75; margin-bottom:26px; }
.ctc-items { display:flex; flex-direction:column; gap:12px; margin-bottom:24px; }
.ctc-item { display:flex; align-items:center; gap:14px; padding:14px 18px; background:var(--white); border-radius:8px; box-shadow:0 4px 18px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.08); transition:box-shadow .25s,transform .25s; }
.ctc-item:hover { box-shadow:0 8px 30px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.1); transform:translateY(-2px); }
.ctc-ico { width:44px; height:44px; background:var(--blue); border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ctc-ico i { color:var(--gold); font-size:17px; }
.ctc-item h4 { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#999; margin-bottom:2px; }
.ctc-item p { font-size:14px; font-weight:600; color:var(--text); }
.socials { display:flex; gap:10px; }
.soc-link { width:44px; height:44px; background:transparent; border:2px solid var(--gold); border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--gold); text-decoration:none; font-size:17px; transition:all .28s; }
.soc-link:hover { background:var(--gold); color:var(--black); transform:translateY(-3px); }
.ctc-socials { margin-top:8px; justify-content:center; }
.ctc-soc { background:var(--blue) !important; border:none !important; color:var(--gold) !important; }
.ctc-soc:hover { background:var(--gold) !important; color:var(--black) !important; }
.ctc-map { border-radius:10px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,.1); }
.ctc-map iframe { width:100%; height:420px; border:none; display:block; }

/* ── FOOTER ── */
footer { background:var(--black); color:var(--white); padding:52px 20px 20px; }
.ft-inner { max-width:1200px; margin:0 auto; }
.ft-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.ft-brand { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.ft-logo-ph { width:52px; height:52px; border-radius:50%; overflow:hidden; flex-shrink:0; }
.ft-logo-ph img { width:52px; height:52px; object-fit:cover; border-radius:50%; border:2px solid rgba(255,255,255,0.8); }
.ft-brand-text h3 { font-family:'Montserrat',sans-serif; font-size:14px; font-weight:700; color:var(--white); line-height:1.3; }
.ft-brand-text em { font-style:normal; font-size:10px; color:var(--gold); letter-spacing:1.5px; text-transform:uppercase; }
.ft-about p { color:rgba(255,255,255,.4); font-size:12px; line-height:1.75; }
.ft-col h4 { font-family:'Montserrat',sans-serif; font-size:12px; font-weight:700; color:var(--gold); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:14px; }
.ft-col ul { list-style:none; display:flex; flex-direction:column; gap:7px; }
.ft-col a { color:rgba(255,255,255,.45); text-decoration:none; font-size:12px; transition:color .25s; display:flex; align-items:center; gap:5px; }
.ft-col a::before { content:'›'; color:var(--gold); }
.ft-col a:hover { color:var(--gold); }
.ft-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:18px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.ft-bottom p, .ft-bottom a { font-size:11px; color:rgba(255,255,255,.35); text-decoration:none; transition:color .25s; }
.ft-bottom a:hover { color:var(--gold); }
.ft-links { display:flex; gap:20px; }

/* ── MODAL ── */
.overlay {
    display:none; position:fixed; inset:0;
    background:rgba(0,0,0,.82); z-index:3000;
    align-items:center; justify-content:center; padding:20px;
}
.overlay.on { display:flex; }
.modal-box { background:var(--white); border-radius:12px; max-width:520px; width:100%; overflow:hidden; animation:mIn .3s ease; }
@media(max-width:640px){ .modal-box { max-width:92vw; font-size:13px; } .donar-lbl { font-size:10px; } .donar-val { font-size:12px; } .donar-alias .donar-val { font-size:13px; } }
@keyframes mIn { from{opacity:0;transform:translateY(-28px) scale(.96)} to{opacity:1;transform:translateY(0) scale(1)} }
.m-head {
    background:linear-gradient(135deg,var(--blue),var(--sky));
    padding:22px 28px; display:flex; justify-content:space-between; align-items:flex-start;
}
.m-head-txt h3 { font-family:'Montserrat',sans-serif; color:var(--white); font-size:17px; font-weight:700; margin-bottom:4px; }
.m-head-txt p { color:rgba(255,255,255,.65); font-size:12px; }
.m-close { background:rgba(255,255,255,.2); border:none; color:var(--white); width:32px; height:32px; border-radius:50%; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; transition:background .25s; flex-shrink:0; }
.m-close:hover { background:rgba(255,255,255,.35); }
.m-body { padding:28px; }
.f-group { margin-bottom:18px; }
.f-group label { display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text); margin-bottom:7px; }
.f-group input {
    width:100%; padding:11px 14px; border:2px solid #E0E4EA; border-radius:6px;
    font-family:'Open Sans',sans-serif; font-size:14px; color:var(--text);
    transition:border-color .25s; background:var(--white);
}
.f-group input:focus { outline:none; border-color:var(--blue); }
.f-group select {
    width:100%; padding:11px 14px; border:2px solid #E0E4EA; border-radius:6px;
    font-family:'Open Sans',sans-serif; font-size:14px; color:var(--text);
    transition:border-color .25s; background:var(--white); cursor:pointer; appearance:auto;
}
.f-group select:focus { outline:none; border-color:var(--blue); }
.f-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.f-submit {
    width:100%; padding:13px; background:var(--gold); color:var(--black); border:none;
    border-radius:6px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:13px;
    text-transform:uppercase; letter-spacing:1px; cursor:pointer; transition:all .28s;
    display:flex; align-items:center; justify-content:center; gap:8px; margin-top:8px;
}
.f-submit:hover { background:var(--gold-dark); color:var(--white); }
.f-note { text-align:center; margin-top:10px; font-size:11px; color:#aaa; }
.success-box { display:none; text-align:center; padding:16px 0; }
.success-box.on { display:block; }
.suc-ico { width:68px; height:68px; background:#E8F5E9; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.suc-ico i { font-size:30px; color:#2E7D32; }

/* ── FADE-IN ── */
.fi { opacity:0; transform:translateY(28px); transition:opacity .65s ease, transform .65s ease; }
.fi.vis { opacity:1; transform:translateY(0); }

/* ── RESPONSIVE ── */
@media(max-width:960px){
    .hist-grid, .uni-grid, .ctc-grid { grid-template-columns:1fr; }
    .ctc-info { display:flex; flex-direction:column; align-items:center; text-align:center; }
    .ctc-info h3 { text-align:center; }
    .ctc-info > p { text-align:center; }
    .ctc-items { width:100%; align-items:center; }
    .ctc-item { width:100%; max-width:400px; flex-direction:column; align-items:center; text-align:center; gap:8px; }
    .ctc-ico { flex-shrink:0; }
    .ctc-item h4, .ctc-item p { text-align:center; }
    .ctc-socials { justify-content:center; }
    .svc-grid { grid-template-columns:1fr 1fr; }
    .ft-grid { grid-template-columns:1fr 1fr; }
    .hero-stats { position:relative; bottom:auto; left:auto; transform:none; gap:24px; flex-wrap:wrap; justify-content:center; margin-top:28px; }
    #inicio { flex-direction:column; padding-bottom:40px; }
    .nav-links { display:none; flex-direction:column; position:fixed; top:68px; left:0; right:0; background:rgba(10,14,30,.98); padding:16px 20px; border-bottom:2px solid var(--gold); z-index:999; }
    .nav-links.open { display:flex; }
    .nav-links li { width:100%; }
    .nav-links a { display:block; padding:11px 14px; width:100%; }
    .hamburger { display:flex; }
}
@media(max-width:640px){
    .svc-grid { grid-template-columns:1fr; }
    .ft-grid { grid-template-columns:1fr; }
    .f-row { grid-template-columns:1fr; }
    .hist-feats { grid-template-columns:1fr; }
    .uni-benefits { grid-template-columns:1fr; }
    .hero-stats { position:relative; bottom:auto; margin-top:28px; flex-wrap:wrap; justify-content:center; }
    section { padding:72px 16px; }
    .page-hero { height:200px; }
    #inicio { align-items:center; justify-content:center; }
    .hero-content { text-align:center; padding:90px 20px 40px; width:100%; }
    .hero-logo-wrap { width:120px; height:120px; margin:0 auto 20px; }
    .hero-logo-wrap img { width:120px; height:120px; }
    .hero-h1 { font-size:clamp(22px,7vw,34px); white-space:normal; }
    .hero-sub { font-size:11px; letter-spacing:2px; }
    .hero-p { font-size:14px; }
    .hero-btns { flex-direction:column; align-items:center; gap:10px; }
    .hero-btns .btn { width:100%; max-width:280px; justify-content:center; }
    .nav-brand { margin-left:0; }
    .nav-inner { padding:0 16px; }
}

/* ── GRID 5 SERVICIOS (3+2) ── */
.svc5-row { display:flex; gap:22px; justify-content:center; margin-bottom:22px; }
.svc5-row3 .curso-card { flex:0 0 calc(33.333% - 15px); }
.svc5-row2 .curso-card { flex:0 0 calc(33.333% - 15px); }
@media(max-width:900px){
    .svc5-row { flex-wrap:wrap; }
    .svc5-row3 .curso-card,
    .svc5-row2 .curso-card { flex:0 0 calc(50% - 11px); }
}
@media(max-width:600px){
    .svc5-row3 .curso-card,
    .svc5-row2 .curso-card { flex:0 0 100%; }
}

/* ── MODAL EMPRESAS LISTA ── */
.emp-curso-list { display:flex; flex-direction:column; }
.emp-curso-item {
    display:flex; align-items:center; gap:14px;
    padding:16px 24px; cursor:pointer; transition:background .2s;
    border-bottom:1px solid #f0f0f0;
}
.emp-curso-item:last-child { border-bottom:none; }
.emp-curso-item:hover { background:#f7f9ff; }
.emp-curso-item:hover .emp-arrow { color:var(--blue); transform:translateX(4px); }
.emp-curso-ico { width:42px; height:42px; background:var(--blue); border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.emp-curso-ico i { color:var(--gold); font-size:16px; }
.emp-curso-txt { flex:1; }
.emp-curso-txt h4 { font-family:'Montserrat',sans-serif; font-size:13px; font-weight:700; color:var(--dark); margin-bottom:3px; }
.emp-curso-txt p { font-size:12px; color:#777; line-height:1.5; }
.emp-arrow { color:#ccc; font-size:12px; transition:all .2s; flex-shrink:0; }

/* ── SERVICIO DETALLE ── */
.svc-detail-hero {
    min-height:340px; position:relative; display:flex; align-items:center; justify-content:center;
    text-align:center; padding:120px 20px 60px;
}
.svc-detail-hero .overlay-bg { position:absolute; inset:0; z-index:0; }
.svc-detail-hero-content { position:relative; z-index:2; max-width:700px; }
.svc-detail-hero-content h1 { font-family:'Montserrat',sans-serif; font-size:clamp(28px,4vw,46px); font-weight:900; color:var(--white); margin-bottom:14px; text-shadow:0 2px 20px rgba(0,0,0,.5); }
.svc-detail-hero-content p { color:rgba(255,255,255,.8); font-size:16px; line-height:1.75; max-width:600px; margin:0 auto; }
.svc-detail-ico { width:76px; height:76px; border-radius:50%; background:var(--gold); display:flex; align-items:center; justify-content:center; margin:0 auto 22px; }
.svc-detail-ico i { font-size:32px; color:var(--black); }
.svc-detail-body { background:var(--gray-bg); padding:64px 0; }
.svc-steps { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:22px; margin:36px 0; }
.svc-step { background:var(--white); border-radius:10px; padding:28px 24px; box-shadow:0 4px 18px rgba(0,0,0,.07); border-top:3px solid var(--gold); }
.svc-step-num { font-family:'Montserrat',sans-serif; font-size:34px; font-weight:900; color:var(--gold); line-height:1; margin-bottom:10px; }
.svc-step h4 { font-family:'Montserrat',sans-serif; font-size:14px; font-weight:700; margin-bottom:8px; color:var(--dark); }
.svc-step p { font-size:13px; color:#666; line-height:1.65; }
.svc-back { display:inline-flex; align-items:center; gap:8px; color:var(--blue); font-size:13px; font-weight:700; text-decoration:none; margin-bottom:32px; transition:gap .2s; letter-spacing:.5px; text-transform:uppercase; }
.svc-back i { font-size:12px; }
.svc-back:hover { gap:13px; color:var(--gold); }
.svc-info-block { background:var(--white); border-radius:10px; padding:32px; box-shadow:0 4px 18px rgba(0,0,0,.07); margin-bottom:28px; }
.svc-info-block h3 { font-family:'Montserrat',sans-serif; font-size:18px; font-weight:700; margin-bottom:14px; color:var(--dark); }
.svc-info-block p { font-size:14px; color:#555; line-height:1.85; }
.svc-info-block ul { list-style:none; padding:0; margin:14px 0 0; }
.svc-info-block ul li { font-size:14px; color:#555; padding:8px 0; border-bottom:1px solid #f0f0f0; display:flex; align-items:flex-start; gap:10px; line-height:1.6; }
.svc-info-block ul li:last-child { border-bottom:none; }
.svc-info-block ul li i { color:var(--gold); margin-top:3px; flex-shrink:0; }
