@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Philosopher:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --azul-light: #1c2b5a58;
  --azul-oscuro: #1C2B5A;

  --blanco: #FFFFFF;
  --negro: #000000;

  --magenta-light: rgb(255, 241, 248);
  --magenta-light-hover: rgb(255, 225, 240);
  --magenta-oscuro: rgb(159, 39, 101);
  --magenta-hover: rgb(176, 45, 112);

  --amarillo: #ffb738;

  --bg-accent: #FCF2F5;
  --bg-accent-2: #FFFBF0;
  --bg-accent-3: #F6F3F7;

  --text-heading: #3A2E33;
  --text-body: #534f51;
  --text-soft: #74686e;
  --text-muted: #A89CA3;

  --border-light: rgba(92, 79, 86, 0.08);
  --border-medium: rgba(92, 79, 86, 0.15);
  --border-dark: rgba(92, 79, 86, 0.25);

  --shadow-card: 0 12px 35px -10px rgba(92, 79, 86, 0.413);
  --shadow-elevated: 0 30px 60px -15px rgba(194, 155, 56, 0.15);
  --shadow-dark: 0 20px 50px rgba(58, 46, 51, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

p {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-body);
}

body {
  font-family: "Nunito", "Quicksand", sans-serif;
  background-color: var(--blanco);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* ---- PATRÓN DE FONDO ANDINO (grid sutil y elegante en modo claro) ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,
      transparent, transparent 79px,
      rgba(194, 155, 56, 0.03) 79px,
      rgba(194, 155, 56, 0.03) 80px),
    repeating-linear-gradient(90deg,
      transparent, transparent 79px,
      rgba(194, 155, 56, 0.03) 79px,
      rgba(194, 155, 56, 0.03) 80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

/* ======================================================
   ICONOS ANDINOS FLOTANTES DE FONDO
   ====================================================== */
.andino-bg-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* ======================================================
   ESTRUCTURA GENERAL DE SECCIONES
   ====================================================== */
.seccion {
  position: relative;
  z-index: 1;
  padding: 120px 40px;
  width: 100%;
  overflow: hidden;
}

.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.seccion-header {
  text-align: center;
  margin-bottom: 70px;
}

.seccion-tag {
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 20px;
  font-weight: 700;
  display: inline-block;
  background: var(--azul-light);
  padding: 6px 16px;
  border-radius: 20px;
}

.seccion-titulo {
  font-family: "Philosopher", "Lora", serif;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--azul-oscuro);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.seccion-titulo span {
  font-style: italic;
  color: var(--amarillo);
  font-weight: 400;
}

/* ======================================================
   SEPARADORES
   ====================================================== */
.separador-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  position: relative;
  z-index: 10;
  margin: -20px 0;
}

.separador-full .linea {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amarillo), transparent);
}

.separador-full .icono {
  padding: 0 24px;
  color: var(--amarillo);
  font-size: 20px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 90;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}
  
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 80px;
  background: var(--azul-oscuro);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(92, 79, 86, 0.04);
  transition: all 0.3s ease;
}

.nav-logo,
.nav-links,
.nav-actions {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-logo {
  justify-content: flex-start;
}

.nav-logo .logo-img {
  height: 45px;
  width: auto;
  color: var(--magenta);
  object-fit: contain;
}

.nav-links {
  justify-content: center;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  display: flex;
}

.nav-links a {
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blanco);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--amarillo);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--amarillo);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  justify-content: flex-end;
  gap: 16px;
}

.nav-btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  background: var(--magenta-oscuro);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn:hover {
  background: var(--magenta-hover);
  color: var(--blanco);
  transform: translateY(-2px);
}

.nav-user {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 20px;
  background: var(--blanco);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-elevated);
  border-radius: var(--radius-md);
  width: 200px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 35px;
  width: 12px;
  height: 12px;
  background: var(--blanco);
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
  transform: rotate(45deg);
}

.nav-user .user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  text-decoration: none;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.user-dropdown a:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.user-dropdown a:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.user-dropdown a:hover {
  background: var(--magenta-light);
  color: var(--magenta);
  padding-left: 26px;
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 20px;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(120deg,
        #5A1838 0%,
        #7A1D4C 50%,
        #992560 100%);
}

.chacana-deco {
  position: absolute;
  width: 600px;
  height: 600px;
  z-index: -1;
  fill: var(--azul-oscuro);
  animation: rotate-slow 120s linear infinite;
  opacity: 0.1;
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.04);
  }

  to {
    transform: rotate(360deg) scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-strip {
  background: var(--amarillo);
  width: 100%;
  padding: 8px 0;
  text-align: center;
  position: relative;
  margin-top: 80px;
  z-index: 10;
}

.hero-eyebrow {
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--azul-oscuro);
  margin: 0;
  display: inline-block;
}

.hero-title {
  font-family: "Philosopher", "Lora", serif;
  font-size: clamp(48px, 6.5vw, 82px);
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--amarillo);
  font-weight: 400;
  padding-right: 5px;
}

.hero-subtitle {
  font-family: "Nunito", sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--blanco);
  margin-bottom: 48px;
  line-height: 1.6;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--magenta-oscuro);
  color: #ffffff;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px var(--magenta-glow);
}

.hero-cta:hover {
  background: var(--magenta-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(200, 90, 117, 0.3);
}

.hero-cta svg {
  transition: transform 0.4s ease;
}

.hero-cta:hover svg {
  transform: translateX(6px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 18px 30px;
  background: var(--blanco);
  color: var(--text-heading);
  border: 1px solid var(--border-medium);
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.4s ease;
}

.hero-cta-secondary:hover {
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: 0 8px 20px var(--magenta-dim);
  transform: translateY(-2px);
}

/* ======================================================
   SECCION STATS
   ====================================================== */
.seccion-stats {
  background-color: var(--blanco);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.stat-item {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 50px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-light);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-numero {
  font-family: "Philosopher", serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  color: var(--amarillo);
  line-height: 1;
  margin-bottom: 16px;
}

.stat-label {
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
}

/* ======================================================
   SECCION AVAL ACADÉMICO
   ====================================================== */
.seccion-aval {
  background-color: var(--blanco);
}

.aval-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 30px;
}

.aval-card {
  background: var(--blanco);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aval-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-5px);
}

.aval-card--destacado {
  border-color: var(--magenta-border);
  background: var(--bg-accent);
}

.aval-img {
  width: 100%;
  height: 75%;
  border-radius: 12px;
  background: var(--magenta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.aval-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aval-nombre {
  font-family: "Philosopher", serif;
  font-size: 20px;
  color: var(--text-heading);
  font-weight: 700;
  text-align: center;
}

.aval-cargo {
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-body);
  text-align: center;
}

.aval-pais {
  display: inline-block;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blanco);
  background: var(--azul-light);
  padding: 6px 16px;
  border-radius: 20px;
  align-self: center;
  margin-top: 8px;
}

.aval-nota {
  font-size: 15px;
  color: var(--text-body);
  text-align: center;
  margin-top: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ======================================================
   SECCION VIDEO
   ====================================================== */
.seccion-video {
  background-color: var(--blanco);
}

.video-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: var(--blanco);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.video-meta-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: var(--text-body);
}

.video-meta-item svg {
  color: var(--amarillo);
  font-size: 24px;
  flex-shrink: 0;
}

/* ======================================================
   SECCION CONFIANZA
   ====================================================== */
.seccion-confianza {
  background-color: var(--blanco);
}

.confianza-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 30px;
}

.confianza-card {
  flex: 1;
  max-width: 450px;
  min-width: 300px;
  background: var(--blanco);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
}

.confianza-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.confianza-icon {
  color: var(--amarillo);
  font-size: 32px;
}

.confianza-titulo {
  font-family: "Philosopher", serif;
  font-size: 20px;
  color: var(--text-heading);
  font-weight: 700;
}

.confianza-desc {
  font-size: 15px;
  color: var(--text-body);
  flex-grow: 1;
}

.confianza-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--amarillo);
  text-decoration: none;
  margin-top: 8px;
  transition: gap 0.2s;
}

.confianza-link:hover {
  gap: 12px;
}

/* ======================================================
   SECCION 60 DIPLOMADOS ARCHIVO
   ====================================================== */
.seccion-archivo {
  background-color: var(--blanco);
}

.archivo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.archivo-desc {
  font-size: 18px;
  color: var(--text-body);
}

.archivo-temas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tema-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  background: var(--blanco);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
  padding: 10px 20px;
  border-radius: 30px;
  cursor: default;
  transition: all 0.2s ease;
}

.tema-tag:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(92, 79, 86, 0.15);
  border-color: var(--border-medium);
}

/* ======================================================
   SECCION DIPLOMADOS
   ====================================================== */
.seccion-diplomados {
  background-color: var(--blanco);
  background-image: none;
}

.diplomados-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.diplomado-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 350px;
  flex-shrink: 0;
  flex-grow: 0;
}

.diplomado-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  background: var(--blanco);
}

.diplomado-img-container {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.diplomado-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.8s ease;
}

.diplomado-card:hover .diplomado-img {
  transform: scale(1.05);
}

.diplomado-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(253, 252, 248, 0) 0%, rgba(253, 252, 248, 0.8) 100%);
}

.diplomado-categoria {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--amarillo);
  font-family: "Nunito", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.diplomado-body {
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 2;
  margin-top: -20px;
}

.diplomado-nombre {
  font-family: "Philosopher", serif;
  font-size: 22px;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 12px;
}

.diplomado-desc {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.diplomado-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.diplomado-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
}

.diplomado-nivel {
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  color: var(--amarillo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.diplomado-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.diplomado-precio {
  font-family: "Nunito", sans-serif;
  font-size: 26px;
  color: var(--text-heading);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.diplomado-precio small {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 600;
}

.diplomado-acciones {
  display: flex;
  gap: 10px;
}

.btn-icon-cart {
  background: var(--magenta-light);
  border: 1px solid var(--border-medium);
  color: var(--magenta-oscuro);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-icon-cart:hover {
  background: var(--magenta-light-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--magenta-glow);
}

.btn-icon-cart.added {
  background: rgba(212, 162, 76, 0.2) !important;
  border-color: var(--amarillo) !important;
  color: var(--amarillo) !important; 
  cursor: default;
  box-shadow: none !important;
  transform: none !important;
}

.btn-buy {
  background: var(--magenta-oscuro);
  color: #fff;
  border: none;
  padding: 0 20px;
  height: 48px;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-buy:hover {
  background: var(--magenta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--magenta-glow);
}

.btn-conocer-mas {
  background: var(--blanco);
  border: 1.3px solid var(--azul-light);
  color: var(--text-heading);
  padding: 0 24px;
  margin-top: 1rem;
  height: 44px;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 22px;
  transition: all 0.3s ease;
}

.btn-conocer-mas:hover {
  background: var(--bg-accent);
  border-color: var(--magenta);
  color: var(--magenta);
  transform: translateY(-2px);
}

/* ---- ESTADO VACÍO ---- */
.diplomados-empty-state,
.libros-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--magenta-light);
  border: 1px dashed var(--magenta-border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 0 auto;
}

.diplomados-empty-state svg,
.libros-empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--magenta);
  margin-bottom: 24px;
}

.diplomados-empty-state h3,
.libros-empty-state h3 {
  font-family: "Philosopher", serif;
  font-size: 24px;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.diplomados-empty-state p,
.libros-empty-state p {
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.6;
}

/* ======================================================
   SECCION FORMAS DE PAGO
   ====================================================== */
.seccion-pago {
  background-color: var(--blanco);
}

.pago-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.pago-card {
  background: var(--blanco);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}

.pago-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.pago-card--descuento {
  border-color: var(--magenta-border);
  background: var(--bg-accent);
}

.pago-card--contacto {
  border-color: var(--magenta-border);
  background: var(--blanco-3);
}

.pago-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--magenta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 10px;
}

.pago-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pago-titulo {
  font-family: "Philosopher", serif;
  font-size: 20px;
  color: var(--text-heading);
  font-weight: 700;
  text-align: center;
}

.pago-desc {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  color: var(--text-body);
  flex-grow: 1;
  text-align: center;
}

.pago-desc strong {
  color: var(--magenta-oscuro);
}

.pago-tag {
  display: inline-block;
  font-family: "Nunito", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blanco);
  background-color: var(--azul-light);
  border: 1px solid var(--magenta-border);
  padding: 6px 14px;
  border-radius: 20px;
  align-self: center;
}

/* ======================================================
   SECCION COMUNIDAD
   ====================================================== */
.seccion-comunidad {
  background-color: var(--blanco);
}

.seccion-desc-light {
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
}

.comunidad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.comunidad-card {
  background: var(--blanco);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.comunidad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.comunidad-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amarillo);
}

.comunidad-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.comunidad-card-titulo {
  font-family: "Philosopher", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
}

.comunidad-card-desc {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.7;
  flex-grow: 1;
}

.comunidad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  margin-top: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.comunidad-btn--principal {
  background: var(--magenta-oscuro);
  color: #fff;
}

.comunidad-btn--principal:hover {
  background: var(--magenta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--magenta-glow);
}

.comunidad-btn--secundario {
  background: var(--magenta-oscuro);
  color: var(--blanco);
  border: 1px solid var(--magenta-border);
}

.comunidad-btn--secundario:hover {
  background: var(--magenta-hover);
  border-color: var(--magenta);
  transform: translateY(-2px);
}

/* ======================================================
   SECCION LIBROS (rediseñada general inferior)
   ====================================================== */
.libros-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.libros-texto .seccion-tag,
.afiliacion-texto .seccion-tag,
.nosotros-texto .seccion-tag {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  color: var(--blanco);
  font-family: "Nunito", sans-serif;
}

.libros-desc,
.afiliacion-desc {
  font-size: 18px;
  color: var(--text-body);
  margin-top: 24px;
}

.libros-desc strong {
  color: var(--magenta);
}

.libros-destaque {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.libros-icon-grande {
  font-size: 80px;
  color: var(--magenta);
  opacity: 0.8;
}

.libros-idiomas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.idioma-tag {
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  padding: 8px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: default;
}

.idioma-tag:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.libros-amazon-nota {
  font-size: 13px;
  color: var(--text-soft);
  box-shadow: var(--shadow-card);
}

/* ======================================================
   SECCION LIBROS (Original)
   ====================================================== */
.seccion-libros {
  background-color: var(--blanco);
  background-image: none;
}

.libros-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.libro-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 350px;
  flex-shrink: 0;
  flex-grow: 0;
}

.libro-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.libro-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--magenta);
}

.libro-nombre {
  font-family: "Philosopher", serif;
  font-size: 20px;
  color: var(--text-heading);
  margin-bottom: 12px;
  font-weight: 700;
}

.libro-desc {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ======================================================
   SECCION AFILIACIÓN
   ====================================================== */
.seccion-afiliacion {
  background-color: var(--blanco);
}

.afiliacion-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.afiliacion-desc {
  font-size: 18px;
  color: var(--text-body);
  margin-top: 24px;
}

.afiliacion-desc strong {
  color: var(--magenta);
}

.afiliacion-beneficios {
  background: var(--blanco);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.beneficio-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  color: var(--text-body);
}

.beneficio-icon {
  width: 36px;
  height: 36px;
  background: var(--azul-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  flex-shrink: 0;
}

.beneficio-precio {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.beneficio-monto {
  font-family: "Philosopher", serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--amarillo);
  line-height: 1;
}

.beneficio-periodo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
}

/* ======================================================
   SECCION NOSOTROS
   ====================================================== */
.seccion-nosotros {
  background-color: var(--blanco);
  background-image: none;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.nosotros-img-wrapper {
  position: relative;
  padding: 0 20px 20px 0;
}

.nosotros-img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  z-index: 1;
  box-shadow: var(--shadow-elevated);
}

.nosotros-texto {
  text-align: left;
}

.nosotros-texto-principal p {
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
}

.nosotros-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer-main {
  background: var(--azul-oscuro);
  color: var(--blanco);
  position: relative;
  z-index: 1;
}

/* ---- FRANJA SEPARADORA SUPERIOR ---- */
.footer-franja {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 60px;
}

.footer-franja-linea {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 56, 0.4), transparent);
}

.footer-franja-icono {
  font-size: 12px;
  color: var(--amarillo);
  opacity: 0.7;
}

/* ---- CUERPO ---- */
.footer-cuerpo {
  padding: 48px 60px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- COLUMNA MARCA ---- */
.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-desc {
  font-family: "Nunito", sans-serif;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  line-height: 1.6 !important;
  margin-bottom: 18px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--magenta-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-social-link:hover {
  background: var(--magenta-hover);
}

/* ---- COLUMNAS LINKS ---- */
.footer-col-titulo {
  font-family: "Nunito", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amarillo);
  margin-bottom: 16px;
  opacity: 0.9;
}

.footer-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-lista a {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
}

.footer-lista a:hover {
  color: var(--amarillo);
}

.footer-lista a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--amarillo);
  transition: width 0.3s ease;
}

.footer-lista a:hover::after {
  width: 100%;
}

/* ---- CONTACTO ---- */
.footer-contacto-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-contacto-lista li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contacto-lista svg {
  flex-shrink: 0;
  color: var(--amarillo);
  opacity: 0.8;
}

.footer-contacto-lista a,
.footer-contacto-lista span {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.footer-contacto-lista a:hover {
  color: var(--amarillo);
}

.footer-contacto-lista a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--amarillo);
  transition: width 0.3s ease;
}

.footer-contacto-lista a:hover::after {
  width: 100%;
}

/* ---- BARRA INFERIOR ---- */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-copy,
.footer-hecho {
  font-family: "Nunito", sans-serif;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.28) !important;
  letter-spacing: 0.04em;
  margin: 0 !important;
}

.footer-bottom-sep {
  font-size: 8px;
  color: rgba(255, 183, 56, 0.35);
}

/* ======================================================
   MODAL DE INFORMACIÓN (GENÉRICO)
   ====================================================== */
.info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 46, 51, 0.4);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  padding: 20px;
}

.info-overlay.open {
  display: flex;
}

.info-modal {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  width: 600px;
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.info-overlay.open .info-modal {
  animation: infoFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.info-overlay.closing .info-modal {
  animation: infoFadeDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes infoFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes infoFadeDown {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
}

.info-header {
  padding: 24px 30px;
  background: var(--azul-oscuro);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-titulo {
  font-family: "Philosopher", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--blanco);
}

.info-body {
  padding: 32px 30px;
  overflow-y: auto;
  font-family: "Nunito", sans-serif;
  color: var(--text-body);
  line-height: 1.7;
}

.info-body h4 {
  color: var(--azul-oscuro);
  font-family: "Philosopher", serif;
  font-size: 18px;
  margin: 20px 0 10px;
}

.info-body p {
  margin-bottom: 15px;
  font-size: 15px;
}

.info-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-accent-3);
}

/* ======================================================
   CARRITO
   ====================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 43, 90, 0.45);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  backdrop-filter: blur(8px);
}

.cart-overlay.open {
  display: flex;
}

.cart-panel {
  width: 400px;
  height: 100vh;
  background: var(--blanco);
  box-shadow: -10px 0 50px rgba(28, 43, 90, 0.15);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

/* ---- HEADER ---- */
.cart-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--azul-oscuro);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-titulo {
  font-family: "Philosopher", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--blanco);
}

.cart-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.cart-close:hover {
  color: var(--amarillo);
}

/* ---- ITEMS ---- */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-icon {
  font-size: 26px;
  color: var(--amarillo);
}

.cart-item-info {
  flex: 1;
}

.cart-item-nombre {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.cart-item-tipo {
  font-size: 10px;
  font-weight: 700;
  color: var(--azul-oscuro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}

.cart-item-precio {
  font-family: "Philosopher", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--amarillo);
  align-self: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s ease;
  align-self: center;
}

.cart-item-remove:hover {
  color: #e05050;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
  font-family: "Nunito", sans-serif;
  font-size: 15px;
}

/* ---- FOOTER ---- */
.cart-footer {
  padding: 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--azul-oscuro);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-total-label {
  font-family: "Nunito", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.cart-total-valor {
  font-family: "Philosopher", serif;
  font-size: 28px;
  color: var(--amarillo);
  font-weight: 700;
}

.cart-pago-btn {
  width: 100%;
  background: var(--magenta-oscuro);
  color: var(--blanco);
  border: none;
  padding: 16px;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-pago-btn:hover {
  background: var(--magenta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(159, 39, 101, 0.35);
}

.cart-pago-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cart-nota {
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 14px;
}

/* ======================================================
   TOAST
   ====================================================== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-heading);
  color: white;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  z-index: 999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-dark);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ======================================================
   SCROLLBAR
   ====================================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--magenta-light);
}

::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-soft);
}

.nav-hamburger {
  display: none;
}

/* ======================================================
   1. NORMALIZACIÓN TIPOGRÁFICA RESPONSIVE (Base para <= 900px)
   ====================================================== */
@media (max-width: 900px) {

  /* Forzamos legibilidad en todos los textos de lectura */
  p,
  .seccion-desc,
  .nosotros-texto,
  .aval-nota,
  .archivo-texto-presentacion p,
  .libros-texto p,
  .footer-desc {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 400;
    color: var(--text-body);
  }

  /* Títulos con jerarquía clara y fluida */
  .seccion-titulo {
    font-size: clamp(28px, 6vw, 36px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin-bottom: 20px;
  }

  /* Etiquetas y roles (Stats, Avales) */
  .aval-cargo,
  .stat-label {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .aval-nombre {
    font-size: 22px !important;
    font-weight: 700 !important;
  }

  /* Botones con mejor área táctil y peso */
  .btn,
  .hero-cta,
  .hero-cta-secondary,
  .nav-btn span {
    font-size: 16px !important;
    font-weight: 600 !important;
  }
}

/* ======================================================
   2. MEDIA QUERIES POR RESOLUCIÓN (Orden Descendente)
   ====================================================== */

/* --- ESCRITORIO PEQUEÑO / LAPTOP (1770px) --- */
@media (max-width: 1770px) {
  nav {
    padding: 0 20px;
    justify-content: space-between;
  }

  .nav-logo .logo-img {
    height: 40px;
  }

  /* Activación Menú Hamburguesa */
  .nav-hamburger {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--blanco);
    background: var(--magenta-oscuro);
    padding: 10px;
    cursor: pointer;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--blanco);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    gap: 0;
    color: #000000;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 100;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    text-align: center;
    padding: 24px 20px;
    font-size: 18px;
    /* Texto grande para el menú overlay */
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-actions {
    gap: 12px;
  }

  .nav-btn {
    padding: 10px 16px;
    gap: 8px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

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

  .footer-col--marca {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 32px;
    align-items: start;
  }

  .footer-col--marca .footer-logo {
    grid-row: span 2;
    margin-bottom: 0.8rem;
    align-self: center;
  }
}

/* --- TABLETS Y LAPTOS (900px) --- */
@media (max-width: 900px) {
  .nav-btn span {
      font-size: 95% !important;
    }
  /* Grids a 1 columna */
  .libros-inner,
  .video-wrapper,
  .confianza-grid,
  .archivo-inner,
  .afiliacion-inner,
  .nosotros-grid {
    grid-template-columns: 1fr;
  }

  .hero-eyebrow {
    font-size: 85% !important;
    padding: 0 25px;
  }

  .natu-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pago-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Alineaciones centradas */
  .confianza-grid,
  .nosotros-img-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .seccion-titulo,
  .nosotros-texto {
    text-align: center !important;
  }

    .diplomado-acciones {
      gap: 12px;
    }

  .nosotros-links {
    justify-content: center;
  }

  .nosotros-grid {
    gap: 50px;
  }

  .video-meta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* --- TABLETS VERTICALES (768px) --- */
@media (max-width: 768px) {
  .nav-btn span{
    font-size: 90% !important;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--blanco);
    padding: 30px;
    gap: 15px;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    color: var(--negro) !important;
    padding: 15px 20px !important; 
    font-size: 16px !important;
    border-bottom: none !important; 
    text-align: left !important;   
    margin: 0 10px;
    border-radius: var(--radius-sm);
  }

  .hero-eyebrow {
    font-size: 15px !important;
    letter-spacing: 0.15em !important;
  }

  .hero-strip {
    padding: 12px 0 !important;
  }

  .hero-strip.scrolled {
    transform: translateY(-100%);
    opacity: 0;
    height: 0;
    padding: 0;
    visibility: hidden;
  }

  .seccion-archivo .seccion-tag {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }
  .seccion-archivo .seccion-titulo {
    text-align: center !important;
  }

  .natu-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px;
  }

  .natu-col-info {
    order: 1 !important;
    padding: 0 10px;
  }

  .natu-col-inscripcion {
    order: 2 !important;
    margin-top: 20px;
  }

  .nosotros-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .nosotros-texto {
    order: 1;
    text-align: center;
  }

  .nosotros-img-wrapper {
    display: none;
  }

  .hero-title {
    font-size: clamp(36px, 8vw, 48px);
  }

  .hero-subtitle {
    font-size: 18px !important;
    margin-bottom: 30px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
  }

  .hero-cta,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .user-dropdown {
    right: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

    .footer-cuerpo {
    padding: 40px 28px 32px;
  }

  .footer-franja {
    padding: 0 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-col--marca {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    padding: 16px 28px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .footer-bottom-sep {
    display: none;
  }
}

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

/* --- MÓVILES (685px - BOTONES SIN TEXTO) --- */
@media (max-width: 685px) {
  .nav-btn span {
    display: none !important;
  }

  .nav-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    justify-content: center;
  }

  .nav-btn svg {
    width: 22px;
    height: 22px;
  }

  .nav-actions {
    gap: 8px;
  }
}

/* --- MÓVILES ESTÁNDAR (640px) --- */
@media (max-width: 640px) {
  .seccion {
    padding: 80px 20px;
  }

  .hero {
    padding: 30px 20px 30px;
    min-height: 30vh;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  /* Marca: fila completa, alineada a la izquierda */
  .footer-brand {
    grid-column: span 2;
    text-align: left;
      display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  }

  .footer-logo {
    margin: 0 0 24px 0;
    height: auto;
    width: 160px;
    max-width: 100%;
  }

  .footer-brand .footer-desc {
    margin: 0 0 16px 0;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
    margin-bottom: 30px;
  }

  /* Explorar e Información: columna izquierda y derecha */
  .footer-links {
    text-align: left;
  }

  /* Contacto: ocupa las 2 columnas abajo */
  .footer-contact-info {
    grid-column: span 2;
  }

  /* Contact items en fila horizontal */
  .contact-item {
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }

  /* Footer bottom */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 6px;
  }

  .contact-item {
    flex-direction: column;
    gap: 10px;
  }

  .cart-overlay {
    align-items: flex-end;
    justify-content: center;
  }

  .cart-panel {
    width: 100%;
    height: 80vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }
}

/* --- MÓVILES PEQUEÑOS (580px a 400px) --- */
@media (max-width: 580px) {
  .pago-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-logo .logo-img {
    height: 30px;
  }

    .hero-eyebrow {
    font-size: 14px !important;
    letter-spacing: 0.1em !important;
  }

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

  .stat-item {
    padding: 30px 20px;
  }

    .footer-cuerpo {
    padding: 32px 20px 28px;
  }

  .footer-franja {
    padding: 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-col--marca {
    grid-column: span 2;
  }

  .footer-bottom {
    padding: 14px 20px;
  }
}

@media (max-width: 400px) {
  .diplomado-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .diplomado-acciones {
    flex-direction: column;
    gap: 12px;
  }

  .btn-buy {
    width: 100%;
  }
}

/* Móviles muy pequeños (360px) — todo a 1 col */
@media (max-width: 360px) {
  .footer-grid {
      grid-template-columns: 1fr;
    }
  
    .footer-col--marca {
      grid-column: span 1;
    }
}

/* ======================================================
   SECCION NATUSOFÍA — DIPLOMADO DESTACADO
   ====================================================== */
.seccion-natusofía {
  background-color: var(--blanco);
}

.natu-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}

.natu-col-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.natu-col-inscripcion {
  display: block;
}

.natu-foto {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  display: block;
  margin-bottom: 20px;
}

.natu-bloque {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.natu-subtitulo {
  font-family: "Philosopher", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--amarillo);
  letter-spacing: 0.02em;
  padding-bottom: 8px;
}

.natu-desc {
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.6;
}

.natu-desc em {
  color: var(--amarillo);
  font-style: italic;
}

.natu-desc strong {
  color: var(--text-heading);
  font-weight: 700;
}

.natu-lista {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.natu-lista li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.4;
}

.natu-lista li svg {
  color: var(--magenta);
  flex-shrink: 0;
  margin-top: 2px;
}

.natu-modalidad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.natu-mod-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  background: var(--blanco);
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
}

.natu-mod-item svg {
  color: var(--magenta);
  flex-shrink: 0;
}

.natu-para-quien {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.natu-para-quien li {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.natu-para-quien li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-size: 20px;
  line-height: 1.2;
}

/* Card de inscripción lateral */
.natu-card-inscripcion {
  background: var(--blanco);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 150px;
  box-shadow: var(--shadow-card);
}

.natu-badge {
  display: inline-block;
  font-family: "Nunito", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blanco);
  background: var(--azul-oscuro);
  padding: 6px 14px;
  border-radius: 20px;
  align-self: flex-start;
}

.natu-card-titulo {
  font-family: "Philosopher", serif;
  font-size: 26px;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
}

.natu-card-horas {
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
}

.natu-fechas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-accent-3);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
}

.natu-fecha-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.natu-fecha-label {
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.natu-fecha-valor {
  font-family: "Philosopher", serif;
  font-size: 15px;
  color: var(--text-heading);
  font-weight: 700;
}

.natu-fecha-cierre .natu-fecha-valor {
  color: var(--magenta);
}

.natu-separador {
  height: 1px;
  background: var(--border-light);
}

/* Botones Natusofía */
.natu-btn-programa,
.natu-btn-inscribir-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
  text-align: center;
}

.natu-btn-programa {
  background: var(--magenta-oscuro);
  color: var(--blanco);
}

.natu-btn-programa:hover {
  background: var(--magenta-hover);
}

.natu-btn-inscribir-whatsapp {
  background-color: #25d366;
  color: #fff;
  gap: 10px;
}

.natu-btn-inscribir-whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

/* Nota de pago */
.natu-note {
  font-size: 14px;
  color: var(--magenta-oscuro);
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
  padding: 16px;
  background: var(--magenta-light);
  border-left: 4px solid var(--magenta-oscuro);
  border-radius: var(--radius-sm);
  font-style: italic;
  box-shadow: var(--shadow-card);
}

/* FORMULARIO DE INSCRIPCIÓN NATUSOFIA */
.natu-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.natu-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.natu-form label {
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--azul-oscuro);
}

.natu-form input,
.natu-form select {
  height: 48px;
  padding: 0 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  color: var(--azul-oscuro);
  transition: border-color 0.2s;
}

.natu-form input:focus,
.natu-form select:focus {
  outline: none;
  border-color: var(--magenta-oscuro);
}

.natu-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  appearance: none;
}

/* Responsive Natusofía */
@media (max-width: 900px) {
  .natu-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .natu-card-inscripcion {
    position: static;
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .natu-lista {
    grid-template-columns: 1fr;
  }
  .natu-modalidad-grid {
    grid-template-columns: 1fr;
  }
}