@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Fira+Sans:wght@300;400;500;600&display=swap');
:root {
  --verde:        #2793D1;
  --verde-dark:   #0d2d45;
  --verde-mid:    #2793D1;
  --verde-light:  #5cb8f0;
  --ocre:         #1a6ea8;
  --ocre-light:   #4aaee8;
  --crema:        #f0f7fc;
  --hueso:        #daeef8;
  --carbon:       #151515;
  --gris:         #555;
  --gris-claro:   #cce2f0;
  --blanco:       #f8fbfd;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--blanco); color: var(--carbon); overflow-x: hidden; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--carbon); }
::-webkit-scrollbar-thumb { background: var(--verde-mid); border-radius: 3px; }

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 200;
  background: rgba(8,22,38,0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(39,147,209,.2);
  height: 60px; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand-box {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, #5cb8f0, #2793D1);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 14px; color: #fff;
}
.nav-brand-label { font-family: 'Syne', sans-serif; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.1; }
.nav-brand-label small { display: block; font-weight: 400; font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 13px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ocre-light); }
.nav-btn { background: #2793D1; color: #fff; padding: 7px 18px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s; }
.nav-btn:hover { background: #5cb8f0; }

/* HERO */
.hero {
  min-height: 100vh; position: relative;
  background: #0a1f33;
  display: flex; align-items: center; overflow: hidden; padding-top: 60px;
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(39,147,209,.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(39,147,209,.08) 1px, transparent 1px);
  background-size: 48px 48px; animation: bgScroll 40s linear infinite;
}
@keyframes bgScroll { to { background-position: 48px 48px; } }
.hero-bg-glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 70% at 65% 40%, rgba(39,147,209,.22) 0%, transparent 65%);
}
.hero-topo {
  position: absolute; right: 0; top: 0; bottom: 0; width: 52%; z-index: 0; opacity: .06;
  background-image: repeating-radial-gradient(circle at 60% 50%, transparent 0, transparent 40px, rgba(39,147,209,.5) 41px);
}
.hero-inner {
  position: relative; z-index: 1; padding: 6% 7%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(39,147,209,.45); border-radius: 100px;
  padding: 5px 14px; margin-bottom: 24px;
  opacity: 0; animation: up .7s .1s ease forwards;
}
.badge-dot { width: 6px; height: 6px; background: var(--verde-light); border-radius: 50%; animation: blink 2s ease infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-badge span { font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: 2px; text-transform: uppercase; }
.hero-h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(38px,4.5vw,66px); line-height: 1.0; letter-spacing: -2px; color: #fff; margin-bottom: 20px;
  opacity: 0; animation: up .7s .2s ease forwards;
}
.hero-h1 .accent {
  background: linear-gradient(90deg, var(--verde-light), var(--ocre-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc {
  font-size: 16px; line-height: 1.75; color: rgba(255,255,255,.5);
  max-width: 480px; margin-bottom: 36px;
  opacity: 0; animation: up .7s .3s ease forwards;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: up .7s .4s ease forwards; }
.btn-fill {
  background: linear-gradient(135deg, #2793D1, #1a6ea8);
  color: #fff; padding: 13px 26px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 4px 20px rgba(39,147,209,.4); transition: transform .2s, box-shadow .2s;
}
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(39,147,209,.55); }
.btn-outline-w {
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7);
  padding: 13px 26px; border-radius: 8px; text-decoration: none;
  font-size: 14px; transition: border-color .2s, color .2s;
}
.btn-outline-w:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; opacity: 0; animation: up .7s .5s ease forwards; }
.hcard {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 24px 20px; transition: background .2s, border-color .2s;
}
.hcard:hover { background: rgba(39,147,209,.1); border-color: rgba(39,147,209,.3); }
.hcard-num { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800; color: #fff; line-height: 1; }
.hcard-num sup { font-size: 18px; color: var(--ocre-light); }
.hcard-label { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 6px; line-height: 1.4; }
.hcard-icon { font-size: 20px; margin-bottom: 12px; opacity: .6; }
@keyframes up { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }

/* SECTIONS */
section { padding: 88px 7%; }
.stag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.stag::before { content:''; width:20px; height:2px; background:#2793D1; }
.stag span { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #2793D1; }
.sh1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(26px,3vw,42px); line-height: 1.1; letter-spacing: -1px; }
.sh1 em { font-style: normal; color: #2793D1; }

/* ABOUT */
.about { background: var(--crema); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; margin-top: 52px; }
.about-since { font-family: 'Syne', sans-serif; font-size: 100px; font-weight: 800; color: var(--hueso); line-height: 1; margin-bottom: -10px; letter-spacing: -5px; }
.about-text p { font-size: 15px; line-height: 1.85; color: var(--gris); margin-bottom: 16px; }
.about-right { position: relative; }
.about-img-wrap {
  border-radius: 16px; overflow: hidden; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--verde-dark), var(--verde));
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}
.about-img-wrap img { width:100%; height:100%; object-fit:cover; }
.about-float {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--carbon); color: #fff;
  padding: 16px 22px; border-radius: 12px;
}
.about-float strong { display: block; font-size: 22px; font-weight: 800; color: #5cb8f0; font-family:'Syne',sans-serif; }
.about-float span { font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: 2px; text-transform: uppercase; }

/* LÍNEAS */
.lineas { background: var(--blanco); }
.lineas-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px;
  margin-top: 48px; border: 2px solid var(--carbon); border-radius: 14px; overflow: hidden;
}
.lcard {
  padding: 40px 32px; background: var(--blanco);
  border-right: 2px solid var(--carbon);
  position: relative; overflow: hidden; transition: background .3s; cursor: default;
}
.lcard:last-child { border-right: none; }
.lcard:hover { background: #0d2d45; }
.lcard:hover .lcard-title, .lcard:hover .lcard-text { color: #fff; }
.lcard:hover .lcard-n { color: rgba(255,255,255,.06); }
.lcard:hover .lcard-ico { background: rgba(39,147,209,.25); color: #5cb8f0; }
.lcard-n {
  font-family: 'Syne', sans-serif; font-size: 90px; font-weight: 800;
  position: absolute; top: 8px; right: 16px; line-height: 1;
  color: var(--hueso); transition: color .3s; pointer-events: none;
}
.lcard-ico {
  width: 52px; height: 52px; background: var(--crema); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px; transition: background .3s, color .3s;
}
.lcard-title { font-family:'Syne',sans-serif; font-weight:700; font-size:17px; line-height:1.2; margin-bottom:12px; color:var(--carbon); transition:color .3s; }
.lcard-text { font-size:14px; line-height:1.7; color:var(--gris); transition:color .3s; }

/* SERVICIOS */
.servicios { background: #0a1f33; }
.servicios .sh1 { color: #fff; }
.servicios .sh1 em { color: #5cb8f0; }
.servicios .stag span { color: #4aaee8; }
.servicios .stag::before { background: #4aaee8; }
.srv-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 1px; margin-top: 48px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; overflow: hidden;
}
.scard { padding: 28px 24px; background: #0a1f33; transition: background .25s; }
.scard:hover { background: #102840; }
.scard-ico { font-size: 26px; margin-bottom: 14px; }
.scard-title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); line-height: 1.4; }

/* INTEGRANTES */
.integrantes { background: var(--crema); }
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 14px; margin-top: 48px; }
.mcard {
  background: #fff; border-radius: 12px; padding: 20px;
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--gris-claro); transition: border-color .2s, box-shadow .2s;
}
.mcard:hover { border-color: #2793D1; box-shadow: 0 6px 24px rgba(39,147,209,.15); }
.mcard-avatar { width:56px; height:56px; border-radius:50%; flex-shrink:0; object-fit:cover; border:2px solid var(--hueso); }
.mcard-ph {
  width:56px; height:56px; border-radius:50%; flex-shrink:0;
  background: linear-gradient(135deg,#1a6ea8,#2793D1);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-family:'Syne',sans-serif; font-weight:800; font-size:18px;
  border:2px solid var(--hueso);
}
.mcard-name { font-family:'Syne',sans-serif; font-weight:700; font-size:14px; line-height:1.2; margin-bottom:4px; }
.mcard-role { font-size:12px; color:#2793D1; font-weight:600; margin-bottom:4px; }
.mcard-link { font-size:11px; color:var(--gris); text-decoration:none; }
.mcard-link:hover { color:#2793D1; }

/* POSGRADOS */
.posgrados { background: var(--blanco); }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px,1fr)); gap: 24px; margin-top: 48px; }
.pgcard {
  background: var(--crema); border-radius: 14px; padding: 28px;
  border: 1px solid var(--hueso); transition: border-color .2s, box-shadow .2s;
  display: flex; gap: 20px; align-items: flex-start;
}
.pgcard:hover { border-color: #2793D1; box-shadow: 0 8px 28px rgba(39,147,209,.12); }
.pg-avatar { width:64px; height:64px; border-radius:12px; flex-shrink:0; object-fit:cover; }
.pg-avatar-ph {
  width:64px; height:64px; border-radius:12px; flex-shrink:0;
  background: linear-gradient(135deg,#0d2d45,#2793D1);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:24px;
}
.pg-name { font-family:'Syne',sans-serif; font-weight:700; font-size:15px; margin-bottom:6px; }
.pg-prog {
  display:inline-block; background:#0d2d45; color:#5cb8f0;
  font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
  padding:3px 10px; border-radius:100px; margin-bottom:10px;
}
.pg-bio { font-size:13px; line-height:1.7; color:var(--gris); }

/* ARTÍCULOS */
.articulos { background: var(--crema); }
.art-list {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 48px; border: 2px solid var(--carbon); border-radius: 14px; overflow: hidden;
}
.acard {
  background: #fff; padding: 28px 32px;
  border-bottom: 2px solid var(--carbon); transition: background .2s;
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start;
}
.acard:last-child { border-bottom: none; }
.acard:hover { background: var(--crema); }
.acard-title { font-family:'Syne',sans-serif; font-weight:700; font-size:15px; line-height:1.3; margin-bottom:8px; }
.acard-meta { font-size:12px; color:var(--gris); line-height:1.7; }
.acard-meta a { color:#2793D1; text-decoration:none; font-weight:600; }
.acard-meta a:hover { text-decoration:underline; }
.acard-year { font-family:'Syne',sans-serif; font-weight:800; font-size:28px; color:var(--hueso); flex-shrink:0; padding-top:2px; }

/* PROYECTOS */
.proyectos { background: #0a1f33; }
.proyectos .sh1 { color: #fff; }
.proyectos .sh1 em { color: #5cb8f0; }
.proyectos .stag span { color: #4aaee8; }
.proyectos .stag::before { background: #4aaee8; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; margin-top: 48px; }
.pcard {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.07); background: #0d2035;
  position: relative; aspect-ratio: 1; cursor: pointer; transition: border-color .2s;
}
.pcard:hover { border-color: rgba(39,147,209,.5); }
.pcard img { width:100%; height:100%; object-fit:cover; transition: transform .4s; display:block; }
.pcard:hover img { transform: scale(1.05); }
.pcard-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,25,45,.96) 0%, rgba(10,25,45,.3) 60%, transparent 100%);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: opacity .3s;
}
.pcard:hover .pcard-overlay { opacity: 1; }
.pcard-title { font-family:'Syne',sans-serif; font-weight:700; font-size:13px; color:#fff; line-height:1.3; }

/* ALIADOS */
.aliados { background: var(--blanco); }
.aliados-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.ally {
  background: var(--crema); border: 1px solid var(--gris-claro);
  border-radius: 8px; padding: 10px 16px;
  font-size: 13px; font-weight: 500; color: var(--gris);
  transition: border-color .2s, color .2s, background .2s;
}
.ally:hover { border-color: #2793D1; color: #2793D1; background: #fff; }

/* CONTACTO */
.contacto { background: #0d2d45; color: #fff; }
.contacto .sh1 { color: #fff; }
.contacto .stag span { color: var(--ocre-light); }
.contacto .stag::before { background: var(--ocre-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; margin-top: 52px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.cinfo-item { display: flex; align-items: flex-start; gap: 14px; }
.cinfo-ico {
  width:40px; height:40px; border-radius:10px;
  background: rgba(39,147,209,.15); border: 1px solid rgba(39,147,209,.3);
  display:flex; align-items:center; justify-content:center;
  font-size:16px; flex-shrink:0; color:#5cb8f0;
}
.cinfo-label { font-size:11px; color:rgba(255,255,255,.4); letter-spacing:1.5px; text-transform:uppercase; margin-bottom:4px; }
.cinfo-val { font-size:14px; color:rgba(255,255,255,.8); line-height:1.6; }
.cinfo-val a { color:#5cb8f0; text-decoration:none; }
.social-row { display:flex; gap:10px; margin-top:6px; }
.social-btn {
  width:40px; height:40px; border-radius:10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.6); font-size:16px; text-decoration:none;
  transition: background .2s, color .2s, border-color .2s;
}
.social-btn:hover { background:rgba(39,147,209,.25); border-color:rgba(39,147,209,.5); color:#5cb8f0; }
.map-wrap { border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.08); }
.map-wrap iframe { display:block; width:100%; height:340px; border:none; }

/* FOOTER */
footer {
  background: #0a0a0a; border-top: 1px solid #1a1a1a;
  padding: 24px 7%;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer p { font-size: 12px; color: rgba(255,255,255,.3); }
footer a { color: rgba(255,255,255,.35); text-decoration: none; font-size: 12px; }
footer a:hover { color: #5cb8f0; }

/* ─── INFORMATIVA ─── */
.info-section { background: var(--blanco); padding: 80px 7%; }
.info-inner { max-width: 860px; }
.info-text {
  font-size: 16px; line-height: 1.9; color: var(--gris);
  margin-top: 24px;
  border-left: 3px solid #2793D1;
  padding-left: 24px;
}
.info-text strong { color: var(--carbon); }

/* ─── MAESTRÍA PDF ─── */
.maestria-section { background: #0a1f33; padding: 80px 7%; }
.maestria-inner { }
.maestria-header { margin-bottom: 40px; }
.maestria-header .stag span { color: #4aaee8; }
.maestria-header .stag::before { background: #4aaee8; }
.maestria-header .sh1 { color: #fff; }
.maestria-header .sh1 em { color: #5cb8f0; }
.maestria-grid {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 40px; align-items: center;
}
.maestria-iframe-wrap {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(39,147,209,.25);
  background: #fff;
}
.maestria-iframe-wrap iframe {
  display: block; width: 100%; height: 500px; border: none;
}
.maestria-cta {
  background: rgba(39,147,209,.08);
  border: 1px solid rgba(39,147,209,.2);
  border-radius: 16px; padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.maestria-cta-icon { font-size: 40px; }
.maestria-cta-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 22px; color: #fff; line-height: 1.2;
}
.maestria-cta-text { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.6); }
.maestria-cta .btn-fill { align-self: flex-start; }

/* ─── PANORÁMICA ─── */
.panoramica-section { background: var(--carbon); padding: 80px 7%; }
.panoramica-inner .stag span { color: #4aaee8; }
.panoramica-inner .stag::before { background: #4aaee8; }
.panoramica-inner .sh1 { color: #fff; margin-bottom: 32px; }
.panoramica-inner .sh1 em { color: #5cb8f0; }
.panoramica-wrap {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(39,147,209,.2);
  margin-top: 32px;
}
.panoramica-wrap iframe {
  display: block; width: 100%; height: 520px; border: none;
}

/* ─── SEMILLERO ─── */
.semillero-section { background: var(--crema); padding: 80px 7%; }
.semillero-inner .stag span { color: #2793D1; }
.semillero-inner .stag::before { background: #2793D1; }
.semillero-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 40px; align-items: start; margin-top: 40px;
}
.semillero-pdf-wrap {
  border-radius: 12px; overflow: hidden;
  border: 2px solid var(--gris-claro);
  background: #fff;
}
.semillero-pdf-wrap iframe {
  display: block; width: 100%; height: 560px; border: none;
}
.semillero-text { display: flex; flex-direction: column; gap: 14px; }
.semillero-subtitle {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 20px; line-height: 1.2; color: var(--carbon);
}
.semillero-divider {
  height: 2px; background: linear-gradient(90deg, #2793D1, transparent);
  border-radius: 2px; margin: 4px 0 8px;
}
.semillero-text p { font-size: 14px; line-height: 1.8; color: var(--gris); }
.semillero-note {
  background: rgba(39,147,209,.08);
  border: 1px solid rgba(39,147,209,.2);
  border-radius: 8px; padding: 12px 16px;
  font-size: 13px !important; color: #1a6ea8 !important;
}
.semillero-videos {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-top: 40px;
}
.svideo-wrap {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--gris-claro);
  aspect-ratio: 16/9; position: relative;
}
.svideo-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}

/* ─── CONSULTORÍAS FLIP CARDS ─── */
.consultorias { background: var(--crema); }
.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.fcard {
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
}
.fcard-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  border-radius: 14px;
}
.fcard:hover .fcard-inner { transform: rotateY(180deg); }
.fcard-front,
.fcard-back {
  position: absolute; inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.fcard-front {
  background: var(--blanco);
  border: 1px solid var(--gris-claro);
}
.fcard-front img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.fcard:hover .fcard-front img { transform: scale(1.04); }
.fcard-ph {
  display: none;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0d2d45, #2793D1);
  align-items: center; justify-content: center;
  font-size: 52px;
}
.fcard-back {
  background: #0d2d45;
  transform: rotateY(180deg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  border: 1px solid rgba(39,147,209,.3);
}
.fcard-back p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; line-height: 1.65;
  color: rgba(255,255,255,.88);
  text-align: center;
}

/* ─── MODAL PROYECTOS ─── */
.proj-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(5,15,30,.85);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.proj-modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.proj-modal {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 860px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.proj-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: #0a1f33;
  border-bottom: 1px solid rgba(39,147,209,.2);
  flex-shrink: 0;
}
.proj-modal-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 15px; color: #fff; line-height: 1.3;
  flex: 1; margin-right: 16px;
}
.proj-modal-close {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s; flex-shrink: 0;
}
.proj-modal-close:hover { background: rgba(39,147,209,.3); color: #fff; }
.proj-modal-body { flex: 1; overflow: hidden; }
.proj-modal-body iframe {
  display: block; width: 100%; height: 100%;
  min-height: 500px; border: none;
}

/* Indicador de clic en las cards */
.fcard[data-html] { cursor: pointer; }
.fcard[data-html] .fcard-back::after {
  content: 'Ver más →';
  display: block; margin-top: 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #5cb8f0; opacity: .8;
}

/* ─── CARRUSEL ─── */
.carousel-section { padding: 0; position: relative; }
.swiper {
  width: 100%; height: 520px;
}
.swiper-slide .image-container {
  width: 100%; height: 100%; position: relative; overflow: hidden;
}
.swiper-slide .image-container img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  filter: brightness(.75);
}
.swiper-slide .image-container::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,25,50,.7) 0%, transparent 60%);
}
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background: rgba(39,147,209,.25);
  border: 1px solid rgba(39,147,209,.4);
  border-radius: 50%;
  width: 44px !important; height: 44px !important;
  backdrop-filter: blur(8px);
  transition: background .2s;
}
.swiper-button-next:hover,
.swiper-button-prev:hover { background: rgba(39,147,209,.55); }
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 16px !important; font-weight: 700; }
.swiper-pagination-bullet { background: rgba(255,255,255,.5) !important; }
.swiper-pagination-bullet-active { background: #2793D1 !important; }

/* ─── HAMBURGER ─── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,.8); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none; position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(8,22,38,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(39,147,209,.2);
  padding: 20px 5%; z-index: 199;
  flex-direction: column; gap: 0;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: rgba(255,255,255,.7); text-decoration: none;
  font-size: 15px; font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: #5cb8f0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .nav-links, .nav-btn { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 10% 5% 6%; }
  .hero-h1 { font-size: clamp(32px, 8vw, 52px); }
  .hero-cards { grid-template-columns: 1fr 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-since { font-size: 72px; }
  .about-float { left: 0; bottom: -14px; }

  .lineas-grid { grid-template-columns: 1fr; }
  .lcard { border-right: none; border-bottom: 2px solid var(--carbon); }
  .lcard:last-child { border-bottom: none; }
  .lcard-n { font-size: 64px; }

  .srv-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  .members-grid { grid-template-columns: 1fr; }

  .pg-grid { grid-template-columns: 1fr; }

  .art-list .acard { grid-template-columns: 1fr; }
  .acard-year { font-size: 20px; color: #2793D1; }

  .maestria-grid { grid-template-columns: 1fr; }
  .maestria-iframe-wrap iframe { height: 380px; }
  .semillero-grid { grid-template-columns: 1fr; }
  .semillero-pdf-wrap iframe { height: 400px; }
  .semillero-videos { grid-template-columns: 1fr; gap: 16px; }
  .panoramica-wrap iframe { height: 320px; }
  .proj-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .flip-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  .fcard { height: 190px; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .map-wrap iframe { height: 260px; }

  section { padding: 64px 5%; }
  .swiper { height: 280px; }
}

@media (max-width: 480px) {
  .hero-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hcard { padding: 16px 14px; }
  .hcard-num { font-size: 28px; }
  .hero-btns { flex-direction: column; }
  .btn-fill, .btn-outline-w { text-align: center; }
  .maestria-iframe-wrap iframe { height: 280px; }
  .semillero-pdf-wrap iframe { height: 300px; }
  .panoramica-wrap iframe { height: 240px; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .flip-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fcard { height: 170px; }
  .fcard-back p { font-size: 12px; }
  .swiper { height: 220px; }
  .swiper-button-next, .swiper-button-prev { width: 36px !important; height: 36px !important; }
}
