/* ============================================
   CEBA SAN ANDRÉS — Design System
   ============================================ */

:root{
  --navy:#0E1E4E;
  --navy-dark:#081334;
  --navy-light:#16307A;
  --gold:#F5A623;
  --gold-dark:#D98E12;
  --whatsapp:#25D366;
  --whatsapp-dark:#1DA851;
  --bg-light:#EEF3FB;
  --bg-lighter:#F6F9FD;
  --white:#FFFFFF;
  --ink:#101A33;
  --text-body:#4B5768;
  --text-muted:#7A8599;
  --border:#E3E9F3;
  --footer-bg:#080B14;

  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:24px;
  --shadow-sm:0 2px 10px rgba(14,30,78,.06);
  --shadow-md:0 10px 30px rgba(14,30,78,.10);
  --shadow-lg:0 20px 50px rgba(14,30,78,.14);

  --font-head:'Poppins', 'Segoe UI', sans-serif;
  --font-body:'Inter', 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text-body);
  background:var(--bg-lighter);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--navy);
  margin:0 0 .5em;
  line-height:1.2;
}
p{ margin:0 0 1em; }

.container{
  width:100%;
  max-width:1240px;
  margin:0 auto;
  padding:0 24px;
}

/* ============ Buttons ============ */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  justify-content:center;
  padding:15px 28px;
  border-radius:50px;
  font-weight:700;
  font-size:15px;
  border:2px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn svg{ width:18px; height:18px; flex-shrink:0; }

.btn-gold{
  background:var(--gold);
  color:var(--navy-dark);
  text-transform:uppercase;
  letter-spacing:.3px;
  box-shadow:0 8px 20px rgba(245,166,35,.35);
}
.btn-gold:hover{ background:var(--gold-dark); }

.btn-outline-white{
  background:transparent;
  border-color:rgba(255,255,255,.5);
  color:#fff;
}
.btn-outline-white:hover{ background:rgba(255,255,255,.12); border-color:#fff; }

.btn-navy{
  background:var(--navy);
  color:#fff;
}
.btn-navy:hover{ background:var(--navy-light); }

.btn-white{
  background:#fff;
  color:var(--navy);
}
.btn-white:hover{ background:var(--bg-light); }

.btn-whatsapp{
  background:var(--whatsapp);
  color:#fff;
  padding:12px 24px;
  box-shadow:0 8px 18px rgba(37,211,102,.35);
}
.btn-whatsapp:hover{ background:var(--whatsapp-dark); }

.btn-outline-navy{
  background:transparent;
  border-color:var(--navy);
  color:var(--navy);
}
.btn-outline-navy:hover{ background:var(--navy); color:#fff; }

.btn-sm{ padding:11px 20px; font-size:14px; }

/* ============ Announcement bar (inicio de clases) ============ */
.announce-bar{
  background:var(--gold);
  color:var(--navy-dark);
  text-align:center;
  padding:11px 20px;
  font-size:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.announce-bar svg{ width:18px; height:18px; flex-shrink:0; }
.announce-bar strong{ font-weight:800; }
.announce-bar a{
  display:inline-flex;
  align-items:center;
  gap:4px;
  text-decoration:underline;
  font-weight:800;
  color:var(--navy-dark);
  white-space:nowrap;
}
.announce-bar a:hover{ color:var(--navy); }

/* ============ Header / Navbar ============ */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:#fff;
  border-bottom:1px solid var(--border);
}
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
  gap:24px;
  max-width:1340px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo svg{ width:48px; height:48px; flex-shrink:0; }
.logo img{ height:54px; width:auto; flex-shrink:0; }
.logo-text{ display:flex; flex-direction:column; line-height:1.15; }
.logo-text .l1{ font-family:var(--font-head); font-weight:600; font-size:13px; color:var(--navy); letter-spacing:1px; }
.logo-text .l2{ font-family:var(--font-head); font-weight:800; font-size:19px; color:var(--navy); letter-spacing:.3px; }
.logo-text .l3{ font-family:Georgia, 'Times New Roman', serif; font-style:italic; font-size:12px; color:var(--navy-light); }

.nav-links{
  display:flex;
  align-items:center;
  gap:2px;
  flex-wrap:wrap;
}
.nav-links a{
  padding:10px 14px;
  border-radius:50px;
  font-weight:600;
  font-size:14px;
  white-space:nowrap;
  color:var(--ink);
  transition:background .15s ease, color .15s ease;
}
.nav-links a:hover{ background:var(--bg-light); }
.nav-links a.active{
  background:var(--navy);
  color:#fff;
}
.nav-right{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none;
  background:none;
  border:none;
  padding:6px;
}
.nav-toggle svg{ width:26px; height:26px; color:var(--navy); }

/* ============ Hero ============ */
.hero{
  position:relative;
  background:linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  overflow:hidden;
  padding:64px 0 120px;
}
.hero::before{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:220px; height:220px;
  background-image:radial-gradient(rgba(255,255,255,.18) 2px, transparent 2px);
  background-size:16px 16px;
  opacity:.5;
  pointer-events:none;
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
  position:relative;
  z-index:1;
}
.hero-eyebrow{
  color:var(--gold);
  font-weight:700;
  letter-spacing:1.5px;
  font-size:13.5px;
  margin-bottom:14px;
  text-transform:uppercase;
}
.hero h1{
  color:#fff;
  font-size:clamp(30px, 4vw, 46px);
  font-weight:800;
  margin-bottom:18px;
}
.hero h1 .accent{ color:var(--gold); }
.hero-sub{
  color:rgba(255,255,255,.85);
  font-size:17px;
  max-width:480px;
  margin-bottom:26px;
}
.hero-features{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  margin-bottom:30px;
}
.hero-feature{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-size:13.5px;
  font-weight:600;
}
.hero-feature svg{ width:26px; height:26px; color:var(--gold); flex-shrink:0; }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:16px; }

.hero-bg-photo{
  position:absolute;
  top:0; right:0; bottom:0;
  width:60%;
  z-index:0;
  overflow:hidden;
}
.hero-bg-photo .img-placeholder{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-height:0;
  border-radius:0;
}
.hero-bg-fade{
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,
    var(--navy) 0%,
    var(--navy) 15%,
    rgba(14,30,78,.6) 35%,
    rgba(14,30,78,.15) 55%,
    rgba(14,30,78,0) 75%);
  pointer-events:none;
}
.hero-media{ position:relative; align-self:start; }
.hero-media .hero-media-mobile-img{ display:none; }
.hero-quote{
  position:absolute;
  top:-10px;
  right:-10px;
  max-width:240px;
  background:var(--navy);
  border:1px solid rgba(255,255,255,.15);
  border-radius:var(--radius-md);
  padding:22px;
  box-shadow:var(--shadow-lg);
  color:#fff;
}
.hero-quote .qmark{ color:var(--gold); font-size:34px; font-family:Georgia,serif; line-height:.5; display:block; margin-bottom:8px; }
.hero-quote p{ font-weight:700; font-size:15px; margin:0; }
.hero-quote .accent{ color:var(--gold); }

@media (max-width:860px){
  .hero-quote{ position:static; margin-top:20px; max-width:none; }
  .hero-bg-photo{ display:none; }
  .hero-media .hero-media-mobile-img{ display:flex; min-height:300px; box-shadow:var(--shadow-lg); }
  .hero-media{ align-self:auto; }
}

/* ============ Stats bar ============ */
.stats-bar{
  position:relative;
  z-index:2;
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  margin:-64px auto 0;
  max-width:1240px;
  padding:30px 20px;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:20px;
}
.stat-item{ display:flex; align-items:center; gap:12px; min-width:0; }
.stat-item > div{ min-width:0; }
.stat-icon{
  width:52px; height:52px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.stat-icon svg{ width:24px; height:24px; }
.stat-item:nth-child(1) .stat-icon{ background:#DCE6FB; } .stat-item:nth-child(1) svg{ color:#3E63C2; }
.stat-item:nth-child(2) .stat-icon{ background:#FBE9D0; } .stat-item:nth-child(2) svg{ color:var(--gold-dark); }
.stat-item:nth-child(3) .stat-icon{ background:#DCE9FB; } .stat-item:nth-child(3) svg{ color:#2E6FC2; }
.stat-item:nth-child(4) .stat-icon{ background:#FCEFD8; } .stat-item:nth-child(4) svg{ color:var(--gold-dark); }
.stat-item:nth-child(5) .stat-icon{ background:#DCE6FB; } .stat-item:nth-child(5) svg{ color:#3E63C2; }
.stat-item b{ display:block; color:var(--navy); font-size:16px; font-family:var(--font-head); }
.stat-item span{ font-size:13.5px; color:var(--text-muted); overflow-wrap:break-word; }

@media (max-width:980px){
  .stats-bar{ grid-template-columns:repeat(3,1fr); margin-top:-40px; }
}
@media (max-width:600px){
  .stats-bar{ grid-template-columns:1fr; gap:18px; }
}

/* ============ Section headers ============ */
.section{ padding:90px 0 70px; }
.section-narrow{ padding:70px 0; }
.section-tag{
  text-align:center;
  color:#3E63C2;
  font-weight:700;
  letter-spacing:1.5px;
  font-size:12.5px;
  text-transform:uppercase;
  margin-bottom:10px;
  position:relative;
}
.section-head{ text-align:center; max-width:640px; margin:0 auto 48px; }
.section-head h2{
  font-size:clamp(26px,3vw,34px);
  font-weight:800;
  position:relative;
  display:inline-block;
  padding-bottom:16px;
}
.section-head h2::after{
  content:"";
  position:absolute;
  bottom:0; left:50%;
  transform:translateX(-50%);
  width:56px; height:4px;
  background:var(--gold);
  border-radius:4px;
}
.section-head p{ color:var(--text-muted); font-size:16px; margin-top:6px; }
.section-head.align-left{ text-align:left; margin:0 0 30px; }
.section-head.align-left h2::after{ left:0; transform:none; }

.eyebrow-left{
  color:var(--gold-dark);
  font-weight:700;
  letter-spacing:1.5px;
  font-size:13px;
  text-transform:uppercase;
  margin-bottom:10px;
}
.rule-gold{
  width:56px; height:4px;
  background:var(--gold);
  border-radius:4px;
  margin-bottom:20px;
}

/* ============ Image placeholder ============ */
.img-placeholder{
  position:relative;
  width:100%;
  min-height:220px;
  border-radius:var(--radius-md);
  background:linear-gradient(135deg,#DCE6FB,#F3E6C8);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  color:#7086B8;
}
.img-placeholder svg{ width:42px; height:42px; opacity:.55; }
.img-placeholder .ph-label{
  position:absolute;
  bottom:10px; left:10px; right:10px;
  background:rgba(14,30,78,.72);
  color:#fff;
  font-size:11.5px;
  padding:6px 10px;
  border-radius:8px;
  text-align:center;
  font-weight:600;
}

/* ============ Generic content card ============ */
.card{
  background:#fff;
  border-radius:var(--radius-md);
  border:1px solid var(--border);
  padding:28px;
}

/* ============ Two-col page intro (inner pages) ============ */
.page-hero{
  background:var(--bg-light);
  padding:56px 0 60px;
}
.page-hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}
.page-hero .img-placeholder{ min-height:340px; box-shadow:var(--shadow-md); }
.page-hero h1{ font-size:clamp(28px,3.6vw,40px); font-weight:800; }
.page-hero p{ font-size:16.5px; }

@media (max-width:860px){
  .page-hero-grid, .hero-grid{ grid-template-columns:1fr; }
  .hero{ padding-bottom:150px; }
}

/* ============ Mission / Vision / Values ============ */
.mvv-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1.3fr;
  gap:22px;
}
.mvv-card{
  background:#fff;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
  border:1px solid var(--border);
  padding:26px;
}
.mvv-icon{
  width:52px; height:52px;
  border-radius:50%;
  background:var(--bg-light);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.mvv-icon svg{ width:24px; height:24px; color:var(--navy); }
.mvv-card h3{ font-size:18px; margin-bottom:10px; }
.mvv-card p{ font-size:14.5px; margin:0; }
.values-list{ display:flex; flex-wrap:wrap; gap:22px; margin-top:6px; }
.value-item{ display:flex; flex-direction:column; align-items:center; gap:8px; width:80px; text-align:center; }
.value-item .v-icon{
  width:52px; height:52px; border-radius:50%;
  background:var(--bg-light);
  display:flex; align-items:center; justify-content:center;
}
.value-item .v-icon svg{ width:22px; height:22px; color:var(--navy); }
.value-item span{ font-size:12.5px; font-weight:600; color:var(--ink); }

@media (max-width:900px){ .mvv-grid{ grid-template-columns:1fr; } }

/* ============ Modalidades split cards ============ */
.modalidad-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
}
.modalidad-card{
  border-radius:var(--radius-lg);
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:300px;
  box-shadow:var(--shadow-md);
}
.modalidad-card.navy{ background:var(--navy); }
.modalidad-card.gold{ background:var(--gold); }
.modalidad-body{ padding:34px 30px; display:flex; flex-direction:column; }
.modalidad-icon{
  width:56px; height:56px;
  border-radius:50%;
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.modalidad-icon svg{ width:26px; height:26px; }
.modalidad-card.navy .modalidad-icon svg{ color:var(--navy); }
.modalidad-card.gold .modalidad-icon svg{ color:var(--gold-dark); }
.modalidad-label{ font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:1px; }
.modalidad-card.navy .modalidad-label{ color:var(--gold); }
.modalidad-card.gold .modalidad-label{ color:var(--navy); }
.modalidad-body h3{ font-size:24px; font-weight:800; margin:2px 0 16px; }
.modalidad-card.navy h3{ color:#fff; }
.modalidad-card.gold h3{ color:var(--navy-dark); }
.modalidad-body ul{ margin-bottom:22px; flex-grow:1; }
.modalidad-body li{ display:flex; align-items:center; gap:10px; font-size:14.5px; font-weight:600; margin-bottom:11px; }
.modalidad-card.navy li{ color:#fff; }
.modalidad-card.gold li{ color:var(--navy-dark); }
.modalidad-body li svg{ width:18px; height:18px; flex-shrink:0; }
.modalidad-card.navy li svg{ color:var(--gold); }
.modalidad-card.gold li svg{ color:var(--navy); }
.modalidad-media{ position:relative; }
.modalidad-media .img-placeholder{ height:100%; min-height:100%; border-radius:0; }

@media (max-width:760px){
  .modalidad-card{ grid-template-columns:1fr; }
  .modalidad-media{ order:-1; min-height:200px; }
  .modalidad-grid{ grid-template-columns:1fr; }
}

/* ============ Beneficios grid ============ */
.beneficios-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.beneficio-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:30px 24px;
  text-align:center;
  transition:box-shadow .2s ease, transform .2s ease;
}
.beneficio-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }
.beneficio-card .b-icon{
  width:64px; height:64px;
  border-radius:50%;
  background:var(--bg-light);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 18px;
}
.beneficio-card .b-icon svg{ width:28px; height:28px; color:var(--navy); }
.beneficio-card h3{ font-size:16.5px; margin-bottom:8px; }
.beneficio-card p{ font-size:13.5px; margin:0; }

@media (max-width:980px){ .beneficios-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .beneficios-grid{ grid-template-columns:1fr; } }

/* ============ Testimonials ============ */
.testimonial-list{ display:flex; flex-direction:column; gap:20px; max-width:900px; margin:0 auto; }
.testimonial-card{
  display:flex;
  align-items:center;
  gap:26px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:26px 30px;
  box-shadow:var(--shadow-sm);
}
.testimonial-avatar{
  width:88px; height:88px;
  border-radius:50%;
  flex-shrink:0;
  background:linear-gradient(135deg,#DCE6FB,#F3E6C8);
  display:flex; align-items:center; justify-content:center;
  color:#7086B8;
  overflow:hidden;
}
.testimonial-avatar svg{ width:34px; height:34px; }
.testimonial-body{ flex-grow:1; position:relative; }
.testimonial-body .qmark{ color:var(--border); font-size:40px; font-family:Georgia,serif; position:absolute; top:-14px; left:-4px; z-index:0; }
.testimonial-text{ font-size:15.5px; color:var(--ink); position:relative; z-index:1; margin-bottom:14px; }
.testimonial-name{ font-weight:800; color:var(--navy); font-size:15px; }
.testimonial-role{ font-size:13px; color:var(--text-muted); }
.testimonial-qmark2{ color:var(--border); font-size:44px; font-family:Georgia,serif; flex-shrink:0; align-self:flex-end; }

@media (max-width:640px){
  .testimonial-card{ flex-direction:column; text-align:center; }
  .testimonial-qmark2{ display:none; }
}

/* ============ CTA banner ============ */
.cta-banner{
  background:linear-gradient(90deg, var(--navy-dark), var(--navy));
  padding:34px 0;
}
.cta-banner .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}
.cta-left{ display:flex; align-items:center; gap:18px; }
.cta-left svg{ width:52px; height:52px; color:#fff; flex-shrink:0; }
.cta-left p{ margin:0; color:#fff; font-size:15px; }
.cta-left strong{ display:block; color:var(--gold); font-size:19px; font-family:var(--font-head); }

@media (max-width:360px){
  .cta-banner .container{ justify-content:center; }
  .cta-banner .btn{ padding:13px 18px; font-size:13.5px; gap:8px; }
  .cta-banner .btn svg{ width:16px; height:16px; }
}

/* ============ Footer ============ */
.site-footer{ background:var(--footer-bg); color:#B9C0D4; padding:48px 0 26px; }
.footer-grid{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding-bottom:26px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-logo{ display:flex; align-items:center; gap:10px; }
.footer-logo img{ height:50px; width:auto; flex-shrink:0; }
.footer-logo .logo-text .l1,.footer-logo .logo-text .l2{ color:#fff; }
.footer-logo .logo-text .l3{ color:var(--gold); }
.footer-info{ display:flex; flex-wrap:wrap; gap:26px; }
.footer-info-item{ display:flex; align-items:center; gap:10px; font-size:14px; }
.footer-info-item svg{ width:19px; height:19px; color:var(--gold); flex-shrink:0; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{
  width:38px; height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease;
}
.footer-social a:hover{ background:var(--gold); color:var(--navy-dark); }
.footer-social svg{ width:17px; height:17px; }
.footer-links{ display:flex; justify-content:center; gap:22px; flex-wrap:wrap; padding-top:20px; }
.footer-links a{ font-size:13px; font-weight:600; color:#B9C0D4; transition:color .15s ease; }
.footer-links a:hover{ color:var(--gold); }
.footer-bottom{ text-align:center; font-size:12.5px; color:#6B7690; padding-top:12px; }

/* ============ Botón flotante de WhatsApp ============ */
.whatsapp-float{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:150;
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--whatsapp);
  color:#fff;
  padding:15px 22px;
  border-radius:50px;
  font-weight:700;
  font-size:14px;
  white-space:nowrap;
  box-shadow:0 10px 26px rgba(37,211,102,.5);
  transition:transform .2s ease, background .2s ease;
}
.whatsapp-float:hover{ background:var(--whatsapp-dark); transform:translateY(-3px); }
.whatsapp-float svg{ width:26px; height:26px; flex-shrink:0; }
@media (max-width:560px){
  .whatsapp-float{ padding:13px 18px; right:14px; bottom:14px; font-size:13px; gap:8px; }
  .whatsapp-float svg{ width:22px; height:22px; }
}

/* ============ Ficha de matrícula (formulario largo) ============ */
.ficha-form{ max-width:760px; margin:0 auto; }
.ficha-note{
  background:var(--bg-light);
  border-radius:var(--radius-sm);
  padding:16px 20px;
  font-size:13.5px;
  color:var(--text-body);
  margin-bottom:26px;
}
.ficha-section{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:28px;
  margin-bottom:22px;
}
.ficha-section h3{
  font-size:16px;
  color:var(--navy);
  margin-bottom:14px;
  padding-bottom:14px;
  border-bottom:1px solid var(--border);
}
.ficha-section .ficha-section-help{ font-size:13px; color:var(--text-muted); margin:-8px 0 18px; }
.ficha-field{ margin-bottom:18px; }
.ficha-field:last-child{ margin-bottom:0; }
.ficha-field label.field-label{ display:block; font-size:13.5px; font-weight:700; color:var(--ink); margin-bottom:7px; }
.ficha-field label.field-label .req{ color:var(--gold-dark); }
.ficha-field .field-help{ font-size:12.5px; color:var(--text-muted); margin:-3px 0 8px; }
.ficha-radio-row{ display:flex; gap:22px; flex-wrap:wrap; }
.ficha-radio-row label{ display:flex; align-items:center; gap:7px; font-size:14px; font-weight:600; color:var(--ink); cursor:pointer; }
.ficha-radio-row input, .ficha-checkbox-list input{ width:17px; height:17px; accent-color:var(--navy); flex-shrink:0; }
.ficha-checkbox-list{ display:flex; flex-direction:column; gap:11px; }
.ficha-checkbox-list label{ display:flex; align-items:flex-start; gap:8px; font-size:14px; color:var(--ink); cursor:pointer; }
.ficha-conditional{ display:none; margin-top:16px; padding-top:16px; border-top:1px dashed var(--border); }
.ficha-conditional.show{ display:block; }
.ficha-otro-field{ display:none; margin-top:10px; }
.ficha-otro-field.show{ display:block; }
select.form-field{ appearance:auto; color:var(--ink); }
.ficha-submit-wrap{ text-align:center; }
.ficha-status{ margin-top:16px; font-weight:700; font-size:14px; min-height:20px; }

/* ============ Legal content (política de privacidad) ============ */
.legal-content{ max-width:820px; margin:0 auto; }
.legal-content h2{ font-size:21px; margin-top:38px; margin-bottom:12px; }
.legal-content h2:first-child{ margin-top:0; }
.legal-content p, .legal-content li{ font-size:15px; line-height:1.7; color:var(--text-body); }
.legal-content ul{ padding-left:22px; margin-bottom:16px; }
.legal-content li{ margin-bottom:8px; }
.legal-content .updated{ font-size:13px; color:var(--text-muted); margin-bottom:34px; }
.legal-content strong{ color:var(--ink); }

/* ============ Lead capture modal ============ */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(8,14,36,.65);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:200;
  padding:20px;
}
.modal-overlay.open{ display:flex; }
.modal-card{
  background:#fff;
  border-radius:var(--radius-lg);
  padding:34px;
  max-width:540px;
  width:100%;
  max-height:90vh;
  overflow-y:auto;
  position:relative;
  box-shadow:var(--shadow-lg);
}
.modal-close{
  position:absolute;
  top:14px; right:14px;
  width:34px; height:34px;
  border-radius:50%;
  background:var(--bg-light);
  border:none;
  font-size:22px;
  line-height:1;
  color:var(--text-muted);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.modal-close:hover{ background:var(--border); color:var(--navy); }
.modal-card h3{
  text-align:center;
  font-size:18px;
  margin:6px 0 24px;
  text-transform:uppercase;
  letter-spacing:.4px;
}
.modal-radio-group{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  justify-content:center;
  margin-bottom:20px;
  font-size:14px;
  font-weight:600;
  color:var(--ink);
}
.modal-radio-group label{ display:flex; align-items:center; gap:6px; cursor:pointer; }
.lead-form .form-row{ margin-bottom:14px; }
.lead-form select.form-field{ color:var(--ink); }
.lead-form .form-check{ align-items:flex-start; margin:16px 0 20px; text-align:left; line-height:1.5; }
.lead-form .form-check input{ margin-top:3px; flex-shrink:0; }
.lead-form .form-check a{ color:var(--navy-light); font-weight:600; }
.lead-trigger-section{ text-align:center; }

/* ============ FAQ Accordion ============ */
.faq-list{ display:flex; flex-direction:column; gap:14px; max-width:900px; margin:0 auto; }
.faq-item{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  overflow:hidden;
}
.faq-question{
  width:100%;
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px 22px;
  background:none;
  border:none;
  text-align:left;
  font-family:var(--font-head);
  font-weight:700;
  font-size:15.5px;
  color:var(--navy);
}
.faq-question .f-icon{
  width:38px; height:38px;
  border-radius:50%;
  background:var(--bg-light);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.faq-question .f-icon svg{ width:18px; height:18px; color:var(--navy); }
.faq-question span.q-text{ flex-grow:1; }
.faq-question .plus{
  width:22px; height:22px;
  flex-shrink:0;
  position:relative;
}
.faq-question .plus::before,.faq-question .plus::after{
  content:"";
  position:absolute;
  background:var(--navy);
  transition:transform .2s ease;
}
.faq-question .plus::before{ left:0; top:50%; width:100%; height:2.5px; transform:translateY(-50%); }
.faq-question .plus::after{ top:0; left:50%; width:2.5px; height:100%; transform:translateX(-50%); }
.faq-item.open .plus::after{ transform:translateX(-50%) rotate(90deg); opacity:0; }
.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .25s ease;
}
.faq-answer-inner{ padding:0 22px 20px 76px; font-size:14.5px; color:var(--text-body); }
.faq-item.open .faq-answer{ max-height:300px; }

/* ============ Matricula steps ============ */
.steps-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:0;
  align-items:start;
}
.step-item{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:22px 14px;
  text-align:center;
  position:relative;
  margin:0 6px;
}
.step-num{
  width:30px; height:30px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  font-weight:800;
  font-size:13px;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 14px;
}
.step-icon{ margin-bottom:12px; }
.step-icon svg{ width:36px; height:36px; color:var(--navy); margin:0 auto; }
.step-item h4{ font-size:14px; margin-bottom:8px; }
.step-item p{ font-size:12px; margin:0; color:var(--text-muted); }
.step-arrow{ display:flex; align-items:center; justify-content:center; }
.step-arrow svg{ width:18px; height:18px; color:var(--gold-dark); }

@media (max-width:980px){
  .steps-grid{ grid-template-columns:repeat(3,1fr); row-gap:26px; }
  .step-arrow{ display:none; }
}
@media (max-width:600px){
  .steps-grid{ grid-template-columns:repeat(2,1fr); }
}

/* ============ Info cards (matricula / contacto) ============ */
.info-cards-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
}
.info-card-head{ display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.info-card-head .ic{
  width:44px; height:44px;
  border-radius:12px;
  background:var(--navy);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.info-card-head .ic svg{ width:20px; height:20px; color:#fff; }
.info-card-head h3{ margin:0; font-size:18px; }
.check-list li{ display:flex; align-items:center; gap:10px; font-size:14.5px; color:var(--ink); margin-bottom:12px; }
.check-list li svg{ width:18px; height:18px; color:var(--gold-dark); flex-shrink:0; }
.contact-line{ display:flex; align-items:flex-start; gap:14px; margin-bottom:20px; }
.contact-line .ic-round{
  width:42px; height:42px; border-radius:50%;
  background:var(--bg-light);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.contact-line .ic-round svg{ width:19px; height:19px; color:var(--navy); }
.contact-line b{ display:block; color:var(--navy); font-size:14.5px; }
.contact-line span{ font-size:13.5px; color:var(--text-body); }

@media (max-width:860px){ .info-cards-grid{ grid-template-columns:1fr; } }

/* ============ Contact form ============ */
.contact-grid{
  display:grid;
  grid-template-columns:0.9fr 1.2fr 0.9fr;
  gap:24px;
  align-items:start;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.form-field{
  width:100%;
  padding:13px 16px;
  border:1px solid var(--border);
  border-radius:10px;
  font-family:inherit;
  font-size:14.5px;
  background:var(--bg-lighter);
}
.form-field:focus{ outline:2px solid var(--navy-light); background:#fff; }
textarea.form-field{ resize:vertical; min-height:100px; }
.form-check{ display:flex; align-items:center; gap:8px; font-size:13px; margin:10px 0 18px; color:var(--text-muted); }
.form-check a{ color:var(--navy-light); font-weight:600; }
.map-embed{ border-radius:var(--radius-sm); overflow:hidden; border:1px solid var(--border); min-height:220px; }

@media (max-width:980px){ .contact-grid{ grid-template-columns:1fr; } }
@media (max-width:520px){ .form-row{ grid-template-columns:1fr; } }

/* ============ Mobile nav ============ */
@media (max-width:1320px){
  .nav-links{
    position:fixed;
    top:78px; left:0; right:0;
    background:#fff;
    flex-direction:column;
    align-items:stretch;
    padding:14px 20px;
    box-shadow:var(--shadow-md);
    display:none;
    gap:6px;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ text-align:center; }
  .nav-toggle{ display:block; }
  .nav-right .btn-whatsapp span,
  .nav-right .btn-aula-virtual span{ display:none; }
}

@media (max-width:400px){
  /* El boton flotante de WhatsApp ya cubre esta funcion en pantallas chicas */
  .nav-right .btn-whatsapp{ display:none; }
}

@media (min-width:1321px){
  .nav-toggle{ display:none; }
}

/* ============ Blog: hero ============ */
.blog-hero{
  position:relative;
  background:var(--bg-light);
  padding:56px 0 60px;
  overflow:hidden;
}
.blog-hero::before{
  content:"";
  position:absolute;
  left:0; top:0;
  width:200px; height:200px;
  background-image:radial-gradient(rgba(14,30,78,.12) 2px, transparent 2px);
  background-size:16px 16px;
  pointer-events:none;
}
.blog-hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
  position:relative;
  z-index:1;
}
.blog-hero h1{ font-size:clamp(28px,3.6vw,40px); font-weight:800; }
.blog-hero p{ font-size:16.5px; }
.blog-hero .img-placeholder{ min-height:280px; box-shadow:var(--shadow-md); }

/* ============ Blog: layout ============ */
.blog-layout{ display:grid; grid-template-columns:2fr 1fr; gap:40px; align-items:start; }

.blog-section-tag{
  display:flex; align-items:center; gap:10px;
  font-size:19px; font-weight:800; color:var(--navy);
  font-family:var(--font-head); margin-bottom:22px;
}
.blog-section-tag svg{ width:20px; height:20px; color:var(--gold-dark); }

/* ============ Blog: article cards (listing) ============ */
.blog-list{ display:flex; flex-direction:column; gap:22px; }
.blog-card{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:22px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:box-shadow .2s ease, transform .2s ease;
}
.blog-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); }
.blog-card-media{ position:relative; min-height:150px; }
.blog-card-media .img-placeholder{ height:100%; min-height:100%; border-radius:0; }
.blog-badge{
  position:absolute; left:12px; bottom:12px;
  background:var(--navy); color:#fff;
  font-size:11.5px; font-weight:700;
  padding:5px 12px; border-radius:50px;
  z-index:2;
}
.blog-card-body{ padding:20px 22px 20px 0; display:flex; flex-direction:column; min-width:0; }
.blog-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; font-size:12.5px; color:var(--text-muted); margin-bottom:10px; }
.blog-meta span{ display:flex; align-items:center; gap:6px; }
.blog-meta svg{ width:15px; height:15px; flex-shrink:0; }
.blog-card-body h3{ font-size:18px; margin-bottom:8px; }
.blog-card-body h3 a{ color:var(--navy); transition:color .15s ease; }
.blog-card-body h3 a:hover{ color:var(--navy-light); }
.blog-card-body p{ font-size:14px; margin-bottom:12px; flex-grow:1; }
.blog-readmore{ display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:13.5px; color:#2E6FC2; }
.blog-readmore svg{ width:15px; height:15px; transition:transform .15s ease; }
.blog-card:hover .blog-readmore svg{ transform:translateX(3px); }

@media (max-width:640px){
  .blog-card{ grid-template-columns:1fr; }
  .blog-card-body{ padding:18px 20px; }
  .blog-card-media{ min-height:180px; }
}

/* ============ Blog: sidebar ============ */
.blog-sidebar{ display:flex; flex-direction:column; gap:24px; }
.blog-search{ display:flex; gap:0; }
.blog-search input{
  flex-grow:1; min-width:0;
  padding:13px 16px;
  border:1px solid var(--border);
  border-right:none;
  border-radius:10px 0 0 10px;
  font-family:inherit; font-size:14px;
  background:var(--bg-lighter);
}
.blog-search input:focus{ outline:none; background:#fff; }
.blog-search button{
  background:var(--navy); border:none; color:#fff;
  padding:0 18px; border-radius:0 10px 10px 0;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.blog-search button svg{ width:18px; height:18px; }

.sidebar-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); padding:22px; }
.sidebar-card h4{ font-size:16px; margin-bottom:6px; position:relative; padding-bottom:12px; }
.sidebar-card h4::after{ content:""; position:absolute; left:0; bottom:0; width:36px; height:3px; background:var(--gold); border-radius:4px; }

.category-list{ margin-top:14px; }
.category-list li{ display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); font-size:14px; color:var(--ink); }
.category-list li:last-child{ border-bottom:none; }
.category-list li svg{ width:17px; height:17px; color:var(--navy); flex-shrink:0; }
.category-list li span.cat-name{ flex-grow:1; font-weight:600; }
.category-list li span.cat-count{ color:var(--text-muted); font-size:12.5px; font-weight:600; }

.featured-post{ display:flex; gap:14px; align-items:flex-start; margin-top:14px; }
.featured-post .img-placeholder{ width:74px; height:74px; min-height:0; flex-shrink:0; border-radius:12px; }
.featured-post .img-placeholder svg{ width:22px; height:22px; }
.featured-post-body{ min-width:0; }
.featured-post-body h5{ font-family:var(--font-head); font-size:13.5px; font-weight:700; color:var(--navy); margin:0 0 6px; line-height:1.3; }
.featured-post-body h5 a{ color:inherit; }
.featured-post-meta{ display:flex; align-items:center; gap:10px; font-size:11.5px; color:var(--text-muted); flex-wrap:wrap; }
.featured-post-meta svg{ width:13px; height:13px; }
.sidebar-viewall{ display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-weight:700; font-size:13.5px; color:#2E6FC2; }
.sidebar-viewall svg{ width:15px; height:15px; }

.sidebar-recent-list{ display:flex; flex-direction:column; gap:16px; margin-top:14px; }

.sidebar-cta{ background:var(--navy); border-radius:var(--radius-md); padding:26px 22px; color:#fff; }
.sidebar-cta h4{ font-size:17px; margin-bottom:12px; color:#fff; }
.sidebar-cta h4 .accent{ color:var(--gold); }
.sidebar-cta p{ font-size:13.5px; color:rgba(255,255,255,.8); margin-bottom:18px; }
.sidebar-cta .btn{ width:100%; }

@media (max-width:980px){
  .blog-layout, .blog-hero-grid{ grid-template-columns:1fr; }
}

/* ============ Blog: article page ============ */
.blog-breadcrumb{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:13px; color:var(--text-muted); padding:20px 0 0; }
.blog-breadcrumb a{ color:var(--navy-light); font-weight:600; }
.blog-breadcrumb a:hover{ text-decoration:underline; }
.blog-breadcrumb .sep{ color:var(--border); }
.blog-breadcrumb .current{ color:var(--text-muted); }

.blog-article-hero{ padding:26px 0 40px; }
.blog-article-hero-grid{ display:grid; grid-template-columns:1.15fr 1fr; gap:40px; align-items:center; }
.blog-article-hero .blog-badge{ position:static; display:inline-flex; align-items:center; gap:6px; margin-bottom:16px; }
.blog-article-hero .blog-badge svg{ width:13px; height:13px; }
.blog-article-hero h1{ font-size:clamp(26px,3.4vw,38px); font-weight:800; }
.blog-article-hero .rule-gold{ margin-top:16px; }
.blog-article-hero .blog-meta{ font-size:13.5px; margin-bottom:0; }
.blog-article-hero .img-placeholder{ min-height:260px; box-shadow:var(--shadow-md); }

@media (max-width:860px){ .blog-article-hero-grid{ grid-template-columns:1fr; } }

.blog-article-body{ font-size:15.5px; line-height:1.75; color:var(--text-body); }
.blog-article-body p{ margin-bottom:1.2em; }
.blog-article-body .lead{ font-size:17px; color:var(--ink); font-weight:500; }
.blog-article-body h2{ font-size:22px; margin-top:1.6em; }

.blog-img-callout{ position:relative; border-radius:var(--radius-md); overflow:hidden; margin:28px 0; box-shadow:var(--shadow-sm); }
.blog-img-callout .img-placeholder{ min-height:280px; border-radius:0; }
.blog-callout-bar{
  position:absolute; left:16px; right:16px; bottom:16px;
  background:var(--navy); color:#fff;
  border-radius:var(--radius-sm);
  padding:14px 18px;
  display:flex; align-items:center; gap:14px;
  box-shadow:var(--shadow-md);
}
.blog-callout-bar .ic-round{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.blog-callout-bar .ic-round svg{ width:18px; height:18px; color:var(--gold); }
.blog-callout-bar p{ margin:0; font-size:14px; font-weight:600; }
.blog-callout-bar p .accent{ color:var(--gold); }

@media (max-width:560px){
  .blog-callout-bar{ position:static; margin-top:-4px; border-radius:0 0 var(--radius-md) var(--radius-md); }
}

.blog-numbered-list{ display:flex; flex-direction:column; gap:18px; margin:26px 0; }
.blog-num-item{ display:flex; align-items:flex-start; gap:18px; background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); padding:20px 22px; }
.blog-num-item .num{
  width:40px; height:40px; border-radius:12px;
  background:var(--bg-light); color:var(--navy);
  font-family:var(--font-head); font-weight:800; font-size:15px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.blog-num-item .n-icon{ width:40px; height:40px; border-radius:50%; background:var(--bg-light); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.blog-num-item .n-icon svg{ width:19px; height:19px; color:var(--navy); }
.blog-num-item .n-body{ min-width:0; }
.blog-num-item h4{ font-size:15.5px; margin-bottom:5px; }
.blog-num-item p{ font-size:13.5px; margin:0; color:var(--text-body); }

@media (max-width:520px){ .blog-num-item{ flex-wrap:wrap; } }

.blog-closing-box{
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
  background:#FCF4E3; border:1px solid #F3E0B0;
  border-radius:var(--radius-md);
  padding:24px 26px; margin-top:30px;
}
.blog-closing-box svg{ width:44px; height:44px; color:var(--gold-dark); flex-shrink:0; }
.blog-closing-box-text{ flex-grow:1; min-width:200px; }
.blog-closing-box h4{ font-size:16.5px; margin-bottom:4px; }
.blog-closing-box p{ font-size:13.5px; margin:0; color:var(--text-body); }

/* ============ Blog: caja "En este articulo aprenderas" ============ */
.blog-toc{ background:var(--bg-light); border-radius:var(--radius-md); padding:26px 24px; margin:24px 0; }
.blog-toc > p{ font-weight:700; color:var(--navy); margin-bottom:18px; font-size:14px; }
.blog-toc-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; text-align:center; }
.blog-toc-item{ display:flex; flex-direction:column; align-items:center; gap:10px; }
.blog-toc-item .ic{ width:44px; height:44px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm); flex-shrink:0; }
.blog-toc-item .ic svg{ width:20px; height:20px; color:var(--navy); }
.blog-toc-item span{ font-size:12.5px; font-weight:600; color:var(--ink); line-height:1.3; }

@media (max-width:560px){
  .blog-toc-grid{ grid-template-columns:repeat(2,1fr); }
}
