:root{
  --navy:#1B2459; --navy-2:#27336f; --blue:#3E5BA9; --sky:#8FA6D8; --slate:#5E6F96;
  --ink:#1c2233; --muted:#5b6478; --bg:#ffffff; --alt:#F3F5FA; --line:#E1E6F0;
  --accent:#F2B705; --r:14px; --shadow:0 10px 30px rgba(27,36,89,.10);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Inter,system-ui,sans-serif;color:var(--ink);background:var(--bg);line-height:1.6;font-size:16px}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3{font-family:Montserrat,sans-serif;line-height:1.2;color:var(--navy)}
h1{font-size:clamp(2rem,4.6vw,3.3rem);color:#fff;font-weight:800}
h2{font-size:clamp(1.6rem,3vw,2.3rem);margin:.3rem 0 1rem;font-weight:800}
h3{font-size:1.08rem;font-weight:700}
.wrap{width:min(1160px,100% - 32px);margin-inline:auto}
.eyebrow{font:600 .8rem/1 Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--blue)}
.eyebrow--light{color:var(--sky)}
.btn{display:inline-block;background:var(--accent);color:var(--navy);font-weight:700;padding:.85rem 1.4rem;border-radius:999px;text-decoration:none;border:0;cursor:pointer;font-size:.98rem;transition:transform .15s,box-shadow .15s}
.btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(242,183,5,.35)}
.btn--ghost{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.7)}
.btn--sm{padding:.55rem 1rem;font-size:.88rem}

/* nav */
.nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav__in{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;font:800 1.2rem Montserrat,sans-serif;color:var(--navy);letter-spacing:.06em}
.brand img{width:46px;height:auto}
.nav__links{display:flex;align-items:center;gap:1.4rem}
.nav__links a{text-decoration:none;font-weight:500;font-size:.95rem;color:var(--ink)}
.nav__links a:not(.btn):hover{color:var(--blue)}
.nav__toggle{display:none;background:none;border:0;font-size:1.6rem;color:var(--navy);cursor:pointer}

/* hero */
.hero{position:relative;min-height:78vh;display:flex;align-items:center;overflow:hidden}
.hero__bg{position:absolute;inset:0;background:linear-gradient(100deg,rgba(18,25,64,.92) 0%,rgba(27,36,89,.78) 45%,rgba(27,36,89,.25) 100%),url(../img/equipo-ie.jpg) center/cover}
.hero__in{position:relative;padding:5rem 0;max-width:760px;margin-left:max(16px,calc((100% - 1160px)/2))}
.hero .eyebrow{color:var(--accent);margin-bottom:1rem}
.lead{color:#dfe5f5;font-size:1.12rem;margin:1.2rem 0 2rem;max-width:620px}
.hero__cta{display:flex;flex-wrap:wrap;gap:.8rem}

/* stats */
.stats{background:var(--navy);color:#fff}
.stats__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;padding:1.8rem 0}
.stats strong{display:block;font:800 2rem Montserrat,sans-serif;color:var(--accent)}
.stats span{font-size:.9rem;color:#c9d2ea}

/* sections */
.sec{padding:5.5rem 0}
.sec--alt{background:var(--alt)}
.two{display:grid;grid-template-columns:1.1fr .9fr;gap:3.5rem;align-items:center}
.two--rev{grid-template-columns:.9fr 1.1fr}
.sec p{color:var(--muted)}
.photo img{border-radius:var(--r);box-shadow:var(--shadow);width:100%;max-height:520px;object-fit:cover}
.mv{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin:1.6rem 0}
.mv div{background:var(--alt);border-left:4px solid var(--blue);padding:1rem 1.1rem;border-radius:8px}
.mv h3{margin-bottom:.3rem}
.mv p{font-size:.93rem}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none}
.chips li{background:#fff;border:1px solid var(--line);padding:.35rem .85rem;border-radius:999px;font-size:.85rem;font-weight:600;color:var(--navy)}

.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:1.1rem;margin-top:2rem}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.4rem;transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.card .ic{width:42px;height:42px;border-radius:10px;background:var(--navy);color:var(--accent);display:grid;place-items:center;font-size:1.2rem;margin-bottom:.9rem}
.card h3{margin-bottom:.45rem}
.card p{font-size:.9rem}

.tech{background:linear-gradient(135deg,#121a44,#1B2459 60%,#2a3a86);color:#fff}
.tech h2{color:#fff}
.tech p{color:#cfd7ee}
.photo--dark img{background:#fff}
.ticks{list-style:none;margin-top:1.2rem}
.ticks li{padding-left:1.7rem;position:relative;margin:.55rem 0;color:#e8ecf8}
.ticks li::before{content:"✓";position:absolute;left:0;color:var(--accent);font-weight:700}

.projects{display:grid;gap:1.6rem;margin-top:2rem}
.proj{display:grid;grid-template-columns:1.5fr 1fr;gap:1.5rem;align-items:center;background:var(--alt);border-radius:var(--r);padding:1rem}
.gal{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:.5rem;height:300px}
.gal img{width:100%;height:100%;object-fit:cover;border-radius:10px}
.gal img:first-child{grid-row:1 / 3}
.tag{display:inline-block;background:var(--navy);color:#fff;font-size:.75rem;font-weight:600;padding:.2rem .7rem;border-radius:999px;margin-bottom:.6rem}
.proj__txt p{margin-top:.4rem}

.steps{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:1rem;margin-top:2rem;counter-reset:s}
.steps li{background:#fff;border-radius:var(--r);padding:1.3rem;border-top:4px solid var(--accent);box-shadow:0 4px 14px rgba(27,36,89,.06)}
.steps strong{display:block;color:var(--navy);font-family:Montserrat,sans-serif;margin-bottom:.4rem}
.steps span{font-size:.9rem;color:var(--muted)}

.notify{display:flex;gap:.6rem;margin-top:1.4rem;flex-wrap:wrap}
.notify input{flex:1;min-width:220px}
input,select,textarea{font:inherit;padding:.8rem .9rem;border:1px solid var(--line);border-radius:10px;width:100%;background:#fff;color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:2px solid var(--sky);border-color:transparent}

.contact{background:var(--navy);color:#fff}
.contact h2{color:#fff}
.contact p{color:#cfd7ee}
.contact__list{list-style:none;margin-top:1.6rem}
.contact__list li{margin:.9rem 0;color:#fff}
.contact__list span{display:block;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--sky)}
.contact__list a{color:#fff;font-weight:600}
.form{background:#fff;border-radius:var(--r);padding:1.6rem;display:grid;gap:.9rem;box-shadow:var(--shadow)}
.form label{display:grid;gap:.35rem;font-size:.85rem;font-weight:600;color:var(--navy)}

.foot{background:#0f1536;color:#b9c3de;padding:2.2rem 0;text-align:center;font-size:.9rem}
.foot__in{display:grid;justify-items:center;gap:.6rem}
.small{font-size:.8rem;color:#7f8bb0}
.wa{position:fixed;right:18px;bottom:18px;width:56px;height:56px;border-radius:50%;background:#25D366;display:grid;place-items:center;box-shadow:0 8px 20px rgba(0,0,0,.25);z-index:60}

@media (max-width:980px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(2,1fr)}
  .two,.two--rev,.proj{grid-template-columns:1fr}
  .stats__grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  .nav__toggle{display:block}
  .nav__links{display:none;position:absolute;top:68px;left:0;right:0;background:#fff;flex-direction:column;align-items:flex-start;padding:1rem 16px 1.4rem;border-bottom:1px solid var(--line)}
  .nav__links.open{display:flex}
  .cards,.steps,.mv{grid-template-columns:1fr}
  .gal{height:220px}
  .sec{padding:3.8rem 0}
  .hero{min-height:70vh}
}

/* ---- v2: enlaces, páginas internas, servicios y cursos ---- */
a.card{text-decoration:none;color:inherit;display:flex;flex-direction:column}
.card .more{margin-top:auto;padding-top:.8rem;font-size:.85rem;font-weight:600;color:var(--blue)}
.cards{grid-template-columns:repeat(5,1fr)}
.link{color:var(--blue);font-weight:600;text-decoration:none}
.btn--outline{background:transparent;border:2px solid var(--navy);color:var(--navy)}
.facts{list-style:none;display:grid;gap:.5rem;margin:1.3rem 0 1.6rem}
.facts li{background:var(--alt);border-radius:10px;padding:.7rem 1rem;color:var(--ink)}
.facts strong{display:block;font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--blue)}
.foot__nav{display:flex;gap:1.2rem;flex-wrap:wrap;justify-content:center}
.foot__nav a{color:#dfe5f5;text-decoration:none;font-size:.88rem}
.pagehead{background:linear-gradient(110deg,#121a44,#1B2459 55%,#2a3a86);color:#fff;padding:4.5rem 0 3.5rem}
.pagehead h1{font-size:clamp(1.9rem,4vw,2.8rem)}
.pagehead p{color:#cfd7ee;max-width:760px;margin-top:1rem;font-size:1.08rem}
.pagehead .eyebrow{color:var(--accent);margin-bottom:.8rem}
.toc{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.6rem}
.toc a{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);color:#fff;text-decoration:none;padding:.4rem .9rem;border-radius:999px;font-size:.85rem}
.toc a:hover{background:var(--accent);color:var(--navy)}
.srv{padding:3.8rem 0;border-bottom:1px solid var(--line);scroll-margin-top:70px}
.srv:nth-of-type(even){background:var(--alt)}
.srv__head{display:flex;gap:1rem;align-items:center;margin-bottom:1rem}
.srv__head .ic{width:52px;height:52px;border-radius:12px;background:var(--navy);color:var(--accent);display:grid;place-items:center;font-size:1.4rem;flex:none}
.srv__head h2{margin:0}
.srv__intro{max-width:880px;color:var(--muted);margin-bottom:1.6rem}
.srv__grid{display:grid;grid-template-columns:1.4fr 1fr;gap:2rem}
.box{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.3rem 1.4rem}
.srv:nth-of-type(even) .box{background:#fff}
.box h3{font-size:.95rem;margin-bottom:.7rem;text-transform:uppercase;letter-spacing:.06em;color:var(--blue)}
.box ul{list-style:none}
.box li{padding:.42rem 0 .42rem 1.4rem;position:relative;border-bottom:1px dashed var(--line);font-size:.93rem}
.box li:last-child{border-bottom:0}
.box li::before{content:"▸";position:absolute;left:0;color:var(--accent);font-weight:700}
.box li b{color:var(--navy)}
.side{display:grid;gap:1rem;align-content:start}
.norms{display:flex;flex-wrap:wrap;gap:.4rem}
.norms span{background:var(--navy);color:#fff;font-size:.75rem;padding:.25rem .6rem;border-radius:6px}
.cta-band{background:var(--navy);color:#fff;padding:3rem 0;text-align:center}
.cta-band h2{color:#fff}
.cta-band p{color:#cfd7ee;margin-bottom:1.4rem}
.sched{width:100%;border-collapse:collapse;margin-top:1.4rem;background:#fff;border-radius:var(--r);overflow:hidden;box-shadow:0 4px 14px rgba(27,36,89,.06)}
.sched th{background:var(--navy);color:#fff;text-align:left;padding:.8rem 1rem;font-size:.85rem}
.sched td{padding:.85rem 1rem;border-bottom:1px solid var(--line);vertical-align:top;font-size:.93rem}
.sched td:first-child{white-space:nowrap;font-weight:700;color:var(--navy)}
.sched tr:nth-child(even) td{background:var(--alt)}
.badge{display:inline-block;background:var(--accent);color:var(--navy);font-weight:700;font-size:.75rem;padding:.2rem .6rem;border-radius:999px}
.course-hero{display:grid;grid-template-columns:1.3fr 1fr;gap:2.5rem;align-items:center}
.course-card{background:#fff;color:var(--ink);border-radius:var(--r);padding:1.6rem;box-shadow:var(--shadow)}
.course-card li{list-style:none;padding:.55rem 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:1rem;font-size:.93rem}
.course-card li span:first-child{color:var(--muted)}
.course-card li span:last-child{font-weight:600;color:var(--navy);text-align:right}
.course-card .btn{width:100%;text-align:center;margin-top:1.2rem}
@media (max-width:1100px){.cards{grid-template-columns:repeat(3,1fr)}}
@media (max-width:980px){.srv__grid,.course-hero{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){.cards{grid-template-columns:1fr}.sched td,.sched th{padding:.6rem .6rem;font-size:.85rem}.sched td:first-child{white-space:normal}}
.ticks--dark li{color:var(--ink)}
.sched td:nth-child(2){white-space:nowrap}
