@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
:root{
    --primary: #0B0B52;
    --primary-rgb: 11, 11, 82;
    --vibrante: #FF6A00;
    --accent: #F15A24;
    --accent-hover: #f34e12;
    --bg: #FFFFFF;
    --bg-muted: #b1b1b1;
    --muted: #EDEDED;
    --ink: #222222;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,.08);

     /* tokens tipo bootstrap */
    --bs-border: #ced4da;
    --bs-border-focus: #86b7fe;
    --bs-text-muted: #6c757d;
    --bs-body: #212529;
    --bs-bg: #fff;
    --bs-radius: .375rem; /* 6px */
    --bs-focus-ring: 0 0 0 .25rem rgba(var(--primary-rgb), .25);
    --bs-shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --bs-transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

* { 
    box-sizing: border-box; 
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

img { 
    max-width: 100%; 
    display: block; 
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    animation: fadeInPage 1.2s ease-out;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.navbar {
    backdrop-filter: blur(8px);
    position: sticky;
    top:0; 
    z-index: 50;
    background: rgba(255,255,255,.85);
    border-bottom:1px solid #eaeaea;
}
.navbar .row {
    display:flex;
    align-items:center; 
    justify-content: space-between; 
    padding:10px 0;
}

.navbar .links a { 
    margin-left:16px; 
    font-weight:600; 
}

/* .navbar .links li a {
    transition: all ease-in 1s;
} */

.navbar .links li a:hover {
    border-bottom: 2px solid var(--accent);
}

footer .container {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

footer .container .copy {
  display:flex;
  align-items:
  center;
  gap:10px;
}

footer .logo {
  width: 28px;
}

.links {
    list-style: none;
    display: flex;
}

.brand {
    display:flex;
    align-items:center;
    gap:8px;
}

.brand-zoe {
    color: var(--vibrante);
}

.brand-zoe span {
    color: var(--primary);
}

.menu-mobile {
    display: none;
}

    /* .menu-mobile i {
        display: none;
    } */

.menu-mobile::before,
.menu-mobile::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #0B0B52;
    transition: all 0.3s ease;
    left: 50%;
    transform: translateX(-50%);
}

.menu-mobile::before {
    top: 12px;
}

.menu-mobile::after {
    bottom: 12px;
}

.menu-mobile.active::before {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}


.menu-mobile.active::after {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

.menu-mobile.active {
    background: none;
}


header.hero {
  background: url('images/background.png') no-repeat center center;
  background-size: cover;
  background: radial-gradient(1000px 500px at 20% 0%, rgba(255,255,255,.1), transparent), var(--primary);
  color: white; 
  padding: 100px 0 70px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: fadeSlideIn 1s ease-out 0.2s both;
}


@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}


.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  z-index: 0;
}

/*
 background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3));
 */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(11,11,82,0.6), rgba(0,0,0,0.3)); /* Degradado oscuro semitransparente */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; /* Centrado vertical */
  padding: 0 20px; /* Un poco de padding lateral para que no se pegue a los bordes */
}


.video-container {
    position: relative;
}

.video-container .brand {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 16px;
    background-color: var(--primary);
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: start;
}



header.hero h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 10px;
  letter-spacing: 2.5px;
}
header.hero p.tagline { font-size: clamp(1rem, 2vw, 1.15rem); opacity:.95; max-width: 62ch; }
header.hero .cta {
    margin-top: 26px; 
    display:flex; 
    justify-content: start;
    gap:12px; 
    flex-wrap: wrap;
}




a {
  color: var(--primary); 
  text-decoration: none; 
}

a.btn {
    min-width: 180px;
    text-align: center;
    display:inline-block; 
    padding:.9rem 1.2rem; 
    border-radius: var(--radius);
    background: var(--accent); 
    color:white; 
    font-weight:700; 
    box-shadow: var(--shadow);
}
a.btn.secondary {
  /* background: rgb(131, 129, 129);  */
  background-color: #EDEDED;
  color: var(--primary); 
  border:2px solid var(--bg);
}

a.btn:hover {
  background: var(--accent-hover); 

}

a.secondary:hover {
  background: var(--muted); 

}



section { padding: 70px 0; }
.section-title {
  font: 800 1.6rem/1.2 "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color:var(--ink);
  margin: 0 0 12px;
}



.section-sub { color:#666; margin-bottom: 30px; }

.grid { display:grid; gap:22px; }
.grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background:white; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid #eee;
}
.card .eyebrow { color: var(--accent); font-weight:800; text-transform: uppercase; font-size:.85rem; letter-spacing:.5px; }
.card h3 { margin:.1rem 0 .5rem; }
.badge2 {
  display:inline-block; background: var(--muted); padding:.25rem .6rem; border-radius:999px; font-weight:600; font-size:.8rem;
}

section#about .values { display:flex; flex-wrap: wrap; gap:12px; margin-top: 10px; }

section#programs .card ul { padding-left: 18px; margin: .4rem 0 0; }
section#programs table {
  width:100%; border-collapse: collapse; margin-top:10px; font-size:.98rem;
}
section#programs th, section#programs td { border-bottom:1px solid #eee; padding:10px 8px; text-align:left; }
section#programs th { background:#fafafa; }

section#method {
  background: linear-gradient(180deg, #fafafa, #fff);
}



.inspirational-separator {
  position: relative;
  height: 200px; /* O la altura que veas más apropiada */
  overflow: hidden;
}

#starCanvasContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* .separator-content {
  position: relative;
  z-index: 1;
  color: var(--bg); 
  text-align: center;
  padding: 20px 20px;
}
 */
.separator-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  font-family: "Merriweather", serif;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100%;
}

/* --- Estrellas + Texto Glow & Fade --- */
.separator-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 1px;
  color: white;
  text-shadow:
      0 0 6px rgba(255, 216, 122, 0.6),
      0 0 14px rgba(255, 186, 66, 0.45),
      0 0 22px rgba(255, 180, 40, 0.35);

  opacity: 0;
  animation: 
      fadeInText 2.5s ease-out 0.5s forwards,
      subtlePulse 6s ease-in-out 2.6s infinite;
    position: relative;
  z-index: 1; /* Por encima del halo */
}

.separator-subtitle {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;

  opacity: 0;
  animation: fadeInSubtitle 2.2s ease-out 1.3s forwards;
}


/* Halo dorado suave */
.separator-content::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;

  /* Gradiente cálido/dorado */
  background: radial-gradient(
    rgba(255, 220, 120, 0.45),
    rgba(255, 180, 40, 0.15),
    rgba(255, 180, 40, 0.05),
    transparent 70%
  );

  filter: blur(40px);
  z-index: 0;
  opacity: 0;

  /* Animación de aparición */
  animation:
      haloFadeIn 2.5s ease-out 0.8s forwards,
      haloPulse 14s ease-in-out 3.3s infinite;
}

@keyframes fadeInSubtitle {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Aparece de forma hermosa */
@keyframes haloFadeIn {
  0%   { opacity: 0; transform: scale(0.75); }
  100% { opacity: 1; transform: scale(1); }
}

/* Pulso suave… una respiración de luz */
@keyframes haloPulse {
  0%   { transform: scale(1);     opacity: 1;   }
  50%  { transform: scale(1.07);  opacity: 0.92; }
  100% { transform: scale(1);     opacity: 1;   }
}
/* Suave entrada del texto */
@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Suavizamos aún más el glow en pantallas grandes */
@media (min-width: 900px) {
  .separator-content h2 {
    text-shadow: 
      0 0 8px rgba(255,255,255,0.7),
      0 0 18px rgba(255,255,255,0.5),
      0 0 26px rgba(255,255,255,0.35);
  }
}

/* Parpadeo MUY SUAVE */
@keyframes subtlePulse {
  0%   { text-shadow: 0 0 6px rgba(255,216,122,0.6); }
  50%  { text-shadow: 0 0 13px rgba(255,186,66,0.65); }
  100% { text-shadow: 0 0 6px rgba(255,216,122,0.6); }
}




.malla{margin-block:2.5rem}
  .malla-title{
    font: 800 1.6rem/1.2 "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color:var(--ink);
    margin:0 0 1rem;
  }

  /* ---------- Tabla (desktop/tablet) ---------- */
  .malla-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border:1px solid var(--line);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow: 0 8px 24px rgba(16,24,40,.04);
  }
  .malla-table thead{
    background:#fbfbfc;
  }
  .malla-table th,
  .malla-table td{
    padding:1rem 1.2rem;
    text-align:left;
  }
  .malla-table th{
    font-weight:800;
    color:var(--ink);
    border-bottom:1px solid var(--line);
  }
  .malla-table tbody tr{
    border-bottom:1px solid var(--line);
  }
  .malla-table tbody tr:hover{
    background:#fffdfa;
  }
  .malla-table td:first-child{
    color:var(--accent-ink);
    font-weight:700;
  }
  .year-header td{
    background:var(--soft);
    color:var(--accent-ink);
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.02em;
  }

  /* ---------- Cards (mobile) ---------- */
  .malla-cards{display:none}
  .year-chip{
    display:inline-block;
    margin:1.25rem 0 .5rem;
    padding:.35rem .7rem;
    background:var(--soft);
    color:var(--accent-ink);
    border:1px solid var(--line);
    border-radius:999px;
    font:800 .85rem/1 "Nunito", system-ui;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  .course-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:1rem;
    box-shadow:0 6px 18px rgba(16,24,40,.06);
    margin:.6rem 0;
  }
  .course-card header{
    display:flex;
    align-items:center;
    gap:.75rem;
    margin-bottom:.35rem;
  }
  .course-card h4{
    margin:0;
    font:800 1.05rem/1.2 "Nunito", system-ui;
    color:var(--ink);
  }
  .course-card p{
    margin:.2rem 0 0;
    color:var(--primary);
  }
  .badge{
    display:inline-block;
    min-width:3rem;
    text-align:center;
    padding:.25rem .5rem;
    border-radius:999px;
    background:var(--accent);
    color:#fff;
    font:800 .8rem/1 "Nunito", system-ui;
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 820px){
    .malla-table{display:none}
    .malla-cards{display:block}
  }

  /* Accesibilidad: ocultar sólo visualmente */
  .sr-only{
    position:absolute !important;
    width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
    clip:rect(0,0,0,0);white-space:nowrap;border:0;
  }



/* section#method .container .kpis {
    display: flex;
    justify-content: center ;
} */



.kpis { display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; margin-top:20px;  }
.kpi { text-align:center; padding:16px; border-radius:12px; background:white; border:1px solid #eee; }
.kpi .num { font-size:1.8rem; font-weight:800; color: var(--primary); }


.num {
  font-size: 2rem;
  font-weight: bold;
  color: #007bff;
  transition: all 0.3s ease;
}

.hiden {
  display: none;
}

@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

.testimonials { display:grid; gap:16px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.quote { background:white; border-left: 6px solid var(--accent); padding:18px; border-radius:12px; box-shadow: var(--shadow); }

/* Card del formulario */
.form {
  background: var(--bs-bg);
  padding: 1.25rem;                /* ~20px */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  color: var(--bs-body);
}

/* Grid responsivo como .row .col-6 */
.form .row {
  display: grid;
  gap: 1rem;                       /* 16px */
  grid-template-columns: repeat(2, 1fr);
}
.form .row > div { display:flex; flex-direction: column; gap: .375rem; }
@media (max-width: 768px){
  .form .row { grid-template-columns: 1fr; }

  footer .container {
    flex-direction: column;
  }

  footer .container .copy{
    flex-direction: column;
  }

  .copy p {

    display: flex;
    gap: 5px;
    justify-content: center;
  }
}

/* Labels tipo Bootstrap */
.form label {
  font-weight: 600;
  font-size: .95rem;
}

/* Controles tipo .form-control / .form-select */
.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  padding: .5rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bs-body);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-radius);
  transition: var(--bs-transition);
  outline: none;
}

.form textarea { min-height: 120px; }

/* Placeholder */
.form input::placeholder,
.form textarea::placeholder { color: var(--bs-text-muted); }

/* Focus ring tipo Bootstrap */
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--bs-border-focus);
  box-shadow: var(--bs-focus-ring);
}

/* Select: apariencia consistente */
.form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 16px;
  /* flechita simple en SVG, color gris */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'><path d='M3.204 5.5a.5.5 0 0 1 .592-.805l4 3a.5.5 0 0 1 0 .81l-4 3A.5.5 0 0 1 3 10.5V5.5h.204z'/></svg>");
  padding-right: 2.25rem; /* espacio para la flecha */
}

/* Botón tipo .btn y .btn-primary */
.btn {
  display: inline-block;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: .5rem 1rem;
  font-size: 1rem;
  border-radius: .5rem; /* un poquito más redondeado */
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, transform .08s ease-in-out;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--bs-shadow-sm);
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-primary:focus-visible {
  box-shadow: var(--bs-focus-ring);
}
.btn-primary:disabled,
.btn-primary[disabled]{
  opacity: .65;
  pointer-events: none;
}

/* Textos auxiliares (form-text, muted) */
.form-text { margin-top: .25rem; font-size: .875rem; color: var(--bs-text-muted); }
.text-muted { color: var(--bs-text-muted); }

/* Estados de validación (compatibles con clases) */
.is-invalid {
  border-color: #dc3545 !important;
}
.is-invalid:focus {
  box-shadow: 0 0 0 .25rem rgba(220,53,69,.25) !important;
}
.is-valid {
  border-color: #198754 !important;
}
.is-valid:focus {
  box-shadow: 0 0 0 .25rem rgba(25,135,84,.25) !important;
}
.invalid-feedback,
.valid-feedback {
  display: none;
  font-size: .875rem;
  margin-top: .25rem;
}
.is-invalid ~ .invalid-feedback { display: block; color: #dc3545; }
.is-valid ~ .valid-feedback { display: block; color: #198754; }

/* Espaciado del botón respecto a los campos */
.form button { margin-top: .75rem; }


/* Spinner dentro del botón */
.btn .spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: rgba(255,255,255,1);
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: .5rem;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Estado loading */
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .85;
}


/* ============================================================
   LISTA DE REDES SOCIALES
   ============================================================ */
.social-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);

  background: rgba(11, 11, 82, 0.05); /* institucional leve */
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;

  transition: all .25s ease;
}

.social-list li a i {
  font-size: 1.3rem;
  color: var(--primary);
  transition: color .25s ease, transform .25s ease;
}

/* hover institucional suave */
.social-list li a:hover {
  background: rgba(11, 11, 82, 0.12);
  transform: translateX(3px);
  color: var(--primary);
}

.social-list li a:hover i {
  color: var(--accent-hover);
  transform: scale(1.1);
}


/* ============================================================
   LISTA DE INFORMACIÓN (EMAIL, HORARIO, ETC.)
   ============================================================ */
.info-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-list li {
  background: rgba(11, 11, 82, 0.03);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.info-list .label {
  font-weight: 700;
  color: var(--primary);
  margin-right: 4px;
  display: inline-block;
}


/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

footer {
  background: var(--primary); color:white; padding: 28px 0; margin-top: 50px;
}
footer a { color: white; opacity:.9; }
small.muted { color:#666; }



@media (max-width: 768px) {

    .links {
        display: none;
    }

    .navbar .row {
        justify-content: center;
 
       
    }
     nav ul.links {
        position: fixed;
        left: 0;
        top: 45px;
        width: 70vw;
        height: 100vh;
        background: rgba(255,255,255,.94);
        backdrop-filter: blur(8px);
        

    }
    .visible {
         display: block;
   
    }

    nav ul {
        flex-direction: row;
        justify-content: space-evenly;
        
        height: 10vh;
        align-items: center;

    }
    .menu-mobile {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 2;
        display: block;
        border: 10;
    }

    .menu-mobile i {
        display: block;
        color: #0B0B52;
    }
    .menu.visible {
        position: fixed;
        background: black;
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 60px 15px;
        left: 0;
        top: 0;
    }

}



.fade-left {
    animation: slideInLeft 1s ease-out 0.5s both;
}

.fade-right {
    animation: slideInRight 1s ease-out 0.5s both;
}

.flip-in{
  animation: flipIn 0.8s ease-out both;
}

#programs .card.flip-in:nth-child(1) {
  animation-delay: 0.2s;
}

#programs .card.flip-in:nth-child(2) {
  animation-delay: 0.6s;
}

#programs .card.flip-in:nth-child(3) {
  animation-delay: .8s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes flipIn {
  from {
    opacity: 0;
    transform: rotateY(90deg);
  }
  to {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}
