:root {
  --bg: #050505;              /* fondo principal muy oscuro */
  --bg-soft: #111827;         /* secciones suaves */
  --card: #020617;            /* tarjetas y bloques */
  --ink: #f9fafb;             /* texto base */
  --muted: #9ca3af;           /* texto secundario */
  --accent: rgb(219, 182, 117);          /* AMARILLO principal */
  --accent-soft: rgba(250, 204, 21, 0.12);
  --border: #374151;
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.75);
  --max-width: 1320px;
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.05), transparent 60%),
              #050505;
  color: var(--ink);
  line-height: 1.6;
}

/* Utilidades básicas */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-soft {
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.08), transparent 60%),
              linear-gradient(135deg, #020617, #020617 50%, #050505);
}

.section-contact {
  background: radial-gradient(circle at top, #1f2937, #020617);
}

.section-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

/* TÍTULOS EN AMARILLO */
.hero-text h1,
.section-header h2,
.card h3,
.box-highlight h3 {
  color: var(--accent);
  line-height: 1.3;
}

.section-header h2 {
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
}

/* Subtítulos / párrafos secundarios */
.section-header p,
.hero-subtitle,
.card p,
.steps p {
  color: var(--muted);
  max-width: 620px;
}

/* Texto amarillo destacado dentro de párrafos */
.text-yellow {
  color: var(--accent);
  font-weight: 600;
}

/* Grid genérico */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2rem;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 20% 20%, #facc15, #f97316);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #020617;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.logo-text strong {
  letter-spacing: 0.04em;
}

.logo-text span {
  font-size: 0.75rem;
  display: block;
  color: var(--muted);
}


/* Enlace del logo (opcional, por si clican al inicio) */
.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Imagen del logo */
.logo-img {
  height: 95px;         /* ajusta según tu logo */
  width: auto;
  display: block;
}

/* Navegación */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.94rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #facc15, #f97316);
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav .nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.5);
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.15), transparent);
  color: var(--accent);
}

/* Toggle mobile */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Icono en títulos de sección */
.section-header h2 .section-icon {
  display: inline-block;
  /*margin-right: 0.1rem;*/
  font-size: 1.25em;
  vertical-align: middle;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.08), transparent 60%),
              linear-gradient(135deg, #020617, #020617 50%, #050505);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2; /* por encima del fondo */
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 5vw, 2.7rem);
  margin: 0 0 1rem;
}

.hero-subtitle {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  color: #e5e7eb;
  font-size: 0.98rem;
}

.hero-benefits li + li {
  margin-top: 0.3rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 90%;
}

.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
  max-width: 420px;
}

/* Fondo de imagen del hero */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-unimaat1.webp"); /* CAMBIA ESTA RUTA A TU IMAGEN */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.22; /* cuánta imagen se ve */
  z-index: 0;
}

/* Capa oscura encima de la imagen para que el texto se lea bien */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.08), transparent 60%), linear-gradient(135deg, #020617a3, #020617d1 50%, #0505058c);
  mix-blend-mode: normal;
  z-index: 1;
}


/* BOTONES */
.btn-primary,
.btn-outline,
.btn-link {
  font-family: inherit;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* BOTÓN PRINCIPAL - GRANDE Y AMARILLO */
.btn-primary {
  padding: 0.95rem 2.4rem;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(120deg, #facc15, #eab308);
  color: #111827;
  box-shadow: 0 18px 40px rgba(250, 204, 21, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Botón formulario un poco menos alto si quieres */
.section-contact .btn-primary {
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
}

/* Botón contorno */
.btn-outline {
  padding: 0.8rem 1.7rem;
  font-size: 0.95rem;
  border: 1px solid rgba(250, 204, 21, 0.7);
  background: transparent;
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(250, 204, 21, 0.06);
}

/* Botón link */
.btn-link {
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
  color: var(--accent);
  font-size: 0.92rem;
  text-decoration: none;
}

.btn-link::after {
  content: "↗";
  font-size: 0.85rem;
}

/* Botón rojo para "Ver oferta académica" */
.btn-red {
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  background: linear-gradient(120deg, #ef4444, #b91c1c);
  color: #f9fafb;
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;  
}

.btn-red:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  text-decoration: none;  
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* Tarjeta hero */
.hero-card {
  background: rgba(2, 6, 23, 0.98);
  border-radius: 24px;
  padding: 1.8rem 1.7rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background:
    radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.2), transparent 50%),
    radial-gradient(circle at 100% 0, rgba(248, 250, 252, 0.08), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-card > * {
  position: relative;
}

.hero-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: var(--accent);
}

.hero-card h2 {
  margin: 1rem 0 0.6rem;
  font-size: 1.25rem;
}

.hero-card p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.hero-card-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* Resaltar "100% Online" con círculo/pastilla que se dibuja de inicio a fin */
.hero-highlight {
  position: relative;
  display: inline-block;
  padding: 0.1em 0.6em;
  font-weight: 700;
  color: var(--accent); /* tu amarillo */
  z-index: 0;
}

/* Fondo suave detrás del texto */
.hero-highlight::before {
  content: "";
  position: absolute;
  inset: 0.1em 0.25em;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0%, rgba(250, 204, 21, 0.3), transparent 60%),
              rgba(15, 23, 42, 0.85);
  z-index: -2;
}

/* Contorno que se dibuja desde un punto inicial hasta el final */
.hero-highlight::after {
  content: "";
  position: absolute;
  inset: -0.1em -0.3em;
  border-radius: 999px;
  border: 2px solid #facc15;
  z-index: -1;

  /* Punto de partida: colapsado en horizontal en el extremo izquierdo */
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 1;
}

/* Contenedor del video en la sección "¿Para quién?" */
.video-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.video-frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.8);
  background: #020617;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Columna derecha de "¿Cómo funciona?" con imagen */
.how-image-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;      /* centramos contenido horizontalmente */
  align-self: center;       /* centramos la COLUMNA en la altura de la grid */
}

.how-image-frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.8);
  background: #020617;
}

.how-image-frame img {
  display: block;
  width: 100%;
  height: auto;             /* mantiene proporción sin forzar alto */
  object-fit: cover;
}

.how-image-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* Imagen en sección "Respaldo institucional" (columna izquierda) */
.support-image-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  align-self: center;       /* centra la columna en altura dentro de la grid */
}

.support-image-frame {
  position: relative;
  width: 100%;
  max-width: 490px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.8);
  background: #020617;
}

.support-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.support-image-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* Alineación vertical especial para la sección de respaldo */
.two-cols-respaldo {
  align-items: center;  /* centra verticalmente ambas columnas */
}

/* Grid de testimonios en video (4 verticales) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Caja de cada testimonio */
.testimonial-video-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

/* Marco del video vertical */
.testimonial-video-frame {
  position: relative;
  width: 100%;
  max-width: 260px;             /* ancho máximo del video */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.8);
  background: #020617;
  aspect-ratio: 9 / 16;         /* formato vertical tipo reel / short */
}

.testimonial-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Texto debajo del video */
.testimonial-caption {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.hero-card-list li + li {
  margin-top: 0.25rem;
}

/* Cards genéricas */
.card {
  background: rgba(2, 6, 23, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.4rem 1.4rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.7);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.card-accent {
  background: radial-gradient(circle at top left, var(--accent-soft), rgba(2, 6, 23, 0.98));
}

/* Listas decoradas */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.check-list li + li {
  margin-top: 0.35rem;
}

.check-list li::before {
  content: "✔";
  color: #facc15;
  margin-right: 0.45rem;
}

.bullet-list {
  list-style: disc;
  padding-left: 1.1rem;
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* Caja resaltada */
.box-highlight {
  background: rgba(2, 6, 23, 0.98);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  border: 1px dashed rgba(250, 204, 21, 0.7);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li + li {
  margin-top: 1rem;
}

.steps h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

/* Graduados */
.grad-grid .card {
  text-align: left;
}

.grad-photo {
  width: 100%;
  height: 130px;
  border-radius: 14px;
  margin-bottom: 0.8rem;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(120deg, #facc15, #f97316);
}

/* FAQ */
.faq details {
  background: rgba(2, 6, 23, 0.98);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  padding: 0.8rem 1rem;
}

.faq details + details {
  margin-top: 0.8rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
}

.faq p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== Contacto: datos directos (tel, correo, maps) ===== */
.contact-info {
  margin: 1.5rem 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.contact-item i {
  font-size: 1.3rem;
  margin-top: 0.15rem;
  color: var(--accent); /* amarillo institucional */
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-item a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(250, 204, 21, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-item a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.contact-alt .btn-red {
  margin-top: 0.5rem;
}

.contact-map {
  margin-top: 1.6rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
}

.contact-map-header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.contact-map-header i {
  font-size: 1.4rem;
  margin-top: 0.1rem;
  color: var(--accent);
}

.contact-map-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-map-embed {
  margin-top: 0.4rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(75, 85, 99, 0.8);
}


.contact-map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 220px; /* por si el formulario es muy pequeño */
}

.contact-header {
  margin-bottom: 2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.contact-column {
  min-width: 0;
}

/* ===== Tarjetas de la columna derecha ===== */

.contact-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.2rem;
}

.contact-alt-card {
  margin-top: 1rem;
}

.contact-alt-card .btn-red {
  width: 100%;
  text-align: center;
}

/* Ajustar márgenes internos cuando contact-info está dentro de tarjeta */
.contact-card .contact-info {
  margin: 0 0 0.8rem;
}

/* ===== Tarjeta mapa ===== */

.contact-card-map {
  padding-bottom: 1.1rem;
}

.contact-header p {
  max-width: 100%;
}


/* Contacto / Formulario */
.contact-alt {
  margin-top: 1.5rem;
}

.contact-alt-label {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.form {
  background: rgba(2, 6, 23, 0.98);
  border-radius: 18px;
  padding: 2.5rem 1.5rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
}

.form-group {
  margin-bottom: 0.95rem;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #020617;
  color: var(--ink);
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  outline: none;
}


.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.4);
}

.form-message {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-message.ok {
  color: #bbf7d0;
}

.form-message.error {
  color: var(--danger);
}

/* Estado "enviando" / deshabilitado para botones */
.btn-primary.is-loading,
.btn-primary:disabled,
.btn-red.is-loading,
.btn-red:disabled {
  opacity: 0.7;
  cursor: default;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.form-terms {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 2.2;
}

.form-terms label {
  display: flex;
  align-items: center;   /* 👈 centrado vertical */
  gap: 0.5rem;
}

.form-terms input[type="checkbox"] {
  margin-top: 0.15rem;
}

.form-terms a {
  color: var(--accent);
  text-decoration: underline;
}

.form-terms a:hover {
  text-decoration: none;
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-top: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
  padding: 1.4rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  text-align: center;
  color: var(--muted);
}

.footer-small {
  font-size: 0.78rem;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 120;
}

.whatsapp-float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #22c55e, #15803d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(15, 23, 42, 0.9);
}

.whatsapp-icon {
  font-size: 1.8rem;
  color: #f9fafb;
  display: block;
}


/* Pequeña animación al pasar el mouse */
.whatsapp-float-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}


/* Aviso de Privacidad */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.2rem;
}

.aviso-card {
  width: 100%;
  max-width: var(--max-width);
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.06), transparent 55%),
              radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.08), transparent 55%),
              rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  padding: 2.4rem 2rem;
}

@media (min-width: 768px) {
  .aviso-card {
    padding: 2.8rem 3rem;
  }
}

.aviso-header {
  margin-bottom: 1.8rem;
}

.aviso-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.1rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(250, 204, 21, 0.55);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.aviso-header h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
}

.aviso-header p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.aviso-content {
  margin-top: 1.8rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(75, 85, 99, 0.7);
  padding: 1.6rem 1.3rem;
  max-height: calc(100vh - 11rem);
  overflow: auto;
}

.aviso-body h2 {
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
  color: var(--text);
}

.aviso-body h3 {
  font-size: 0.98rem;
  margin: 1.2rem 0 0.4rem;
  color: var(--text);
}

.aviso-body p {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
}

.aviso-body ul {
  margin: 0 0 0.8rem 1.2rem;
  padding: 0;
}

.aviso-body li {
  margin-bottom: 0.4rem;
}

.aviso-body a {
  color: var(--accent);
}

/* Tabla responsiva para Transferencias */
.table-wrapper {
  margin: 1rem 0 1.2rem;
  overflow-x: auto;
}

.transfer-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
  font-size: 0.9rem;
}

.transfer-table th,
.transfer-table td {
  border: 1px solid rgba(75, 85, 99, 0.8);
  padding: 0.6rem 0.7rem;
  vertical-align: top;
}

.transfer-table th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--accent);
  text-align: left;
  font-weight: 600;
}

.transfer-table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.8);
}

.transfer-table tr:nth-child(odd) td {
  background: rgba(15, 23, 42, 0.6);
}

/* Versión responsiva (móvil) */
@media (max-width: 640px) {
  .transfer-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
  }

  .transfer-table thead {
    display: none; /* ocultamos encabezados en móvil */
  }

  .transfer-table tbody tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.8rem;
    margin-bottom: 0.9rem;
    background: rgba(15, 23, 42, 0.95);
    color: var(--text);
  }

  .transfer-table tbody td {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.65fr);
    column-gap: 0.75rem;
    padding: 0.35rem 0;
    border: none;
    background: transparent;
    position: relative;
  }

  /* divisor HORIZONTAL entre bloques (Finalidad / Consentimiento) */
  .transfer-table tbody td + td {
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
  }

  /* etiqueta (columna izquierda) + divisor VERTICAL */
  .transfer-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    padding-right: 0.55rem;
    margin-right: 0.45rem;
    border-right: 1px solid rgba(148, 163, 184, 0.35);
  }

  /* última celda (Consentimiento) centrada verticalmente */
  .transfer-table tbody td:last-child {
    align-items: center;
  }

  .transfer-table tbody td:last-child .consent-pill {
    justify-self: flex-start;
  }

  .aviso-card {
    padding: 2.4rem 0.5rem;
  }

  .page-wrapper {
    padding: 1rem 0.5rem;
  }
}
/* END */

.aviso-footer {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.aviso-footer a {
  color: var(--accent);
  text-decoration: underline;
}

.aviso-footer a:hover {
  text-decoration: none;
}

/* ===== Oferta académica: bloques por carrera ===== */
.degree-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.degree-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75); /* similar a otras cards */
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.card.card-accent .degree-item {
  background: rgba(24, 35, 58, 0.9);
  border-color: rgba(250, 204, 21, 0.35);
}

.degree-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 204, 21, 0.08); /* halo amarillo */
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: var(--accent); /* amarillo institucional */
  font-size: 1.2rem;
}

.degree-text h4 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.degree-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Pequeño ajuste en móvil: más aire entre bloques */
@media (max-width: 640px) {
  .degree-item {
    padding: 0.7rem 0.9rem;
  }
}

/* Opcional: afinar la separación de las tarjetas de licenciaturas */
.degree-card {
  padding: 0.9rem 1rem;
}

.degree-card .degree-item {
  background: transparent; /* ya está dentro de la card */
  border: none;
  padding: 0;
}

/* ===== Resaltado de palabras clave (solo color de texto) ===== */
.hl-green-text {
  color: #a3ff4f;            /* verde fosforescente */
  font-weight: 600;
}

.hl-red-text {
  color: #ff4f4f;            /* rojo intenso */
  font-weight: 600;
}

/* ===== Resaltado de palabras clave (fondo coloreado) ===== */
.hl-green-bg {
  background-color: #a3ff4f; /* verde fosfo */
  color: #020617;            /* texto oscuro para contraste */
  padding: 0 0.18em;
  border-radius: 4px;
  font-weight: 600;
}

.hl-red-bg {
  background-color: #ff4f4f; /* rojo intenso */
  color: #020617;
  padding: 0 0.18em;
  border-radius: 4px;
  font-weight: 600;
}

/* ===== Carrusel de opiniones (Google reviews) ===== */
/* ===== Carrusel de opiniones (Google reviews) ===== */
.reviews-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  position: relative;
}

/* Ventana que recorta el track */
.reviews-window {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Pista que se mueve con transform */
.reviews-track {
  display: flex;
  transition: transform 0.4s ease;
  /* Elimina espacios extra entre slides */
  margin: 0;
  padding: 0;
}

/* ==== Desktop: EXACTAMENTE 3 visibles ==== */
.review-slide {
  box-sizing: border-box;
  flex: 0 0 calc(33.333% - 1rem); /* 3 slides con gap incluido */
  min-width: calc(33.333% - 1rem);
  padding: 0;
  margin: 0 0.5rem; /* Espacio entre slides */
  scroll-snap-align: center; /* Para centrado */
}

.review-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.6);
  object-fit: cover;
}

/* Flechas */
.reviews-arrow {
  border: none;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  width: 32px;
  height: 80px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  z-index: 2;
}

.reviews-arrow:hover {
  background: rgba(250, 204, 21, 0.95);
  color: #020617;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.reviews-arrow:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

/* ==== Móvil: 1 tarjeta a la vez ==== */
@media (max-width: 768px) {
  .reviews-carousel {
    gap: 0.5rem;
  }

  .reviews-window {
    width: 100%;
  }

  .review-slide {
    flex: 0 0 calc(100% - 1rem); /* 100% menos el margen */
    min-width: calc(100% - 1rem);
    margin: 0 0.5rem;
    scroll-snap-align: start; /* Alineación en móvil */
  }
  
  /* Ajustar flechas en móvil */
  .reviews-arrow {
    height: 60px;
    width: 28px;
  }
}

/* Opcional: Para centrar el primer slide en móvil */
@media (max-width: 768px) {
  .reviews-window {
    display: flex;
    justify-content: center;
  }
}




/* Responsive */
@media (max-width: 960px) {
  .hero-inner,
  .two-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin-top: 1.8rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Un poco menos espacio entre secciones en pantallas medianas */
  .section {
    padding: 3.8rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }
  
  .mv-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-column-info {
    max-width: 520px;
    width: 100%;
  }

  .contact-column-info,
  .contact-column-form {
    margin-inline: auto;
  }

  .contact-card-map .contact-map-embed iframe {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .site-header {
    border-bottom-color: rgba(15, 23, 42, 0.6);
  }

  .main-nav {
    position: absolute;
    top: var(--nav-height);
    right: 0;
    left: 0;
    padding: 0.7rem 1.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 1.5rem;
  }

  /* Títulos de sección centrados en tablet/móvil */
  .section-header {
    text-align: center;
  }

  .section-header p {
    margin-left: auto;
    margin-right: auto;
  }

  /* Que el contenido tipo dos columnas no se vea tan pegado */
  .two-cols {
    row-gap: 2.2rem;
  }
  
  .contact-info {
    margin-bottom: 1.4rem;
  }
  
  .contact-map {
    margin-top: 1.2rem;
  }

  .contact-map-embed iframe {
    height: 200px;
  }
  
   /* Títulos de sección centrados en tablet/móvil */
  .section-header {
    text-align: center;
  }

  .section-header p {
    margin-left: auto;
    margin-right: auto;
  }

  /* Que el contenido tipo dos columnas no se vea tan pegado */
  .two-cols {
    row-gap: 2.2rem;
  }
}

@media (max-width: 600px) {
  /* Grid de testimonios a una sola columna */
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Espaciado general un poco más compacto en móvil */
  .section {
    padding: 3.2rem 0;
  }

  /* Títulos más pequeños en móvil */
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.45rem;
  }

  /* Botones: permitir que el texto largo haga salto de línea */
  .btn-primary,
  .btn-red,
  .btn-outline {
    padding: 0.75rem 1.6rem;
    font-size: 0.9rem;
    white-space: normal;      /* 👈 se permite salto de línea */
    text-align: center;
    max-width: 100%;
  }

  /* Botón principal del hero a lo ancho en móvil */
  .hero-cta {
    align-items: stretch;
  }

  .hero-cta .btn-primary {
    width: 100%;
    justify-content: center;
  }
  
  .hero-cta {
    width: 100%;
  }
  
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
  
  .whatsapp-float-btn {
    width: 50px;
    height: 50px;
  }
  
  .contact-card {
    padding-inline: 1rem;
  }

  .contact-card-map .contact-map-embed iframe {
    height: 200px;
  }
  
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.7rem;
  }

  .section-header h2 {
    font-size: 1.35rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  /* Un poco menos de sombra y tamaño visual en tarjetas para que no se sienta tan pesado */
  .card,
  .form,
  .hero-card {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.75);
  }
  
  .hero-benefits {
  margin: 0 0 .55rem;
  }
  
  .hero-card {
    margin-top: -1rem;
  }
  
  .section-header {
    margin-bottom: 0rem;
  }
  
  .how-image-box {
    margin-top: -2rem;
  }
  
  /* Cambiar el orden de las columnas en móvil */
  .two-cols-respaldo > :first-child {
    order: 2;  /* la imagen pasa abajo */
  }

  .two-cols-respaldo > :last-child {
    order: 1;  /* el texto pasa arriba */
  }
  
  .section-cta {
    margin-top: 1.5rem;
    text-align: center;
  }
  
  .btn-primary, .btn-red, .btn-outline {
    font-size: 0.8rem;
  }
  
  .contact-alt-label {
    margin: 0 0 1rem;
  }
  
  .steps p {
    margin-top: 5px;
  }
  
  .hero-text h1, .section-header h2, .card h3, .box-highlight h3 {
    line-height: 1;
  }
  
  .section-header p {
    margin-top: 5px;
  }
  
  .steps {
    margin-top: 15px;
  }
  
  .testimonial-caption {
    margin-top: -.5rem;
  }
  
  .section-contact .btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  
  .hero {
    padding-bottom: 2.5rem;
  }
  
  .logo-img {
    height: 75px;
    width: auto;
    display: block;
  }
  
}


