/* ===== Kobe brand font ===== */
@font-face {
  font-family: "Kobe";
  src: url("assets/fonts/kobe-regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Kobe";
  src: url("assets/fonts/kobe-bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Kobe";
  src: url("assets/fonts/kobe-black.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --blue: #000DAA;
  --blue-dark: #00045D;
  --blue-deep: #00072E;
  --lime: #B9E402;
  --lime-dark: #9CBB01;
  --cream: #F4F5FF;
  --ink: #0B0E2C;
  --muted: #5b5f7a;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 20px 45px rgba(0, 13, 170, 0.16);
  --shadow-sm: 0 10px 24px rgba(0, 13, 170, 0.10);
  --font-head: "Kobe", "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--white);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
.container { width: min(1160px, 90%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--blue); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 900; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem;
  font-weight: 700; color: var(--lime-dark); margin-bottom: 0.6rem;
}
.hero .eyebrow { font-size: 1rem; letter-spacing: 0.18em; margin-bottom: 0.9rem; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head h2 { display: inline-block; }
.section-head h2::after {
  content: ""; display: block; width: 68px; height: 5px; margin: 0.9rem auto 0;
  border-radius: 5px; background: linear-gradient(90deg, var(--lime), var(--lime-dark));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.9rem 1.7rem; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-lime { background: var(--lime); color: var(--blue-dark); }
.btn-lime:hover { background: var(--lime-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--blue); }
.btn-nav { padding: 0.6rem 1.3rem; background: var(--lime); color: var(--blue-dark); }
.btn-nav:hover { background: var(--lime-dark); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Brand top strip ---------- */
.brand-strip { height: 5px; background: linear-gradient(90deg, var(--blue), var(--lime) 55%, var(--lime-dark)); }

/* ---------- Hub de divulgación ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.hub-card {
  display: flex; flex-direction: column; gap: 0.6rem; text-decoration: none;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.6rem; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hub-icon { font-size: 2rem; }
.hub-card h3 { color: var(--blue); font-size: 1.15rem; margin: 0; }
.hub-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.hub-card .hub-link { color: var(--lime-dark); font-weight: 600; font-size: 0.9rem; margin-top: auto; }

/* ---------- Botón flotante de contacto ---------- */
.float-contact {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 200;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--blue); color: #fff; text-decoration: none;
  padding: 0.75rem 1.1rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 8px 22px rgba(0, 13, 170, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.float-contact:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 13, 170, 0.45); }
.float-contact svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 520px) {
  .float-contact { padding: 0.8rem; }
  .float-contact .float-label { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 13, 170, 0.07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; }
.logo img { height: 42px; display: block; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-weight: 500; font-size: 0.95rem; color: var(--ink); transition: color 0.2s; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--blue); border-radius: 3px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 4.5rem 0 7rem; overflow: hidden;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/pattern-blue.png") center/cover no-repeat;
  opacity: 0.12; mix-blend-mode: screen;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 900; color: #fff; margin-bottom: 1.2rem; }
.hero h1 span { color: var(--lime); }
.lead { font-size: 1.12rem; color: rgba(255,255,255,0.88); max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.2rem; list-style: none; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: 1.8rem; color: var(--lime); }
.hero-stats span { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.hero-art .koi {
  position: relative; z-index: 2; width: min(360px, 80%);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  transform-origin: 55% 45%;
  animation: swim 12s linear infinite;
}
/* Trayectoria elíptica continua: rx≈22px, ry≈32px, con giro que acompaña el nado */
@keyframes swim {
  0%   { transform: translate(0, -32px)   rotate(-4deg); }
  12.5%{ transform: translate(16px, -22px) rotate(-1deg); }
  25%  { transform: translate(22px, 0)     rotate(2deg); }
  37.5%{ transform: translate(16px, 22px)  rotate(4deg); }
  50%  { transform: translate(0, 32px)     rotate(1deg); }
  62.5%{ transform: translate(-16px, 22px) rotate(-2deg); }
  75%  { transform: translate(-22px, 0)    rotate(-4deg); }
  87.5%{ transform: translate(-16px, -22px)rotate(-2deg); }
  100% { transform: translate(0, -32px)    rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .koi { animation: none; }
}

.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 90px; }
.wave-divider path { fill: #fff; }

/* ---------- Services ---------- */
.services { padding: 5rem 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.service-card {
  background: var(--cream); border-radius: var(--radius); padding: 2.3rem 1.9rem;
  text-align: center; transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(0, 13, 170, 0.06);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card.featured { background: var(--blue); color: #fff; }
.service-card.featured h3 { color: #fff; }
.service-card.featured p { color: rgba(255,255,255,0.85); }
.service-card.featured .link-arrow { color: var(--lime); }
.service-icon { font-size: 2.7rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 0.7rem; font-weight: 700; }
.service-card p { color: var(--muted); margin-bottom: 1.2rem; }
.link-arrow { font-weight: 700; color: var(--blue); }

/* ---------- Módulos DBT ---------- */
.modules { background: var(--cream); padding: 5rem 0; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.module-card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.4rem; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s;
  border-top: 4px solid var(--lime);
}
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.module-card img { width: 82px; height: 82px; object-fit: contain; margin-bottom: 1rem; }
.module-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; font-weight: 700; }
.module-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- About ---------- */
.about { padding: 5rem 0; }
.about-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3.5rem; align-items: center; }
.about-art {
  position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--blue), var(--blue-dark));
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.about-art::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/pattern-blue.png") center/cover; opacity: 0.15; mix-blend-mode: screen;
}
.about-art img { position: relative; width: 62%; filter: drop-shadow(0 14px 30px rgba(0,0,0,0.35)); }
.about-copy p { color: var(--muted); margin-bottom: 1.4rem; }
.check-list { list-style: none; margin-bottom: 1.8rem; }
.check-list li { padding-left: 2rem; position: relative; margin-bottom: 0.7rem; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 1.4rem; height: 1.4rem;
  background: var(--lime); color: var(--blue-dark); border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
}

/* ---------- Team ---------- */
.team { background: var(--cream); padding: 5rem 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.team-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }
.team-subhead { text-align: center; color: var(--blue); font-size: 1.35rem; font-weight: 700; margin: 2.5rem 0 1.5rem; position: relative; }
.team-subhead:first-of-type { margin-top: 0.5rem; }
.team-subhead::after { content: ""; display: block; width: 48px; height: 3px; background: var(--lime); border-radius: 3px; margin: 0.5rem auto 0; }
.team-grid-collab { grid-template-columns: repeat(auto-fit, minmax(280px, 320px)); justify-content: center; }
.team-card { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.25s; }
.team-card:hover { transform: translateY(-6px); }
.team-photo {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center;
  overflow: hidden; font-family: var(--font-head); font-weight: 900; font-size: 1.6rem; color: #fff; background: var(--c, var(--blue));
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.2rem; font-weight: 700; }
.team-role { color: var(--lime-dark); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.6rem; }
.team-card p:last-child { color: var(--muted); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 5rem 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.testi-note { text-align: center; font-size: 0.85rem; color: #6b7280; margin-top: 1.6rem; font-style: italic; }
.testi-card { background: var(--cream); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.stars { color: var(--lime-dark); font-size: 1.1rem; margin-bottom: 0.8rem; letter-spacing: 2px; }
.testi-card p { font-style: italic; color: var(--ink); margin-bottom: 1rem; }
.testi-card footer { font-weight: 700; color: var(--blue); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; padding: 4.5rem 0;
  background:
    radial-gradient(circle at 85% 120%, rgba(185,228,2,0.5) 0%, transparent 45%),
    radial-gradient(circle at 10% -20%, rgba(185,228,2,0.28) 0%, transparent 40%),
    linear-gradient(135deg, var(--blue), var(--blue-dark));
}
.cta-band::before { content:""; position:absolute; inset:0; background:url("assets/img/pattern-blue.png") center/cover; opacity:0.12; mix-blend-mode:screen; }
.cta-inner { position: relative; text-align: center; color: #fff; }
.cta-inner h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-inner p { margin-bottom: 1.6rem; opacity: 0.92; }

/* ---------- Contact ---------- */
.contact { padding: 5rem 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; }
.contact-info p { color: var(--muted); margin-bottom: 1.6rem; }
.contact-list { list-style: none; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 0.8rem; color: var(--ink); }
.contact-list a:hover { color: var(--blue); }
.contact-form { background: var(--cream); padding: 2.2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid #d9dcf5; border-radius: 12px;
  font-family: inherit; font-size: 0.95rem; background: #fff; transition: border 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 13, 170, 0.15);
}
.form-note { margin-top: 1rem; color: var(--lime-dark); font-weight: 700; text-align: center; }
.hidden-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.field-consent { display: flex; align-items: flex-start; gap: 0.55rem; margin-bottom: 1.1rem; }
.field-consent input { margin-top: 0.2rem; flex-shrink: 0; width: 1.05rem; height: 1.05rem; accent-color: var(--blue); }
.field-consent label { font-size: 0.82rem; line-height: 1.5; color: #4b5563; }
.field-consent a { color: var(--blue); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #d7daff; padding: 3.5rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { height: 54px; margin-bottom: 0.9rem; }
.footer-brand p { color: #b7bcf0; max-width: 320px; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav h4, .footer-social h4 { color: #fff; margin-bottom: 0.4rem; }
.footer-nav a { color: #b7bcf0; transition: color 0.2s; }
.footer-nav a:hover { color: var(--lime); }
.social-icons { display: flex; gap: 0.7rem; }
.social-icons a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: grid; place-items: center; color: #fff; font-weight: 600; transition: background 0.2s, color 0.2s;
}
.social-icons a:hover { background: var(--lime); color: var(--blue-dark); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: #9aa0e0;
}
.footer-bottom a { color: #9aa0e0; }
.footer-bottom a:hover { color: var(--lime); }
.footer-disclaimer { max-width: 1100px; margin: 0 auto; padding: 1.4rem 1.25rem 0; font-size: 0.78rem; line-height: 1.6; color: #8a90d4; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-desc { color: #cdd1ff !important; font-weight: 600; margin-bottom: 0.9rem; }
.footer-address { font-style: normal; color: #b7bcf0; line-height: 1.7; max-width: 320px; }
.footer-address a { color: #b7bcf0; transition: color 0.2s; }
.footer-address a:hover { color: var(--lime); }

/* ---------- Legal pages ---------- */
.legal-main { max-width: 820px; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; }
.legal-main h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--blue); margin-bottom: 0.4rem; }
.legal-main .legal-updated { color: #6b7280; font-size: 0.9rem; margin-bottom: 2rem; }
.legal-main h2 { color: var(--blue-dark); font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.legal-main p, .legal-main li { color: #374151; line-height: 1.7; margin-bottom: 0.8rem; }
.legal-main ul { padding-left: 1.3rem; margin-bottom: 0.8rem; }
.legal-main a { color: var(--blue); }
.legal-back { display: inline-block; margin-top: 2.5rem; font-weight: 600; color: var(--blue); }
.info-box { background: #f4f6ff; border-left: 4px solid var(--blue); border-radius: 12px; padding: 1.25rem 1.4rem; margin: 1.2rem 0 1.6rem; }
.info-box ul { list-style: none; padding-left: 0; margin: 0; }
.info-box li { margin-bottom: 0.5rem; color: #374151; }
.info-box li strong { color: var(--blue-dark); }
.legal-cta { display: inline-block; margin-top: 0.5rem; }
.legal-main a.btn-primary { color: #fff; }

/* ---------- Aviso curso (portada) ---------- */
.course-banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.6rem 0.9rem; background: var(--blue); color: #fff; text-decoration: none; padding: 0.7rem 1.2rem; font-size: 0.92rem; line-height: 1.3; transition: background 0.2s ease; }
.course-banner:hover { background: var(--blue-dark); }
.course-banner-tag { background: #fff; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 50px; }
.course-banner-text { color: #fff; }
.course-banner-text strong { font-weight: 600; }
.course-banner-cta { font-weight: 600; white-space: nowrap; }
.course-banner-open { background: #0f766e; }
.course-banner-open:hover { background: #115e59; }
.course-banner-open .course-banner-tag { color: #0f766e; }

/* ---------- Curso destacado ---------- */
.curso-destacado { margin: 1.5rem 0 2rem; }
.curso-flyer { display: block; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); max-width: 560px; margin: 0 auto 1.6rem; }
.curso-flyer img { display: block; width: 100%; height: auto; }
.curso-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.9rem; margin: 1.2rem 0 1.6rem; list-style: none; padding: 0; }
.curso-datos li { background: #f4f6ff; border-radius: 12px; padding: 0.9rem 1rem; text-align: center; margin: 0; }
.curso-datos .dato-label { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 0.25rem; }
.curso-datos .dato-valor { display: block; color: var(--blue-dark); font-weight: 600; font-size: 1rem; }
.curso-bonus { position: relative; background: linear-gradient(135deg, #f4f6ff 0%, #eef7ee 100%); border: 1px solid rgba(0,13,170,0.12); border-radius: 14px; padding: 1.6rem 1.4rem 1.3rem; margin: 1.6rem 0; }
.curso-bonus-tag { display: inline-block; background: var(--lime, #b5d334); color: var(--blue-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; padding: 0.3rem 0.8rem; border-radius: 50px; margin-bottom: 0.8rem; }
.curso-bonus p { margin: 0 0 0.6rem; }
.curso-bonus ul { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; }
.curso-bonus li { color: var(--blue-dark); font-weight: 600; margin-bottom: 0.3rem; }
.curso-bonus-cierre { font-style: italic; color: #4b5563; margin-bottom: 0 !important; }
.curso-aviso-pro { background: #fff7ed; border: 1px solid #fdba74; border-left: 4px solid #f97316; border-radius: 8px; padding: 0.85rem 1rem; font-size: 0.9rem; color: #7c2d12; margin: 0 0 1.4rem; }
.curso-aviso-abierto { background: #ecfdf5; border: 1px solid #6ee7b7; border-left: 4px solid #10b981; border-radius: 8px; padding: 0.85rem 1rem; font-size: 0.9rem; color: #065f46; margin: 0 0 1.4rem; }
.curso-sub { margin: 1.6rem 0 0.6rem; color: var(--blue-dark); }
.curso-lista { margin: 0 0 1.4rem; padding-left: 1.2rem; }
.curso-lista li { margin-bottom: 0.5rem; }
.curso-cupo { text-align: center; font-weight: 600; color: var(--blue-dark); margin: 0.5rem 0 1.4rem; }
.curso-cta { text-align: center; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.curso-cta .legal-cta { margin-top: 0; }

/* ---------- Semblanza ---------- */
.semblanza-head { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.semblanza-photo { margin: 0; flex-shrink: 0; }
.semblanza-head h1 { margin: 0; }
.team-card .link-arrow { margin-top: 0.7rem; display: inline-block; }
.semblanza-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.5rem 0 1rem; }

/* ---------- Recursos / Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.video-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.video-embed { position: relative; width: 100%; padding-top: 56.25%; background: #eef1ff; border-radius: 12px; overflow: hidden; margin: 1.2rem 0 2rem; box-shadow: 0 8px 24px rgba(11,37,120,0.12); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .video-body { padding: 1.1rem 1.3rem 1.4rem; }
.video-card h3 { font-size: 1.1rem; color: var(--blue-dark); margin-bottom: 0.35rem; }
.video-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.video-empty { background: #f4f6ff; border: 1px dashed #b9c0f0; border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; color: #5a61a0; margin-top: 2rem; }
@media (max-width: 720px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; order: -1; }
  .service-grid, .team-grid, .testi-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav {
    position: fixed; top: 60px; right: 0; height: calc(100vh - 60px); width: 75%;
    max-width: 300px; background: #fff; flex-direction: column; align-items: flex-start;
    padding: 2rem 1.5rem; gap: 1.2rem; transform: translateX(100%); transition: transform 0.3s; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .module-grid { grid-template-columns: 1fr; }
}
