/* =============================================
   UTEL UNIVERSIDAD - Estilos globales
   Para modificar colores principales, busca:
   --verde: color principal verde
   --amarillo: color botones amarillos
============================================= */
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --verde: #06B706;
  --amarillo: #FFB937;
  --negro: #1a1a1a;
  --gris-texto: #464646;
  --gris-texto2: #364153;
  --gris-claro: #f9fafb;
  --borde: #d1d5dc;
  --borde2: #e5e7eb;
  --max-ancho: 1280px;
}

.loader,
.momento {
  display: none;
}

/* Spinner Border - el indicador de carga giratorio */
.spinner-border {
  width: 2rem;
  height: 2rem;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}

/* Spinner Border Small - versión más pequeña */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border: 0.2em solid currentColor;
  border-right-color: transparent;
}

/* text-warning - color amarillo de Bootstrap */
.text-warning {
  color: #ffc107 !important;
}

/* Animación del spinner */
@keyframes spinner-border {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--negro);
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* ---- LAYOUT ---- */
.contenedor {
  max-width: var(--max-ancho);
  margin: 0 auto;
}

.seccion {
  padding: 64px 24px;
}

@media(min-width:768px) {
  .seccion {
    padding: 64px 48px;
  }
}

@media(min-width:1024px) {
  .seccion {
    padding: 64px 96px;
  }
}

/* ---- HEADER ---- */
.header {
  background: #fff;
  border-bottom: 1px solid var(--borde);
  padding: 16px 24px;
  position: relative;
  z-index: 50;
}

@media(min-width:768px) {
  .header {
    padding: 16px 48px;
  }
}

@media(min-width:1024px) {
  .header {
    padding: 16px 96px;
  }
}

.header-inner {
  max-width: var(--max-ancho);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 44px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a,
.header-nav button {
  color: var(--negro);
  font-size: 15px;
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background .2s;
}

.header-nav a:hover,
.header-nav button:hover {
  background: #f3f4f6;
}

/* Dropdown Licenciaturas */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform .2s;
}

.dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 340px;
  background: #fff;
  border: 1px solid var(--borde2);
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  padding: 8px;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 5px;
  transition: background .15s;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f9fafb;
}

.dropdown-item:hover .dropdown-icon {
  background: var(--verde);
}

.dropdown-item:hover .dropdown-icon svg {
  color: #fff;
}

.dropdown-icon {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}

.dropdown-icon svg {
  width: 20px;
  height: 20px;
  color: var(--verde);
  transition: color .2s;
}

.dropdown-item-text p:first-child {
  font-size: 14px;
  font-weight: 600;
  color: var(--negro);
  margin-bottom: 2px;
}

.dropdown-item-text p:last-child {
  font-size: 12px;
  color: var(--gris-texto);
}

.dropdown-ver-todas {
  display: block;
  text-align: center;
  padding: 10px;
  color: var(--amarillo);
  font-size: 14px;
  border-top: 1px solid var(--borde2);
  margin-top: 4px;
}

.dropdown-ver-todas:hover {
  background: #f9fafb;
  border-radius: 5px;
}

/* Mobile menu */
.menu-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media(max-width:767px) {
  .header-nav {
    display: none;
  }

  .menu-mobile-btn {
    display: block;
  }

  .header-nav.abierto {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--borde);
    padding: 16px 24px;
    gap: 4px;
    z-index: 100;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    width: 100%;
  }
}

/* ---- BOTONES ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .1s;
  text-align: center;
}

.btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-amarillo {
  background: var(--amarillo);
  color: var(--negro);
}

.btn-verde {
  background: var(--verde);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--negro);
  border: 2px solid var(--negro);
}

.btn-full {
  width: 100%;
  display: block;
}

/* ---- HERO ---- */
.hero {
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
  background: var(--gris-claro);
}

@media(min-width:768px) {
  .hero {
    padding: 64px 48px;
  }
}

@media(min-width:1024px) {
  .hero {
    padding: 64px 96px;
  }
}

.hero-inner {
  max-width: var(--max-ancho);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Hero Home centrado */
.hero-home {
  text-align: center;
}

.hero-home h1 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-home .subtitulo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin-bottom: 24px;
}

.hero-home .descripcion {
  font-size: 18px;
  line-height: 1.6;
  max-width: 672px;
  margin: 0 auto 32px;
}

.hero-home .botones {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

@media(max-width:767px) {
  .hero .botones {
    flex-direction: column;
    gap: 16px;
    display: flex;
  }

  .hero .botones .btn {
    width: 100%;
  }
}

/* Hero con formulario - 2 columnas */
.hero-form {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media(min-width:1024px) {
  .hero-form {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-form-3col {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media(min-width:1024px) {
  .hero-form-3col {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--verde);
  color: #fff;
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero .descripcion {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gris-texto2);
  margin-bottom: 32px;
}

.hero-beca-nota {
  font-size: 14px;
  color: var(--gris-texto);
  margin-top: 16px;
}

.hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-blobs img {
  position: absolute;
  opacity: .4;
}

.hero-blobs img:nth-child(1) {
  top: -60px;
  left: -80px;
  width: 300px;
}

.hero-blobs img:nth-child(2) {
  bottom: -60px;
  right: -40px;
  width: 260px;
}

/* Background con formas (secciones con imagen) */
.bg-formas {
  position: relative;
  background-size: cover;
  background-position: center;
}

.bg-formas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(249, 250, 251, .85);
  z-index: 1;
}

.bg-formas>* {
  position: relative;
  z-index: 2;
}

/* Foco al hacer scroll al formulario (go2form): en vez de un div "overlay"
   aparte (que algunos bloqueadores de anuncios detectan y ocultan por
   patrón de capa de pantalla completa), el oscurecido se logra con un
   box-shadow enorme sobre la propia sección iluminada. */
.spotlight-activo {
  position: relative;
  z-index: 901;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .5);
}

/* ---- FORMULARIO LEAD ---- */
.lead-form {
  background: #fff;
  border: 1px solid var(--borde2);
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  padding: 24px;
}

.lead-form-titulo {
  text-align: center;
  border-bottom: 1px solid var(--borde2);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.lead-form-titulo p:first-child {
  font-size: 17px;
  font-weight: 600;
}

.lead-form-titulo p:last-child {
  font-size: 20px;
  font-weight: 700;
}

.lead-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-form input,
.lead-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5dc;
  border-radius: 5px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
  color: var(--negro);
  background: #fff;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--verde);
}

.lead-form input::placeholder,
.lead-form select {
  color: #9ca3af;
}

.campo-telefono {
  display: flex;
}

.campo-telefono .prefijo {
  padding: 12px 16px;
  background: #f3f4f6;
  border: 1px solid #d1d5dc;
  border-right: none;
  border-radius: 5px 0 0 5px;
  font-size: 15px;
  color: var(--gris-texto);
}

.campo-telefono input {
  border-radius: 0 5px 5px 0;
}

.campo-fecha {
  position: relative;
}

.campo-fecha label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: #fff;
  padding: 0 4px;
  font-size: 11px;
  color: var(--gris-texto);
}

.campo-privacidad {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--gris-texto);
}

.campo-privacidad input {
  width: auto;
  margin-top: 2px;
}

/* ---- SECCIÓN HEADER (títulos de sección) ---- */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 12px;
}

.section-header .linea {
  width: 48px;
  height: 3px;
  background: var(--verde);
  margin: 12px auto;
  border-radius: 2px;
}

.section-header p {
  font-size: 16px;
  color: var(--gris-texto2);
  max-width: 640px;
  margin: 0 auto;
}

/* ---- CARDS ---- */
.grid-2 {
  display: grid;
  gap: 24px;
}

.grid-3 {
  display: grid;
  gap: 24px;
}

.grid-4 {
  display: grid;
  gap: 24px;
}

@media(min-width:640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

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

@media(min-width:768px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media(min-width:1024px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--borde2);
  border-radius: 5px;
  padding: 32px;
}

.card-gris {
  background: var(--gris-claro);
}

/* Card grado (Home) */
.card-grado h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-grado p {
  font-size: 14px;
  color: var(--gris-texto);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Card facultad */
.card-facultad {
  text-align: center;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}

.card-facultad:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
}

.card-facultad .icono {
  width: 80px;
  height: 80px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: background .2s;
}

.card-facultad:hover .icono {
  background: var(--verde);
}

.card-facultad .icono svg {
  width: 40px;
  height: 40px;
  color: var(--verde);
  transition: color .2s;
}

.card-facultad:hover .icono svg {
  color: #fff;
}

.card-facultad h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-facultad p {
  font-size: 14px;
  color: var(--gris-texto);
  margin-bottom: 20px;
}

/* Card beneficio */
.card-beneficio {
  text-align: center;
}

.card-beneficio .icono svg {
  width: 48px;
  height: 48px;
  color: var(--verde);
}

.card-beneficio h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 8px;
}

.card-beneficio p {
  font-size: 14px;
  color: var(--gris-texto);
  line-height: 1.5;
}

/* Card programa detallado */
.card-programa {
  border-radius: 8px;
  overflow: hidden;
}

.card-programa img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-programa-body {
  padding: 20px;
}

.card-programa-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-programa-body .meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.card-programa-body .meta span {
  font-size: 13px;
  color: var(--gris-texto);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-programa-body .meta svg {
  width: 14px;
  height: 14px;
}

.card-programa-body p {
  font-size: 14px;
  color: var(--gris-texto2);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-programa-features {
  list-style: none;
  margin-bottom: 16px;
}

.card-programa-features li {
  font-size: 13px;
  color: var(--gris-texto);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-programa-features li::before {
  content: '✓';
  color: var(--verde);
  font-weight: 700;
}

/* Card programa simple (lista) */
.card-programa-simple h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-programa-simple .categoria {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--verde);
  font-weight: 600;
  margin-bottom: 12px;
}

.card-programa-simple ul {
  list-style: none;
}

.card-programa-simple ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--negro);
  border-bottom: 1px solid var(--borde2);
  transition: color .15s;
}

.card-programa-simple ul li a:hover {
  color: var(--verde);
}

.card-programa-simple ul li:last-child a {
  border-bottom: none;
}

/* Card testimonio */
.card-testimonio img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.card-testimonio p {
  font-size: 14px;
  color: var(--gris-texto);
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}

.card-testimonio .nombre {
  font-size: 14px;
  font-weight: 600;
  color: var(--negro);
}

/* Card paso */
.card-paso {
  text-align: center;
}

.card-paso .numero {
  width: 64px;
  height: 64px;
  background: var(--verde);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  font-weight: 700;
}

.card-paso h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-paso p {
  font-size: 14px;
  color: var(--gris-texto);
  line-height: 1.5;
}

/* ---- FAQ ---- */
.faq-lista {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 3rem;
  padding: 1rem;
}

.faq {
  background: var(--gris-claro);
  border: 1px solid var(--borde2);
  border-radius: 5px;
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--negro);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-toggle .plus {
  color: var(--amarillo);
  font-size: 20px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease;
}

.faq.is-open .faq-toggle .plus {
  transform: rotate(45deg);
}

/* La clave: animar grid-template-rows en vez de max-height.
   0fr = colapsado, 1fr = altura real del contenido. Sin adivinar números. */
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq.is-open .faq-content {
  grid-template-rows: 1fr;
}

.faq-content-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-content-inner p {
  margin: 0 24px 20px 24px;
  font-size: 14px;
  color: var(--gris-texto);
  line-height: 1.6;
}

/* ---- CTA VERDE ---- */
.cta-verde {
  background: var(--verde);
  text-align: center;
}

.cta-verde h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 16px;
}

.cta-verde p {
  color: #fff;
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FOOTER ---- */
.footer {
  background: #f3f4f6;
  border-top: 1px solid var(--borde);
  padding: 64px 24px 32px;
}

@media(min-width:768px) {
  .footer {
    padding: 64px 48px 32px;
  }
}

@media(min-width:1024px) {
  .footer {
    padding: 64px 96px 32px;
  }
}

.footer-inner {
  max-width: var(--max-ancho);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}

@media(min-width:768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(min-width:1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 12px;
  color: var(--gris-texto);
  margin-bottom: 12px;
  transition: font-weight .15s;
}

.footer-col a:hover {
  font-weight: 600;
  color: var(--negro);
}

.footer-copy {
  border-top: 1px solid #99a1af;
  padding-top: 24px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* ---- SVG ICONS inline (reusables) ---- */
svg {
  display: inline-block;
  vertical-align: middle;
}

/* Categoría de programa */
.programa-categoria-titulo {
  text-align: center;
  background: #e5e7eb;
  padding: 12px;
  border-radius: 5px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 600;
}