/* ================================================
   CISAN · Taller IA Generativa  v3
   — centrado hero, 3D flip cards, 3D precio,
     animaciones universales al scroll
   ================================================ */
@charset "UTF-8";

:root {
  --azul:        #114596;
  --azul-dark:   #0a2d6b;
  --azul-light:  #1e5bb5;
  --azul-glow:   rgba(17,69,150,.6);
  --verde:       #139b55;
  --verde-glow:  rgba(19,155,85,.45);
  --rojo:        #f24a3c;
  --gold:        #d4a83a;
  --gold-light:  #f0c84e;
  --gold-glow:   rgba(212,168,58,.4);

  --bg:          #060c18;
  --bg-card:     #0c1828;
  --bg-card2:    #0f1e33;
  --border:      rgba(255,255,255,.07);
  --border2:     rgba(255,255,255,.13);
  --text:        #e2e8f5;
  --text-muted:  #8292b0;
  --white:       #ffffff;

  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Exo 2', sans-serif;
  --font-ui:     'Poppins', sans-serif;
  --section-py:  clamp(70px, 8vw, 108px);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════
   KEYFRAMES
═══════════════════════════════════ */
@keyframes fadeUp    { from{opacity:0;transform:translateY(36px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeDown  { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeLeft  { from{opacity:0;transform:translateX(-32px)} to{opacity:1;transform:translateX(0)} }
@keyframes fadeRight { from{opacity:0;transform:translateX(32px)} to{opacity:1;transform:translateX(0)} }
@keyframes scalePop  { from{opacity:0;transform:scale(.85)} to{opacity:1;transform:scale(1)} }
@keyframes float     { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes ring1     { 0%,100%{transform:translate(-50%,-50%) scale(1);opacity:.5} 50%{transform:translate(-50%,-50%) scale(1.1);opacity:.15} }
@keyframes ring2     { 0%,100%{transform:translate(-50%,-50%) scale(1);opacity:.3} 50%{transform:translate(-50%,-50%) scale(1.2);opacity:.07} }
@keyframes scroll-hint { 0%,100%{transform:translateY(0);opacity:.6} 50%{transform:translateY(9px);opacity:1} }
@keyframes glowPulse { 0%,100%{opacity:.45} 50%{opacity:1} }
@keyframes shimmerX  { 0%{transform:translateX(-120%)} 100%{transform:translateX(120%)} }
@keyframes borderRot { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }
@keyframes countBounce { 0%{transform:scale(1)} 50%{transform:scale(1.18)} 100%{transform:scale(1)} }

/* ═══════════════════════════════════
   HERO ANIMATION (initial load)
═══════════════════════════════════ */
.anim-hero {
  opacity: 0;
  animation: fadeUp .85s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(var(--i, 0) * .18s + .1s);
}

/* ═══════════════════════════════════
   UNIVERSAL SCROLL ANIMATIONS
   data-aos attribute on any element
═══════════════════════════════════ */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--aos-delay, 0s);
}
[data-aos].aos-in {
  opacity: 1;
  transform: none;
}
/* Special variants */
[data-aos="fade-left"]  { transform: translateX(-30px); }
[data-aos="fade-right"] { transform: translateX(30px);  }
[data-aos="scale"]      { transform: scale(.88);        }
[data-aos="fade-left"].aos-in,
[data-aos="fade-right"].aos-in,
[data-aos="scale"].aos-in { transform: none; }

/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
.navbar-curso {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  transition: background .35s, box-shadow .35s;
}
.navbar-curso.scrolled {
  background: rgba(6,12,24,.94);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 6px 28px rgba(0,0,0,.55);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 13px 28px;
  gap: 20px;
}
.navbar-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 6px 14px;
  transition: transform .3s, box-shadow .3s;
}
.navbar-logos:hover { transform: scale(1.03); box-shadow: 0 0 16px rgba(255,255,255,.07); }
.navbar-logo {
  height: 38px; width: auto;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.08));
  transition: filter .3s;
}
.navbar-logo:hover { filter: drop-shadow(0 0 10px rgba(255,255,255,.22)); }
.navbar-links { display: flex; align-items: center; gap: 26px; }
.navbar-links a {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s;
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--white); }
.btn-nav-cta {
  background: var(--azul) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 7px;
  box-shadow: 0 0 0 0 var(--azul-glow);
  transition: background .25s, transform .2s, box-shadow .25s !important;
}
.btn-nav-cta:hover {
  background: var(--azul-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 20px var(--azul-glow) !important;
}
.navbar-toggler-curso {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.navbar-toggler-curso span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.navbar-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 28px 20px;
  background: rgba(6,12,24,.97);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
}
.navbar-mobile a {
  padding: 12px 0;
  font-family: var(--font-ui); font-size: .9rem; font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.navbar-mobile a:last-child { border-bottom: none; }
.navbar-mobile a:hover { color: var(--white); }
.navbar-mobile.open  { display: flex; }
@media (max-width: 780px) {
  .navbar-links { display: none; }
  .navbar-toggler-curso { display: flex; }
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 65% at 50% 45%, rgba(17,69,150,.48) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 80% 70%, rgba(19,155,85,.1) 0%, transparent 55%),
    linear-gradient(180deg, rgba(6,12,24,.2) 0%, rgba(6,12,24,.75) 80%, var(--bg) 100%);
  z-index: 1;
}

/* ← CENTRADO COMPLETO */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 130px 28px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(17,69,150,.3);
  border: 1px solid rgba(77,159,255,.4);
  backdrop-filter: blur(10px);
  color: #7eaaff;
  font-family: var(--font-ui); font-size: .77rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 100px; margin-bottom: 28px;
}

/* Banner */
.hero-banner-placeholder,
.hero-banner-img {
  width: 100%; max-width: 1150px; margin-bottom: 28px;
}
.hero-banner-placeholder {
  height: 400px;
  border: 2px dashed rgba(77,159,255,.32);
  border-radius: 18px;
  background: rgba(17,69,150,.07);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  transition: border-color .3s;
}
.hero-banner-placeholder::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(77,159,255,.07), transparent);
  animation: shimmerX 2.8s ease-in-out infinite;
}
.hero-banner-placeholder:hover { border-color: rgba(77,159,255,.55); }
.hero-banner-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(77,159,255,.55); z-index: 1;
}
.hero-banner-inner i    { font-size: 2.2rem; }
.hero-banner-inner span { font-family: var(--font-ui); font-size: .95rem; font-weight: 600; }
.hero-banner-inner small { font-family: var(--font-ui); font-size: .74rem; color: rgba(130,146,176,.55); }
.hero-banner-img {
  border-radius: 18px;
  box-shadow: 0 12px 60px rgba(0,0,0,.6), 0 0 0 1px var(--border2);
}

.hero-type {
  font-family: var(--font-ui); font-size: .84rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 36px;
}

/* ─── HERO STATS — centrados y atractivos ─── */
.hero-stats-wrap {
  width: 100%;
  max-width: 900px;
  margin-bottom: 44px;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hstat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.3),
              inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .35s ease, box-shadow .35s ease, border-color .3s;
  cursor: default;
}
.hstat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--azul), #4d9fff, var(--verde));
  opacity: 0;
  transition: opacity .3s;
}
.hstat-card:hover::before { opacity: 1; }
.hstat-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(77,159,255,.3);
  box-shadow: 0 16px 48px rgba(17,69,150,.25),
              inset 0 1px 0 rgba(255,255,255,.12);
}
/* Shimmer on hover */
.hstat-card::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  transition: left .5s ease;
}
.hstat-card:hover::after { left: 150%; }

.hstat-icon {
  font-size: 1.5rem;
  color: #4d9fff;
  width: 46px; height: 46px;
  background: rgba(17,69,150,.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s;
}
.hstat-card:hover .hstat-icon {
  background: rgba(17,69,150,.36);
  transform: rotate(-8deg) scale(1.1);
}

.hstat-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.hstat-val {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--white);
}
.hstat-val.counting { animation: countBounce .25s ease; }
.hstat-unit {
  font-family: var(--font-ui);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #4d9fff;
}
.hstat-label {
  font-family: var(--font-ui);
  font-size: .68rem; color: var(--text-muted);
}

/* Mini progress bar inside each stat card */
.hstat-bar {
  width: 100%; height: 3px;
  background: rgba(255,255,255,.07);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 4px;
}
.hstat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--azul), #4d9fff);
  border-radius: 100px;
  width: 0;
  transition: width 1.4s cubic-bezier(.22,1,.36,1);
}

/* ─── Hero CTAs — centrados ─── */
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary-curso {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--azul); color: var(--white);
  font-family: var(--font-ui); font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  padding: 15px 34px; border-radius: 12px;
  border: 2px solid var(--azul);
  box-shadow: 0 4px 24px rgba(17,69,150,.5), 0 0 0 0 rgba(17,69,150,.2);
  transition: background .25s, transform .2s, box-shadow .3s;
}
.btn-primary-curso:hover {
  background: var(--azul-light); border-color: var(--azul-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(17,69,150,.65), 0 0 0 8px rgba(17,69,150,.12);
  color: var(--white);
}
.btn-ghost-curso {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-muted);
  font-family: var(--font-ui); font-size: .9rem; font-weight: 500;
  padding: 15px 30px; border-radius: 12px;
  border: 2px solid var(--border2);
  transition: color .25s, border-color .25s, transform .2s;
}
.btn-ghost-curso:hover { color: var(--white); border-color: rgba(255,255,255,.3); transform: translateY(-3px); }

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--text-muted);
  font-family: var(--font-ui); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  animation: scroll-hint 2s ease-in-out infinite;
}

/* ═══════════════════════════════════
   DATOS RÁPIDOS
═══════════════════════════════════ */
.datos-rapidos {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}
.datos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.dato-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg-card);
  padding: 26px 28px;
  transition: background .25s;
}
.dato-card:hover { background: var(--bg-card2); }
.dato-icon {
  font-size: 1.3rem; color: #4d9fff;
  width: 44px; height: 44px;
  background: rgba(17,69,150,.18); border-radius: 11px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .25s, transform .3s;
}
.dato-card:hover .dato-icon { background: rgba(17,69,150,.32); transform: scale(1.1) rotate(-5deg); }
.dato-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dato-label {
  font-family: var(--font-ui); font-size: .67rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--text-muted);
}
.dato-info strong { font-family: var(--font-head); font-size: .9rem; font-weight: 700; color: var(--white); }
.dato-info small  { font-size: .76rem; color: var(--verde); font-weight: 500; }
.zoom-dates { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.zoom-date-row {
  display: flex; align-items: center; gap: 8px;
  font-size: .84rem; color: var(--text);
}
.zoom-date-row strong { color: var(--white); }
.zoom-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; flex-shrink: 0;
}
.zoom-dot--verde { background: var(--verde); box-shadow: 0 0 6px var(--verde-glow); }
.zoom-dot--azul  { background: #4d9fff;      box-shadow: 0 0 6px rgba(77,159,255,.5); }

/* ═══════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ui); font-size: .71rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: #4d9fff;
  margin-bottom: 14px;
  background: rgba(17,69,150,.12);
  border: 1px solid rgba(77,159,255,.22);
  padding: 6px 18px; border-radius: 100px;
}
.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
  color: var(--white); letter-spacing: -.01em;
}

/* ═══════════════════════════════════
   OBJETIVO
═══════════════════════════════════ */
.section-objetivo { padding: var(--section-py) 0; background: var(--bg); }
.objetivo-card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: 22px; padding: 52px 56px; overflow: hidden;
  max-width: 920px; margin: 0 auto;
  box-shadow: 0 4px 0 rgba(0,0,0,.4), 0 20px 60px rgba(17,69,150,.08);
  transition: transform .4s, box-shadow .4s;
}
.objetivo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 0 rgba(0,0,0,.35), 0 32px 72px rgba(17,69,150,.16);
}
.objetivo-deco {
  position: absolute; top: -70px; right: -70px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(17,69,150,.28) 0%, transparent 70%);
  pointer-events: none;
}
.objetivo-deco--2 {
  top: auto; right: auto; bottom: -50px; left: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(19,155,85,.1) 0%, transparent 70%);
}
.objetivo-text {
  font-size: 1.1rem; line-height: 1.82; color: var(--text);
  margin-bottom: 32px; position: relative; z-index: 1;
}
.objetivo-text strong { color: var(--white); }
.objetivo-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  position: relative; z-index: 1;
}
.objetivo-chips span {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(17,69,150,.18);
  border: 1px solid rgba(77,159,255,.24);
  color: #a8cbff;
  font-family: var(--font-ui); font-size: .77rem; font-weight: 500;
  padding: 7px 16px; border-radius: 100px;
  transition: background .25s, transform .25s, border-color .25s;
}
.objetivo-chips span:hover {
  background: rgba(17,69,150,.32); border-color: rgba(77,159,255,.5);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════
   TEMARIO
═══════════════════════════════════ */
.section-temario {
  padding: var(--section-py) 0; background: var(--bg-card); position: relative;
}
.temario-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(17,69,150,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,69,150,.05) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}
.temario-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(17,69,150,.1) 0%, transparent 70%);
  pointer-events: none; animation: glowPulse 4s ease-in-out infinite;
}
.modulos-grid {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 920px; margin: 0 auto;
}
.modulo-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.modulo-card:hover {
  border-color: rgba(77,159,255,.35);
  box-shadow: 0 8px 36px rgba(17,69,150,.18);
  transform: translateY(-2px) scale(1.005);
}
.modulo-header {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 28px; cursor: pointer; user-select: none;
}
.modulo-num {
  font-family: var(--font-head); font-weight: 900; font-size: 2.1rem;
  color: rgba(17,69,150,.3); line-height: 1; flex-shrink: 0; width: 54px;
  transition: color .3s, text-shadow .3s;
}
.modulo-card.open .modulo-num, .modulo-card:hover .modulo-num {
  color: var(--azul-light); text-shadow: 0 0 20px rgba(30,91,181,.5);
}
.modulo-title-wrap { flex: 1; }
.modulo-title-wrap h3 {
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  color: var(--white); margin: 0; line-height: 1.35;
}
.modulo-toggle {
  background: none; border: none; color: var(--text-muted); font-size: 1rem;
  cursor: pointer; padding: 6px 8px; border-radius: 8px;
  transition: transform .38s cubic-bezier(.34,1.56,.64,1), color .25s, background .2s;
}
.modulo-toggle:hover { background: rgba(255,255,255,.05); }
.modulo-toggle.open  { transform: rotate(180deg); color: #4d9fff; }
.modulo-body {
  max-height: 0; overflow: hidden; opacity: 0;
  padding: 0 28px 0 102px;
  transition: max-height .45s cubic-bezier(.22,1,.36,1),
              opacity .35s ease, padding .35s ease;
}
.modulo-body.open {
  max-height: 400px; opacity: 1;
  padding: 0 28px 24px 102px;
}
.modulo-body ul { list-style: none; display: flex; flex-direction: column; gap: 11px; padding-top: 4px; }
.modulo-body ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .91rem; color: var(--text-muted); line-height: 1.5;
}
.modulo-body ul li i { color: var(--verde); font-size: .82rem; margin-top: 3px; flex-shrink: 0; }
.modulo-body ul li span { flex: 1; }

/* ═══════════════════════════════════
   SOBRE LA ESPECIALISTA
═══════════════════════════════════ */
.section-instructor {
  padding: var(--section-py) 0; background: var(--bg); position: relative;
}
.instructor-glow {
  position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: radial-gradient(ellipse 60% 60% at 90% 50%, rgba(17,69,150,.07) 0%, transparent 70%);
  pointer-events: none;
}
.instructor-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 52px;
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: 24px; padding: 52px; max-width: 1040px; margin: 0 auto;
  box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 24px 64px rgba(0,0,0,.2);
  transition: transform .4s, box-shadow .4s;
}
.instructor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 0 rgba(0,0,0,.3), 0 36px 80px rgba(17,69,150,.14);
}
.instructor-avatar-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative;
}
.avatar-photo-placeholder, .avatar-photo {
  width: 160px; height: 160px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.avatar-photo-placeholder {
  background: linear-gradient(145deg, var(--azul-dark) 0%, var(--azul) 100%);
  color: rgba(255,255,255,.45); gap: 6px;
  border: 2px dashed rgba(77,159,255,.3);
  animation: float 4.5s ease-in-out infinite;
}
.avatar-photo-placeholder i     { font-size: 2.8rem; }
.avatar-photo-placeholder small { font-family: var(--font-ui); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.avatar-photo { object-fit: cover; box-shadow: 0 8px 32px rgba(0,0,0,.45); animation: float 4.5s ease-in-out infinite; }
.avatar-ring {
  position: absolute; border-radius: 50%; border: 1.5px solid; pointer-events: none; z-index: 0;
}
.avatar-ring--1 { width: 188px; height: 188px; top: 50%; left: 50%; border-color: rgba(77,159,255,.35); animation: ring1 3.2s ease-in-out infinite; }
.avatar-ring--2 { width: 220px; height: 220px; top: 50%; left: 50%; border-color: rgba(77,159,255,.16); animation: ring2 3.2s ease-in-out infinite .6s; }
.instructor-degrees { display: flex; flex-direction: column; gap: 8px; text-align: center; position: relative; z-index: 1; }
.instructor-degrees span {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  font-family: var(--font-ui); font-size: .71rem; font-weight: 500; color: var(--text-muted);
}
.instructor-degrees span i { color: var(--azul-light); }
.instructor-name { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; color: var(--white); margin-bottom: 22px; line-height: 1.2; }
.instructor-bio p { font-size: .92rem; color: var(--text-muted); line-height: 1.78; margin-bottom: 16px; }
.instructor-bio p:last-child { margin-bottom: 0; }
.instructor-bio strong { color: var(--text); }

/* ═══════════════════════════════════
   3D FLIP CARDS (Requisitos)
═══════════════════════════════════ */
.section-req-eval {
  padding: var(--section-py) 0; background: var(--bg-card); position: relative;
}
.req-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 65% at 92% 55%, rgba(19,155,85,.04) 0%, transparent 60%);
  pointer-events: none;
}

.req-eval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Scene — sets the 3D perspective */
.card3d-scene {
  perspective: 1000px;
  height: 380px;
}

/* The flipper */
.card3d {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.34,1.4,.64,1);
  cursor: pointer;
}
.card3d-scene:hover .card3d,
.card3d-scene.flipped .card3d {
  transform: rotateY(180deg);
}

/* Front & back shared */
.card3d-front,
.card3d-back {
  position: absolute; inset: 0;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 36px 32px;
  overflow: hidden;
}

/* FRONT */
.card3d-front {
  background: var(--bg);
  border: 1px solid var(--border2);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; text-align: center;
  box-shadow: 0 6px 0 rgba(0,0,0,.4), 0 20px 56px rgba(0,0,0,.25);
}
.card3d-front::after {
  content: '';
  position: absolute; inset: 0; border-radius: 22px;
  background: linear-gradient(135deg,
    rgba(255,255,255,.04) 0%, transparent 50%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}
.card3d-front h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem;
  color: var(--white); margin: 0;
}

/* Icon */
.card3d-icon {
  width: 64px; height: 64px;
  background: rgba(17,69,150,.2); border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #4d9fff;
  box-shadow: 0 6px 24px rgba(17,69,150,.3);
  transition: transform .3s;
}
.card3d-scene:hover .card3d-icon { transform: scale(1.1) rotate(-6deg); }
.card3d-icon--verde { background: rgba(19,155,85,.2); color: #3fe899; box-shadow: 0 6px 24px rgba(19,155,85,.25); }
.card3d-icon--gold  { background: rgba(212,168,58,.18); color: var(--gold-light); box-shadow: 0 6px 24px rgba(212,168,58,.22); }

.card3d-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.card3d-big  { font-family: var(--font-head); font-weight: 900; font-size: 2.8rem; color: var(--verde); line-height: 1; text-shadow: 0 0 28px rgba(19,155,85,.4); }
.card3d-sub  { font-family: var(--font-ui); font-size: .75rem; color: var(--text-muted); }

.tech-icons-preview {
  display: flex; gap: 14px; font-size: 1.8rem; color: rgba(77,159,255,.55);
}

.card3d-hint {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 500;
  color: rgba(130,146,176,.5); letter-spacing: .06em;
  margin: 0; display: flex; align-items: center; gap: 5px;
}
/* Animated border glow on front */
.card3d-front::before {
  content: '';
  position: absolute; inset: -1px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(17,69,150,.4), rgba(77,159,255,.2), rgba(17,69,150,.4));
  z-index: -1;
  opacity: 0;
  transition: opacity .4s;
}
.card3d-scene:hover .card3d-front::before { opacity: 1; }

/* BACK */
.card3d-back {
  background: linear-gradient(145deg, var(--bg-card2) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(77,159,255,.25);
  transform: rotateY(180deg);
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto;
  box-shadow: 0 6px 0 rgba(0,0,0,.4), 0 20px 56px rgba(17,69,150,.18);
}
.card3d-back::after {
  content: '';
  position: absolute; inset: 0; border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.03) 0%, transparent 60%);
  pointer-events: none;
}

/* Lists inside back */
.req-dirigido {
  font-size: .83rem; color: #a8cbff;
  background: rgba(17,69,150,.18); border-left: 3px solid var(--azul-light);
  padding: 10px 13px; border-radius: 0 8px 8px 0; line-height: 1.5;
}
.req-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.req-list li { display: flex; align-items: flex-start; gap: 9px; line-height: 1.45; }
.req-list li > i { color: var(--verde); font-size: .88rem; flex-shrink: 0; margin-top: 2px; }
.req-list li > span { font-size: .84rem; color: var(--text-muted); flex: 1; }
.req-list li > span strong { color: var(--text); }
.req-list--tech li > i   { color: #4d9fff; font-size: 1.05rem; }
.req-tech-text { display: flex; flex-direction: column; gap: 2px; }
.req-tech-text strong { font-size: .86rem; color: var(--white); }
.req-tech-text span   { font-size: .81rem; color: var(--text-muted); line-height: 1.4; }

/* Progress inside back */
.eval-progress { margin-top: auto; }
.eval-progress-bar { height: 7px; background: rgba(255,255,255,.06); border-radius: 100px; overflow: hidden; }
.eval-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--verde), #35e88a);
  border-radius: 100px;
  transition: width 1.3s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 12px rgba(19,155,85,.5);
}
.accent-verde { color: var(--verde) !important; }

/* ═══════════════════════════════════
   3D PRICE CARDS
═══════════════════════════════════ */
.section-inscripcion {
  padding: var(--section-py) 0; background: var(--bg); position: relative;
}
.inscripcion-glow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse, rgba(17,69,150,.1) 0%, transparent 70%);
  pointer-events: none;
}
.inscripcion-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; max-width: 1140px; margin: 0 auto; align-items: start;
}

/* 3D Price card wrapper — perspective holder */
.precio3d-wrap {
  perspective: 900px;
}
.precio3d {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 0;
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  box-shadow:
    0 6px 0 rgba(0,0,0,.5),
    0 20px 60px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform .4s cubic-bezier(.22,1,.36,1),
              box-shadow .4s, border-color .3s;
}
.precio3d::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--azul), #4d9fff);
  opacity: 0; transition: opacity .35s;
}
.precio3d-wrap:hover .precio3d::before { opacity: 1; }
.precio3d-wrap:hover .precio3d {
  transform: perspective(900px) rotateX(-4deg) rotateY(3deg) translateY(-8px);
  box-shadow:
    0 18px 0 rgba(0,0,0,.4),
    0 44px 80px rgba(17,69,150,.25),
    inset 0 1px 0 rgba(255,255,255,.1);
  border-color: rgba(77,159,255,.35);
}

/* Gold variant */
.precio3d--gold {
  background: linear-gradient(155deg, rgba(212,168,58,.07) 0%, var(--bg-card) 45%);
  border-color: rgba(212,168,58,.35);
}
.precio3d--gold::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.precio3d-wrap--gold:hover .precio3d--gold {
  border-color: rgba(212,168,58,.65);
  box-shadow: 0 18px 0 rgba(0,0,0,.38), 0 44px 80px rgba(212,168,58,.14);
  transform: perspective(900px) rotateX(-4deg) rotateY(-3deg) translateY(-10px);
}

/* Shine overlay */
.precio3d-shine {
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transition: left .6s ease;
  pointer-events: none;
}
.precio3d-wrap:hover .precio3d-shine { left: 160%; }

/* Ribbon */
.precio3d-ribbon {
  position: absolute; top: 16px; right: -10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #1a1000;
  font-family: var(--font-ui); font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 20px 4px 14px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
  box-shadow: 0 4px 16px rgba(212,168,58,.4);
}

.precio3d-badge {
  display: inline-block;
  font-family: var(--font-ui); font-size: .69rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,.05);
  padding: 5px 13px; border-radius: 100px; border: 1px solid var(--border);
  margin-bottom: 18px;
}
.precio3d-badge--gold { color: var(--gold-light); background: rgba(212,168,58,.1); border-color: rgba(212,168,58,.28); }

.precio3d-top { display: flex; flex-direction: column; }

.precio3d-amount {
  display: flex; align-items: baseline; gap: 2px; line-height: 1; margin-bottom: 4px;
}
.precio3d-currency { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--white); }
.precio3d-number   { font-family: var(--font-head); font-weight: 900; font-size: 3rem; color: var(--white); }
.precio3d-cents    { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--white); }
.precio3d-currency--gold, .precio3d-number--gold, .precio3d-cents--gold { color: var(--gold-light); }
.precio3d-amount--strike .precio3d-currency,
.precio3d-amount--strike .precio3d-number,
.precio3d-amount--strike .precio3d-cents {
  color: var(--text-muted); opacity: .4;
  font-size: 1rem; font-weight: 600;
  text-decoration: line-through;
}
.precio3d-moneda { font-family: var(--font-ui); font-size: .72rem; color: var(--text-muted); letter-spacing: .08em; margin-bottom: 20px; }

.precio3d-divider {
  height: 1px; background: var(--border); margin-bottom: 20px;
}
.precio3d-divider--gold { background: rgba(212,168,58,.25); }

.precio3d-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.precio3d-features li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .87rem; color: var(--text-muted); line-height: 1.4;
}
.precio3d-features li i { color: var(--verde); flex-shrink: 0; margin-top: 2px; }
.precio3d-features li > span { flex: 1; }
.precio3d-features strong { color: var(--text); }
.precio3d-feature--star i { color: var(--gold-light); }

/* Contacto 3D */
.contacto3d-wrap { perspective: 900px; }
.contacto3d {
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: 24px; padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
  box-shadow: 0 6px 0 rgba(0,0,0,.5), 0 20px 60px rgba(0,0,0,.3);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s, border-color .3s;
  transform-style: preserve-3d;
}
.contacto3d::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--verde), #35e88a);
  opacity: 0; transition: opacity .35s;
}
.contacto3d-wrap:hover .contacto3d::before { opacity: 1; }
.contacto3d-wrap:hover .contacto3d {
  transform: perspective(900px) rotateX(-4deg) rotateY(-3deg) translateY(-8px);
  box-shadow: 0 18px 0 rgba(0,0,0,.4), 0 44px 80px rgba(19,155,85,.14);
  border-color: rgba(19,155,85,.4);
}
.contacto3d-shine {
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  transition: left .6s ease; pointer-events: none;
}
.contacto3d-wrap:hover .contacto3d-shine { left: 160%; }

.contacto3d-icon {
  font-size: 1.7rem; color: var(--verde);
  width: 52px; height: 52px;
  background: rgba(19,155,85,.14); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s;
  box-shadow: 0 4px 16px rgba(19,155,85,.2);
}
.contacto3d-wrap:hover .contacto3d-icon { background: rgba(19,155,85,.24); transform: scale(1.1) rotate(-5deg); }

.contacto3d h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--white); }
.contacto3d > p { font-size: .87rem; color: var(--text-muted); line-height: 1.6; }

.contacto-email {
  display: flex; align-items: center; gap: 8px;
  background: rgba(19,155,85,.1); border: 1px solid rgba(19,155,85,.28);
  color: #5de0a0;
  font-family: var(--font-ui); font-size: .84rem; font-weight: 600;
  padding: 13px 18px; border-radius: 11px;
  transition: background .25s, color .25s, box-shadow .25s;
  word-break: break-all; overflow-wrap: anywhere;
}
.contacto-email:hover {
  background: rgba(19,155,85,.2); color: var(--white);
  box-shadow: 0 0 20px rgba(19,155,85,.25);
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer-curso { background: #030810; border-top: 1px solid var(--border); }
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 40px;
  align-items: center; padding: 40px 28px;
}
.footer-brand-logos { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-logo-img { height: 36px; width: auto; opacity: .75; transition: opacity .25s; }
.footer-logo-img:hover { opacity: 1; }
.footer-logos p { font-size: .78rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.footer-curso-info { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.footer-curso-info strong { font-family: var(--font-head); font-size: .87rem; font-weight: 700; color: var(--text); }
.footer-curso-info span   { font-size: .77rem; color: var(--text-muted); }
.footer-contact { text-align: right; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .8rem; transition: color .2s; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; padding: 14px; }
.footer-bottom p { font-size: .73rem; color: rgba(130,146,176,.4); }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 960px) {
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .instructor-card { grid-template-columns: 1fr; padding: 40px 28px; }
  .instructor-avatar-wrap { flex-direction: row; justify-content: flex-start; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; padding: 30px 20px; }
  .footer-contact { text-align: center; }
  .footer-brand-logos { justify-content: center; }
}
@media (max-width: 700px) {
  .hero-stats-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-banner-placeholder { height: 200px; }
  .objetivo-card  { padding: 32px 22px; }
  .modulo-body.open { padding-left: 28px; }
  .modulo-num  { font-size: 1.45rem; width: 36px; }
  .req-eval-grid, .inscripcion-grid { grid-template-columns: 1fr; }
  .card3d-scene { height: auto; }
  .card3d { transform-style: flat !important; }
  .card3d-front { position: relative; transform: none !important; backface-visibility: visible !important; }
  .card3d-back  {
    position: relative; transform: none !important; backface-visibility: visible !important;
    border-top: 1px solid var(--border); border-radius: 0 0 22px 22px;
  }
  .card3d-front { border-radius: 22px 22px 0 0; }
  .card3d-scene:hover .card3d { transform: none !important; }
  .card3d-hint { display: none; }
}
@media (max-width: 480px) {
  .hero-stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .navbar-logos .navbar-logo { height: 30px; }
}


.avatar-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
              0 0 0 4px rgba(17, 69, 150, 0.4);
  animation: float 4.5s ease-in-out infinite;
}
