/* ═══════════════════════════════════════════════════════
   FORMACIÓN ESTATAL — THEME v2
   Estilo: Institucional limpio, inspirado en formacionestatal.com
   Fuentes: Nunito Sans + Source Sans 3
   Paleta: Azul institucional #00A99D + verde #00A99D
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ── Reset & tokens ── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary:       #00A99D;
  --primary-dark:  #007d73;
  --primary-light: #33c4ba;
  --primary-rgb:   0, 169, 157;
  --accent:        #00c4b7;
  --accent-dark:   #007d73;
  --accent-rgb:    0, 169, 157;
  --ink:           #0d2d2b;
  --ink-mid:       #2a4a48;
  --muted:         #5a8480;
  --line:          #cce8e6;
  --surface:       #ffffff;
  --soft:          #f0fafa;
  --soft2:         #e0f5f4;
  --coral:         #e53e3e;
  --shadow-xs:  0 1px 4px rgba(0,0,0,.06);
  --shadow-sm:  0 2px 10px rgba(0,0,0,.08);
  --shadow-md:  0 6px 22px rgba(0,0,0,.11);
  --shadow-lg:  0 16px 44px rgba(0,0,0,.15);
  --r:          6px;
  --r-lg:       12px;
  --r-xl:       20px;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: #fff;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

h2 {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  color: var(--ink);
}

h3 {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
}

/* ── Layout ── */
.wrap   { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(800px,  calc(100% - 40px)); margin: 0 auto; }
.section { padding: 80px 0; }

/* ══════════════════════════════════
   TOPBAR
══════════════════════════════════ */
.topbar {
  background: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.topbar a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .18s;
}

.topbar a:hover { color: #fff; }

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  transition: all .15s ease;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
}

.topbar-social i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
}

/* Facebook */
.topbar-social.facebook-social {
  background: #1877F2;
}
.topbar-social.facebook-social:hover {
  background: #0A66FF;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.35);
}

/* Twitter / X */
.topbar-social.twitter-social {
  background: #000;
}
.topbar-social.twitter-social:hover {
  background: #222;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* LinkedIn */
.topbar-social.linkedin-social {
  background: #0A66C2;
}
.topbar-social.linkedin-social:hover {
  background: #084A9B;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.35);
}

/* Instagram */
.topbar-social.instagram-social {
  background: linear-gradient(135deg, #FD5949 0%, #D6249F 50%, #285AEB 100%);
}
.topbar-social.instagram-social:hover {
  filter: brightness(1.15);
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(253, 89, 73, 0.35);
}

.topbar-link {
  background: var(--primary);
  color: #fff !important;
  padding: 7px 20px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  transition: background .2s, transform .15s;
}

.topbar-link:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

/* ══════════════════════════════════
   SITE HEADER / NAV
══════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 20px rgba(0,169,157,.15);
  transition: box-shadow .3s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.3px;
}

.brand img {
  max-width: 220px;
  max-height: 52px;
  width: auto;
  display: block;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

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

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 6px;
  color: var(--ink-mid);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
  position: relative;
  border-bottom: 2px solid transparent;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s ease;
}

.main-nav a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

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

.nav-cta-link {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 99px !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
  transition: background .18s !important;
}

.nav-cta-link:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

/* ── Menu toggle (hamburguesa) ── */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 300;
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
  stroke: var(--ink);
  position: absolute;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle .menu-icon {
  display: block;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.menu-toggle .menu-close {
  display: block;
  opacity: 0;
  transform: rotate(-180deg) scale(0.8);
  pointer-events: none;
}

.menu-toggle.active .menu-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0.8);
}

.menu-toggle.active .menu-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  pointer-events: auto;
}

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.btn, button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 26px;
  border: 2px solid transparent;
  border-radius: var(--r);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, opacity .18s;
  white-space: nowrap;
}

.btn:hover, button[type="submit"]:hover { transform: translateY(-2px); }

.btn.primary, button[type="submit"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,169,157,.25);
}

.btn.primary:hover, button[type="submit"]:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0,169,157,.35);
}

.btn.ghost {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.6);
}

.btn.accent {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,169,157,.25);
}

.btn.accent:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0,169,157,.35);
}

.nav-cta {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  min-height: 44px;
  padding: 9px 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: .3px;
  box-shadow: 0 4px 14px rgba(0,169,157,.3);
  transition: background .2s, transform .15s, box-shadow .2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,169,157,.4);
}

/* ══════════════════════════════════
   HERO — imagen de fondo
══════════════════════════════════ */
.home-hero.hero-primary {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: visible;
  padding: 100px 0 140px;
}

/* Imagen de fondo: pegada a la derecha para que la persona se vea */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('img/background-generic.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay: fuerte a la izquierda, desaparece a la derecha */
.hero-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

/* Sin forma decorativa — borde recto */
.hero-background::after {
  display: none;
}

.hero-overlay { display: none; }

/* Hero — layout dos columnas */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
  animation: fadeUp .65s ease both;
  /* Sobreescribe .wrap para que el padding sea explícito */
  padding-left: max(20px, calc((100vw - 1200px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1200px) / 2 + 20px));
  width: 100%;
  box-sizing: border-box;
}


/* Panel de info derecho */
.hero-right { display: flex; justify-content: flex-end; }

.hero-info-panel {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  padding: 32px 30px 28px;
  width: 100%;
  max-width: 400px;
}

.hero-info-title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  letter-spacing: .5px;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.hero-checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.93);
  font-size: 14px;
  line-height: 1.5;
}

.hero-checklist li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #7ffff4;
  margin-top: 1px;
}

.hero-checklist li strong { color: #fff; }

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 20px;
  margin-top: 4px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
  border-right: 1px solid rgba(255,255,255,.2);
}

.hero-stat:last-child { border-right: none; }

.hero-stat strong {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: 11px;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Compat: la clase antigua también funciona */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  animation: fadeUp .65s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-primary h1 {
  color: #fff;
  font-size: clamp(40px, 5.5vw, 70px);
  text-shadow: 0 2px 16px rgba(0,0,0,.2);
  margin-bottom: 16px;
  line-height: 1.04;
}

.hero-primary .lead {
  color: rgba(255,255,255,.94);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 480px;
  margin: 0 0 30px;
  line-height: 1.65;
  text-shadow: 0 1px 6px rgba(0,0,0,.15);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.hero-primary .actions { justify-content: flex-start; }

/* Botón principal del hero — blanco sólido con texto turquesa */
.hero-primary .btn.primary {
  background: #fff;
  border-color: #fff;
  color: var(--primary-dark) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  font-size: 16px;
  min-height: 54px;
  padding: 13px 34px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  transition: all .3s ease;
}

.hero-primary .btn.primary:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  transform: translateY(-3px);
}

/* Botón ghost del hero */
.hero-primary .btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  font-size: 15px;
  min-height: 54px;
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .3s ease;
}

.hero-primary .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* ══════════════════════════════════
   COURSE TYPES SECTION
══════════════════════════════════ */
.course-types-section {
  padding: 30px 0 40px;
  overflow: visible;
  background: transparent;
  position: relative;
  margin-top: -80px;
  pointer-events: auto;
}

.course-types-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  padding: 0 32px;
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
}

.course-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0,169,157,.08);
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
}

.course-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #00A99D, #00c4b6);
  z-index: 10;
}

.course-type-card:hover {
  transform: translateY(-20px) scale(1.04);
  box-shadow: 0 30px 60px rgba(0,169,157,.25);
  border-color: var(--primary);
}

.course-type-card:hover::before {
  height: 8px;
}

/* Mitad superior — teal con icono */
.card-top {
  width: 100%;
  background: linear-gradient(135deg, #008f85 0%, #00A99D 50%, #00c4b6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 28px 48px;
  position: relative;
  overflow: hidden;
}

.card-top::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  border-radius: 50%;
  top: -50px;
  right: -50px;
  z-index: 1;
}

.card-top::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -40px;
  left: -40px;
  z-index: 1;
}

.course-type-card:hover .card-top {
  background: linear-gradient(135deg, #007a73 0%, #009990 50%, #00b5a8 100%);
}

.course-type-card .card-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  z-index: 2;
}

.course-type-card .card-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .4s;
}

.course-type-card:hover .card-icon {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.6);
  transform: scale(1.2) rotate(-8deg);
  box-shadow: 0 0 30px rgba(0,0,0,.2);
}

.course-type-card:hover .card-icon::after {
  opacity: 1;
}

.course-type-card .card-icon svg {
  width: 56px;
  height: 56px;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.1));
}

/* Mitad inferior — gris claro con texto */
.card-bottom {
  width: 100%;
  background: #fff;
  padding: 42px 28px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.card-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.course-type-card h3 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--primary);
  line-height: 1.3;
  transition: color .3s;
}

.course-type-card:hover h3 {
  color: var(--primary-dark);
}

.course-type-card p {
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
  transition: color .3s;
}

/* ══════════════════════════════════
   KICKER / LABEL
══════════════════════════════════ */
.section-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  padding: 5px 14px;
  background: #f0f9f8;
  border-radius: 99px;
  border: 1px solid rgba(0,169,157,.2);
}

/* Kicker dentro del hero — versión blanca */
.hero-primary .section-kicker {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.4);
  color: #fff;
  backdrop-filter: blur(6px);
}

.course-sector {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
}

/* ══════════════════════════════════
   QUICK BENEFITS (3-col)
══════════════════════════════════ */
.quick-benefits {
  padding: 0 0 80px;
  background: #f8f8f8;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-grid article {
  padding: 36px 32px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}

.benefit-grid article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.benefit-grid article:nth-child(1)::before { background: var(--primary); }
.benefit-grid article:nth-child(2)::before { background: var(--primary); }
.benefit-grid article:nth-child(3)::before { background: #e67e22; }

.benefit-grid article::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}

.benefit-grid span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #f0f9f8;
  color: var(--primary);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 20px;
}

.benefit-grid h2 { font-size: 21px; margin-bottom: 8px; }
.benefit-grid p { color: var(--muted); font-size: 15px; margin: 0; }

/* ══════════════════════════════════
   SEARCH SECTION
══════════════════════════════════ */
.search-section {
  background: #fff;
  padding: 64px 0 72px;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}

.split-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.search-heading {
  text-align: center;
  margin-bottom: 36px;
}

.search-heading-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: #888;
  letter-spacing: .4px;
  margin-bottom: 10px;
}

.search-heading-label::before,
.search-heading-label::after {
  content: '';
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: #ddd;
}

.search-heading-title {
  font-family: 'Nunito Sans', sans-serif;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}

.search-box {
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid #d0d0d0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: border-color .2s, box-shadow .2s;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,169,157,.15);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 22px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  min-height: 52px;
}

.search-box input::placeholder { color: #aaa; }

.search-box button {
  min-height: 52px;
  width: 56px;
  padding: 0;
  border-radius: 0;
  background: #fff;
  border: none;
  border-left: 1.5px solid #d0d0d0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}

.search-box button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-box button:hover { background: #f8f8f8; color: var(--primary); transform: none; }

.search-box-wrapper {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--line);
  border-top: none;
  border-radius: 0 0 12px 12px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.suggestion-item {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: var(--soft);
}

.suggestion-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
}

.suggestion-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ══════════════════════════════════
   CATEGORIES
══════════════════════════════════ */
.categories-section {
  background: linear-gradient(135deg, #008f85 0%, #00A99D 50%, #00c4b6 100%);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Patrón de puntos decorativo de fondo */
.categories-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.section-title { margin-bottom: 36px; }

.section-title.with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* Encabezado de categorías */
.categories-heading {
  text-align: center;
  margin-bottom: 52px;
  position: relative;
}

.categories-sub {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,.8);
  margin: 0 0 8px;
  letter-spacing: .3px;
}

.categories-title {
  font-family: 'Nunito Sans', sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,.15);
}

/* Grid de categorías */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-decoration: none;
  width: 155px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  padding: 30px 16px 24px;
  transition: background .28s, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .28s, border-color .28s;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.category-item:hover {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
}

.category-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2.5px solid rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
  transition: background .28s, transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .28s;
  box-shadow: 0 6px 20px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.3);
}

.category-item:hover .category-icon {
  background: rgba(255,255,255,.35);
  border-color: #fff;
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 12px 32px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.4);
}

.category-icon svg {
  width: 46px;
  height: 46px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}

.category-item span {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* ══════════════════════════════════
   COURSE CARDS
══════════════════════════════════ */
.courses-showcase {
  background: #fff;
  padding: 88px 0 96px;
}

.showcase-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.showcase-header h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 14px;
}

.showcase-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.showcase-cta {
  text-align: center;
  margin-top: 52px;
}

.showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff !important;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 28px rgba(0,169,157,.35);
  transition: background .25s, transform .25s, box-shadow .25s;
}

.showcase-btn svg {
  width: 20px;
  height: 20px;
  transition: transform .25s;
}

.showcase-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,169,157,.45);
}

.showcase-btn:hover svg { transform: translateX(4px); }

/* Filtros de categoría */
.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.course-filters .filter-btn {
  padding: 10px 22px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-mid);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}

.course-filters .filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0faf9;
}

.course-filters .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,169,157,.25);
}

.filter-empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 15px;
  grid-column: 1/-1;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-height: 400px;
  transition: opacity 0.3s ease-out;
}

.course-grid.wide {
  grid-template-columns: repeat(3, 1fr);
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: none;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  overflow: hidden;
  transition: box-shadow .28s, transform .28s;
  height: 100%;
  min-height: 380px;
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
  cursor: pointer;
}

.course-card:hover {
  box-shadow: 0 16px 48px rgba(0,169,157,.18);
  transform: translateY(-7px);
}

.course-media {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: linear-gradient(135deg, #00A99D 0%, #007d73 100%);
  position: relative;
  overflow: hidden;
}

/* Círculos decorativos */
.course-media::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.course-media::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.course-media span {
  position: relative;
  z-index: 1;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: rgba(255,255,255,.22);
  line-height: 1;
  letter-spacing: -2px;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
}

.course-media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e8e8e8;
  padding: 24px;
  position: relative;
  animation: loading-pulse 1.5s ease-in-out infinite;
}

.course-media-fallback[style*="background-image"] {
  animation: none;
}

.course-media-content {
  text-align: center;
  z-index: 3;
  position: relative;
  display: none;
}

.course-media-fallback:not([style*="background-image"]) .course-media-content {
  display: block;
}

.course-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.4;
}

.course-branding {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}


.course-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
}

.course-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 16px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  min-height: 48px;
  align-content: flex-start;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: #f4f4f4;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mid);
}

.course-meta span svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: .75;
}

.course-meta .meta-free {
  background: rgba(0,169,157,.12);
  color: var(--primary-dark);
  font-weight: 700;
}

.course-meta .meta-free svg { opacity: 1; stroke: var(--primary); }

.availability {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--coral);
}

.course-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 22px;
  border-top: 1px solid #f0f0f0;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .2px;
  transition: background .22s, color .22s, padding-right .22s;
}

.course-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
}

.course-link:hover {
  background: var(--primary);
  color: #fff;
  padding-right: 16px;
}

.course-link:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), .35);
  outline-offset: -3px;
}

.course-link::after { content: '→'; font-size: 15px; }

.text-link, .reset-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.text-link:hover, .reset-link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* ══════════════════════════════════
   JOURNEY / HOW IT WORKS
══════════════════════════════════ */
.journey-section {
  background: linear-gradient(135deg, #007d73 0%, #00A99D 100%);
  padding: 80px 0 88px;
}

.journey-header {
  text-align: center;
  margin-bottom: 60px;
}

.journey-kicker {
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.3) !important;
  color: #fff !important;
}

.journey-title {
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.journey-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 280px;
  padding: 36px 28px;
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  transition: background .25s, transform .25s, box-shadow .25s;
  position: relative;
}

.journey-step:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.journey-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.journey-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 8px 0 22px;
  transition: background .25s, transform .3s cubic-bezier(.34,1.56,.64,1);
}

.journey-step:hover .journey-icon {
  background: rgba(255,255,255,.3);
  transform: scale(1.1);
}

.journey-icon svg { width: 36px; height: 36px; }

.journey-step h3 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}

.journey-step p {
  font-size: 14px;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
  margin: 0;
}

.journey-arrow {
  flex-shrink: 0;
  width: 60px;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.journey-arrow svg { width: 48px; height: 24px; }

/* ══════════════════════════════════
   STATS BAND
══════════════════════════════════ */
.stats-band {
  padding: 80px 0;
  background: #fff;
  border-top: none;
  border-bottom: none;
}

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

.stats-grid div {
  text-align: center;
  padding: 32px 24px 28px;
  border-radius: 20px;
  background: transparent;
  border: 2.5px solid var(--primary);
  position: relative;
  overflow: visible;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}

.stats-grid div:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 169, 157, 0.2);
  background: rgba(0, 169, 157, 0.03);
}

/* Acento en la parte superior */
.stats-grid div::before {
  display: none;
}

.stats-grid strong {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-num {
  color: var(--primary) !important;
  animation: shimmer 2s linear infinite !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.stats-grid .stat-num {
  font-size: clamp(36px, 5vw, 56px) !important;
  margin-bottom: 20px !important;
  padding: 28px 24px !important;
  border: 2px solid var(--primary) !important;
  border-radius: 16px !important;
  background: transparent !important;
  display: block !important;
}

.stats-grid span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mid);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 16px;
  display: block;
  line-height: 1.4;
}

/* ══════════════════════════════════
   CTA SECTION
══════════════════════════════════ */
.cta-section {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #006b63 0%, #00A99D 50%, #00c4b7 100%);
  overflow: hidden;
  text-align: center;
}

.cta-bg { position: absolute; inset: 0; pointer-events: none; }

.cta-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); }
.cta-circle-1 { width: 500px; height: 500px; top: -200px; left: -100px; }
.cta-circle-2 { width: 350px; height: 350px; bottom: -150px; right: -60px; }
.cta-circle-3 { width: 200px; height: 200px; top: 50%; right: 25%; transform: translateY(-50%); background: rgba(255,255,255,.04); }

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px;
  padding: 5px 16px;
  margin-bottom: 20px;
}

.cta-title {
  font-family: 'Nunito Sans', sans-serif;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #fff;
  color: var(--primary-dark) !important;
  border-radius: 50px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 32px rgba(0,0,0,.2);
  transition: transform .28s, box-shadow .28s, background .28s;
}

.cta-btn-main svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--primary-dark); }

.cta-btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
  background: #f0fdf9;
}

.cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 50px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .28s, background .28s, transform .28s;
}

.cta-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,.12);
  transform: translateY(-3px);
}

/* ══════════════════════════════════
   CONTACT HERO
══════════════════════════════════ */
.contact-hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
  min-height: 500px;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/background-generic.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.contact-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.contact-hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.contact-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.contact-shape--1 { width: 400px; height: 400px; top: -140px; right: -80px; }
.contact-shape--2 { width: 220px; height: 220px; bottom: -80px; left: 10%; background: rgba(255,255,255,.04); }
.contact-shape--3 { width: 100px; height: 100px; top: 40px; left: 38%; background: rgba(255,255,255,.08); }

.contact-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
  padding: 40px 0;
}

.contact-hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-hero-text h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.contact-hero-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  max-width: 500px;
  margin: 0;
  line-height: 1.65;
}

.contact-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
}

.contact-hero-kicker svg { width: 15px; height: 15px; flex-shrink: 0; }

.contact-hero-text h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
  margin-bottom: 12px;
}

.contact-hero-text p {
  color: rgba(255,255,255,.85);
  font-size: 17px;
  margin: 0;
  max-width: 560px;
}

.contact-hero-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px 22px;
  flex: 1;
  min-width: 200px;
}

.contact-hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

.contact-hero-card-icon svg { width: 20px; height: 20px; }

.contact-hero-card-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.65);
  margin-bottom: 3px;
}

.contact-hero-card-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* ══════════════════════════════════
   PAGE HEAD (interior pages)
══════════════════════════════════ */
.page-head {
  padding: 60px 0 52px;
  background: linear-gradient(120deg, rgba(0, 125, 115, 0.8) 0%, rgba(0, 169, 157, 0.8) 100%), url('theme1/img/background-generic.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.page-head::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 28px;
  background: #fff;
}

.page-head-inner {
  position: relative;
  z-index: 1;
}

.page-head h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
  margin-bottom: 10px;
}

.page-head p {
  color: rgba(255,255,255,.8);
  font-size: 17px;
  margin: 0;
}

/* ══════════════════════════════════
   COURSES HERO (página cursos)
══════════════════════════════════ */
.courses-hero {
  background-image:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.3) 100%
    ),
    url('img/background-generic.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: 500px;
}

.courses-hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.courses-hero-deco-1 {
  width: 280px; height: 280px;
  top: -100px; right: -50px;
  background: rgba(0,169,157,.02);
  z-index: 1;
}

.courses-hero-deco-2 {
  width: 150px; height: 150px;
  bottom: 20px; left: -40px;
  background: rgba(0,169,157,.015);
  z-index: 1;
}

.courses-hero-deco-3 {
  width: 80px; height: 80px;
  top: 30px; left: 38%;
  background: rgba(0,169,157,.025);
  z-index: 1;
}

.courses-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
}

.courses-hero-left .section-kicker {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.courses-hero-left h1 {
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin: 12px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.courses-hero-left .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  max-width: 520px;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.courses-hero-stats {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  animation: slideInRight 0.8s ease-out;
  box-shadow: 0 8px 40px rgba(0, 169, 157, 0.3);
  transition: all 0.3s ease;
}

.courses-hero-stats:hover {
  box-shadow: 0 8px 20px rgba(0, 169, 157, 0.15);
  transform: translateY(-2px);
}

.courses-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 32px;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.courses-hero-stat:hover {
  background: rgba(0, 169, 157, 0.04);
  transform: scale(1.05);
}

.courses-hero-stat:last-child { border-right: none; }

.courses-hero-stat strong {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.courses-hero-stat .stat-num {
  background: linear-gradient(90deg, #00e0d0 0%, #fff 50%, #00e0d0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite !important;
  font-size: 32px;
  font-weight: 900;
}

.courses-hero-stat span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
  animation: fadeIn 0.8s ease-out 0.5s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Responsive para courses-hero ── */
@media (max-width: 1024px) {
  .courses-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .courses-hero-stats {
    width: 100%;
  }

  .courses-hero-deco-1 {
    width: 200px; height: 200px;
    top: -60px; right: -30px;
  }

  .courses-hero-deco-2 {
    width: 100px; height: 100px;
    bottom: 10px; left: -20px;
  }

  .courses-hero-deco-3 {
    width: 60px; height: 60px;
    top: 20px; left: 30%;
  }
}

@media (max-width: 768px) {
  .courses-hero {
    padding: 48px 0 40px;
    background-size: cover;
    background-position: 85% center;
    background-attachment: scroll;
    min-height: 400px;
  }

  .courses-hero-left h1 {
    font-size: clamp(24px, 6vw, 40px);
  }

  .courses-hero-left .lead {
    font-size: 15px;
    max-width: 100%;
  }

  .hero-benefits {
    flex-direction: column;
    gap: 12px;
  }

  .hero-benefits span {
    font-size: 14px;
  }

  .courses-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border-radius: 12px;
  }

  .courses-hero-stat {
    padding: 16px 12px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }

  .courses-hero-stat:last-child {
    border-bottom: none;
  }

  .courses-hero-stat:nth-child(3n) {
    border-right: none;
  }

  .courses-hero-stat strong {
    font-size: 20px;
  }

  .courses-hero-stat span {
    font-size: 10px;
  }

  .courses-hero-deco-1 {
    width: 150px; height: 150px;
    top: -40px; right: -20px;
    opacity: 0.6;
  }

  .courses-hero-deco-2 {
    width: 80px; height: 80px;
    bottom: 5px; left: -10px;
    opacity: 0.6;
  }

  .courses-hero-deco-3 {
    display: none;
  }
}

@media (max-width: 480px) {
  .courses-hero {
    padding: 32px 0 24px;
    background-size: cover;
    background-position: 95% center;
    background-attachment: scroll;
    min-height: 350px;
  }

  .courses-hero-left h1 {
    font-size: clamp(20px, 7vw, 32px);
  }

  .courses-hero-left .lead {
    font-size: 14px;
  }

  .hero-benefits {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-benefits span {
    font-size: 12px;
  }

  .courses-hero-stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .courses-hero-stat {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    border-right: none;
  }

  .courses-hero-stat:last-child {
    border-bottom: none;
  }

  .courses-hero-stat strong {
    font-size: 18px;
  }

  .courses-hero-stat span {
    font-size: 9px;
  }

  .courses-hero-stats:hover {
    transform: none;
  }

  .courses-hero-stat:hover {
    transform: none;
  }

  .courses-hero-deco-1 {
    display: none;
  }

  .courses-hero-deco-2 {
    display: none;
  }

  .courses-hero-deco-3 {
    display: none;
  }
}


/* ══════════════════════════════════
   CATALOGUE / CURSOS PAGE
══════════════════════════════════ */
.catalogue-section {
  background: #f4f7f7;
  padding: 48px 0 80px;
}

.catalogue-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: start;
}

.catalogue-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

/* Sidebar card genérica */
.sidebar-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.sidebar-card-header svg {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,.8);
}

.filter-panel-inner {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.filter-field { display: grid; gap: 6px; }

.filter-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-input-wrap {
  position: relative;
}

.filter-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  stroke: var(--muted);
  pointer-events: none;
}

.filter-input-wrap input {
  width: 100%;
  padding: 10px 12px 10px 34px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

.filter-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,169,157,.1);
}

.filter-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.filter-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,169,157,.1);
}

.filter-panel-inner button {
  width: 100%;
  padding: 12px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  background: var(--primary);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background .18s, transform .15s;
}

.filter-panel-inner button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.sidebar-count-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.sidebar-count-card strong {
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.sidebar-count-card span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.sidebar-count-of {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin: 4px 0 0;
}

.sidebar-cta-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  padding: 20px;
  text-align: center;
}

.sidebar-cta-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}

.sidebar-cta-card a {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 99px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .18s;
}

.sidebar-cta-card a:hover {
  background: var(--primary);
  color: #fff;
}

/* Resultados */
.catalogue-results { min-width: 0; }

/* Chips / filtros rápidos */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chips a,
.chips button {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-mid);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.chips a:hover,
.chips button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0faf9;
}

.chips a.active,
.chips button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,169,157,.25);
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 20px;
  min-height: 300px;
  text-align: center;
  color: var(--muted);
  justify-content: center;
}

.empty-state svg {
  width: 48px; height: 48px;
  stroke: var(--line);
}

.empty-state p {
  font-size: 15px;
  margin: 0;
}

.empty-state button {
  padding: 9px 24px;
  border-radius: 99px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s;
}

.empty-state button:hover {
  background: var(--primary);
  color: #fff;
}

/* Banner de resultados activos */
.results-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border: 1.5px solid rgba(0,169,157,.25);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--ink-mid);
}

.results-banner svg {
  width: 15px; height: 15px;
  stroke: var(--primary);
  flex-shrink: 0;
}

.results-banner span { flex: 1; }

.results-banner a {
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.results-banner a:hover { color: var(--ink); }

/* ══════════════════════════════════
   COURSE DETAIL PAGE
══════════════════════════════════ */
.course-hero {
  background: linear-gradient(135deg, #007d73 0%, #00A99D 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 52px 20px 44px;
  position: relative;
  overflow: visible;
}

.course-hero h1 {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 42px);
  max-width: 840px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
  margin: 0 auto;
}

.course-hero::after {
  display: none !important;
}

.course-detail-section { background: #fff; }

.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 36px;
  align-items: start;
}

.course-detail-content { min-width: 0; }

.content-block {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1.5px solid var(--line);
}

.content-block:last-child { border-bottom: none; }
.content-block h2 { font-size: clamp(20px, 2.5vw, 28px); margin-bottom: 16px; }

.content p { color: var(--ink-mid); line-height: 1.75; margin-bottom: 14px; }
.content ul { padding-left: 20px; color: var(--ink-mid); line-height: 1.75; }
.content li { margin-bottom: 8px; }

/* Sidebar tarjetas */
.course-side-card {
  border-radius: var(--r-lg);
  border: 1.5px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.side-ribbon {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.side-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.side-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: rgba(255,255,255,.6);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.side-facts {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin: 0;
  padding: 0;
}

.side-facts > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.side-facts > div:last-child { border-bottom: none; }

.side-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.side-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.signup-card {
  padding: 0;
}

.course-detail-sidebar::after,
.signup-card::after,
.course-side-card::after {
  display: none !important;
  content: none !important;
}

.signup-card h2 {
  font-size: 18px;
  padding: 18px 20px 8px;
  margin: 0;
  border-bottom: 1.5px solid var(--line);
}

.signup-card > p {
  padding: 10px 20px 0;
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.why-card { padding: 20px 20px 8px; }
.why-card h2 { font-size: 17px; margin-bottom: 14px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

summary {
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after {
  content: '+';
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
  transition: transform .2s;
}

details[open] summary::after {
  content: '−';
}

details p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.6;
}

/* ══════════════════════════════════
   FORMS
══════════════════════════════════ */
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,169,157,.1);
}

label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.panel.form, .form {
  display: grid;
  gap: 28px;
  padding: 52px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #fff 0%, #f8fffe 100%);
  box-shadow: 0 12px 48px rgba(0, 169, 157, 0.08);
}

.panel.form > div {
  margin-bottom: 8px;
}

.panel.form .section-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.panel.form h2 {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
}

.panel.form > div > p {
  color: var(--ink-mid);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.panel.form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: 14.5px;
}

.panel.form input,
.panel.form select {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid #e8f3f1;
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  transition: all 0.2s ease-out;
  font-family: inherit;
}

.panel.form input::placeholder,
.panel.form select::placeholder {
  color: var(--muted);
}

.panel.form input:focus,
.panel.form select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1);
}

.panel.form button {
  min-height: 50px;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, #007d73 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  transition: all 0.3s ease-out;
  letter-spacing: 0.3px;
  margin-top: 12px;
  box-shadow: 0 8px 24px rgba(0, 169, 157, 0.3);
}

.panel.form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 169, 157, 0.4);
  background: linear-gradient(135deg, #009988 0%, #006b5f 100%);
}

.panel.form button:active {
  transform: translateY(0);
}

.form.compact {
  gap: 16px;
  border: none;
  border-radius: 0;
  padding: 0 16px 16px;
  box-shadow: none;
  background: transparent;
}

.form.compact::after,
.panel.form::after,
form::after {
  display: none !important;
}

.form.compact label { font-size: 12px; gap: 6px; }

.form.compact input,
.form.compact select {
  min-height: 44px;
  border-radius: 8px;
  font-size: 13.5px;
  padding: 10px 14px;
}

.form.compact button {
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 13.5px;
  width: fit-content;
  margin-top: 0;
}

.privacy-check {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  align-items: center !important;
  color: var(--ink-mid);
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.5;
  margin-top: 12px;
}

.privacy-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 2px solid #d0d0d0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.privacy-check input:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.privacy-check a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.privacy-check a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════
   CONTACT PAGE
══════════════════════════════════ */
.contact-section { background: linear-gradient(135deg, #fff 0%, #f0fafa 100%); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-panel {
  padding: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f8fffe 100%);
  border: 2px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 169, 157, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.contact-info-panel:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 48px rgba(0, 169, 157, 0.15);
  transform: translateY(-2px);
}

.contact-info-panel .section-kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.contact-info-panel h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 800;
}

.contact-info-panel > .lead {
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 12px;
  background: rgba(0, 169, 157, 0.03);
  border: 1px solid rgba(0, 169, 157, 0.08);
  transition: all 0.2s ease;
}

.contact-item:hover {
  background: rgba(0, 169, 157, 0.08);
  border-color: rgba(0, 169, 157, 0.15);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 169, 157, 0.15), rgba(0, 169, 157, 0.08));
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.contact-item p {
  color: var(--ink-mid);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-schedule-panel {
  display: flex;
  flex-direction: column;
}

.schedule-card {
  padding: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f8fffe 100%);
  border: 2px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 169, 157, 0.08);
  transition: all 0.3s ease;
}

.schedule-card:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 48px rgba(0, 169, 157, 0.15);
  transform: translateY(-2px);
}

.schedule-card .section-kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.schedule-card h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 32px;
}

.schedule-time {
  padding: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 169, 157, 0.05), rgba(0, 169, 157, 0.02));
  border: 1.5px solid var(--primary-light);
  margin-bottom: 24px;
}

.time-display {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.time-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  font-family: 'Nunito Sans', sans-serif;
}

.time-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.time-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.schedule-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 10px;
  background: rgba(0, 169, 157, 0.05);
  border-left: 3px solid var(--primary);
}

.schedule-note svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.schedule-note p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════
   LEGAL PAGES
══════════════════════════════════ */
.privacy-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.privacy-header h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
}

.privacy-header .subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.privacy-section { background: linear-gradient(135deg, #fff 0%, #f0fafa 100%); padding: 80px 0; }

.privacy-content { display: flex; flex-direction: column; gap: 40px; }

.privacy-block {
  background: #fff;
  border-radius: 12px;
  padding: 36px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 169, 157, 0.05);
  transition: all 0.3s ease;
}

.privacy-block:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 24px rgba(0, 169, 157, 0.1);
}

.privacy-block h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 20px;
}

.intro-text {
  color: var(--ink-mid);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.info-card {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(0, 169, 157, 0.03);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  align-items: flex-start;
}

.info-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.card-icon svg { width: 24px; height: 24px; }

.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.info-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.right-item {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 169, 157, 0.05), rgba(0, 169, 157, 0.02));
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.right-item:hover {
  background: rgba(0, 169, 157, 0.08);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.right-item svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin: 0 auto 12px;
  display: block;
}

.right-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.right-item p {
  font-size: 13px;
  color: var(--ink-mid);
  margin: 0;
  line-height: 1.5;
}

.contact-box {
  background: linear-gradient(135deg, rgba(0, 169, 157, 0.08), rgba(0, 169, 157, 0.03));
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(0, 169, 157, 0.15);
  margin-top: 24px;
}

.contact-box p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.highlight-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 20px;
  border-radius: 8px;
  margin: 24px 0;
}

.highlight-box p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.security-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.security-list li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.6;
}

.security-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 18px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--ink); }

.modal-body {
  padding: 24px;
}

.modal-intro {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-mid);
}

.data-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.data-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1);
}

.data-card {
  background: rgba(0, 169, 157, 0.05);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(0, 169, 157, 0.15);
}

.data-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.data-info {
  margin: 12px 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

.data-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 169, 157, 0.2);
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.5;
  font-style: italic;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.legal { color: var(--ink-mid); font-size: 15px; line-height: 1.78; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; color: var(--primary); }
.legal a { color: var(--primary); text-decoration: underline; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r);
  overflow: hidden;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.legal th, .legal td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.legal th {
  background: #f0f9f8;
  font-weight: 700;
  color: var(--ink-mid);
  width: 170px;
}

/* ══════════════════════════════════
   FORM MESSAGES
══════════════════════════════════ */
.form-message {
  padding: 14px 16px;
  border-radius: var(--r);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.form-message.alert-success {
  background: #e8f5f3;
  color: #006b62;
  border: 1px solid #b3e5db;
}

.form-message.alert-danger {
  background: #fee;
  color: #c42;
  border: 1px solid #fcc;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer {
  background: #fff;
  color: var(--ink);
  padding: 0;
  position: relative;
  border-top: 1px solid var(--line);
  margin-top: 0;
}


.footer-top-bar {
  display: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.1fr;
  gap: 60px;
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

/* Col 1 */
.footer-brand-col {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.footer-logo-link { display: inline-block; margin-bottom: 20px; }

.footer-logo {
  max-width: 240px;
  height: auto;
  opacity: 1;
}

.footer-text {
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 320px;
}

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

.footer-badges span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 99px;
  padding: 4px 12px;
  letter-spacing: .5px;
}

/* Títulos de columna */
.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-nav { display: grid; gap: 4px; align-content: start; }

.footer-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-mid);
  font-size: 14px;
  text-decoration: none;
  padding: 8px 0;
  border-radius: 4px;
  transition: color .22s, padding-left .22s;
}

.footer-nav a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .6;
  transition: opacity .22s;
}

.footer-nav a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-nav a:hover svg { opacity: 1; }

/* Contacto */
.footer-contact { display: grid; gap: 6px; align-content: start; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-mid);
  font-size: 14px;
  text-decoration: none;
  padding: 8px 0;
  transition: color .22s;
}

.footer-contact-item:hover { color: var(--primary); }

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .22s;
}

.footer-contact-item:hover .footer-contact-icon {
  background: var(--primary-dark);
}

.footer-contact-icon svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

.social-links { display: flex; gap: 10px; margin-top: 16px; }

.social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  transition: transform .22s, box-shadow .22s, filter .22s;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.social-link--facebook  { background: #1877F2; }
.social-link--twitter   { background: #000; }
.social-link--linkedin  { background: #0A66C2; }
.social-link--instagram { background: linear-gradient(135deg, #FD5949 0%, #D6249F 50%, #285AEB 100%); }

/* Copyright bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  font-size: 12.5px;
  color: var(--muted);
  position: relative;
}

.footer-bottom-sepe {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
}

.copyright {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(176,190,200,.35);
  font-size: 13px;
}

/* ══════════════════════════════════
   EMPTY STATE / PANEL
══════════════════════════════════ */
.empty {
  padding: 40px;
  border-radius: var(--r-lg);
  border: 2px dashed var(--line);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  background: #f8f8f8;
}

.panel {
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.detail-card { padding: 36px; }

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.detail-meta span {
  padding: 5px 12px;
  border-radius: 6px;
  background: #f0f9f8;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1100px) {
  .course-types-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card-icon { width: 110px; height: 110px; }
  .card-icon svg { width: 50px; height: 50px; }
  .card-top { padding: 42px 22px 40px; }
  .card-bottom { padding: 36px 22px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .course-types-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; justify-items: center; }
  .course-types-section { margin-top: -60px; padding: 24px 0 40px; }

  .nav { flex-wrap: wrap; padding: 12px 0; min-height: auto; }
  .nav-cta { display: none; }
  .nav-cta-link { display: none; }

  .hero-background::after { display: none; }
  .home-hero.hero-primary { text-align: center; }
  .hero-primary .actions { justify-content: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-right { justify-content: center; }
  .hero-info-panel { max-width: 100%; }
  .hero-left { max-width: 100%; }

  .journey-steps { flex-direction: column; align-items: center; }
  .journey-arrow { transform: rotate(90deg); }
  .journey-step { max-width: 100%; width: 100%; }

  .benefit-grid,
  .course-detail-layout,
  .contact-grid,
  .form-layout,
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .catalogue-layout { grid-template-columns: 1fr; }
  .catalogue-sidebar { margin-bottom: 40px; }

  .chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .chips button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
  }

  .catalogue-sidebar { position: static; }
  .contact-grid,
  .form-layout { grid-template-columns: 1fr; }
  .form-wrapper { position: static; top: auto; }
  .category-item { width: 130px; padding: 24px 12px 20px; }
  .category-icon { width: 76px; height: 76px; }
  .category-icon svg { width: 38px; height: 38px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid.wide { grid-template-columns: repeat(2, 1fr); }

  .section-title.with-action,
  .split-section,
  .cta-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .wrap, .narrow { width: calc(100% - 28px); }
  .topbar { display: none; }

  .nav { min-height: 60px; }
  .brand img { max-width: 160px; max-height: 40px; }

  /* Menu mobile */
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
  }
  .menu-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--ink);
    stroke: var(--ink);
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .menu-toggle .menu-icon {
    display: block;
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  .menu-toggle .menu-close {
    display: block;
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
    pointer-events: none;
  }
  .menu-toggle.active .menu-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
  }
  .menu-toggle.active .menu-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    pointer-events: auto;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-top: 3px solid var(--primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    z-index: 999;
  }
  .main-nav.active {
    max-height: 280px;
  }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    color: var(--ink-mid);
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
  }
  .main-nav a:hover {
    background: #f0faf9;
    color: var(--primary);
    padding-left: 24px;
  }
  .nav-cta-link {
    background: var(--primary) !important;
    color: #fff !important;
    margin: 12px 16px !important;
    width: calc(100% - 32px) !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    border-bottom: none !important;
  }
  .nav-cta-link:hover {
    background: var(--primary-dark) !important;
  }

  h1 { font-size: clamp(30px, 10vw, 46px); }
  .course-types-section { padding: 20px 0 32px; margin-top: -40px; }
  .course-types-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 16px; }
  .course-types-grid > a:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
    width: 50%;
    margin: 0 auto;
  }
  .card-icon { width: 90px; height: 90px; }
  .card-icon svg { width: 40px; height: 40px; }
  .card-top { padding: 36px 18px 34px; }
  .card-bottom { padding: 32px 18px 36px; }
  .course-type-card h3 { font-size: 12.5px; }
  .course-type-card p { font-size: 12.5px; }
  .category-grid { gap: 14px; }
  .category-item { width: 120px; padding: 18px 10px 14px; font-size: 12px; }
  .category-icon { width: 60px; height: 60px; }
  .category-icon svg { width: 28px; height: 28px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-grid.wide { grid-template-columns: 1fr; }

  .home-hero.hero-primary { padding: 72px 0 140px; min-height: 460px; }
  .section { padding: 56px 0; }
  .search-box { flex-direction: row; border-radius: var(--r-lg); }
  .search-box input { border: none; }
  .search-box button { width: 52px; border-radius: 0 var(--r-lg) var(--r-lg) 0; }

  dl { grid-template-columns: 1fr; }
  .cta-panel { gap: 22px; }
  .contact-layout { grid-template-columns: 1fr; }
  .course-detail-layout { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 40px; }
  .footer-brand-col { padding-right: 0; border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 30px; margin-bottom: 20px; }
  .footer-logo { max-width: 180px; }
  .footer-text { font-size: 13px; max-width: 100%; }
  .footer-col-title { font-size: 11px; margin-bottom: 16px; }
  .footer-nav a, .footer-contact-item { font-size: 13px; padding: 6px 0; }
  .footer-contact-icon { width: 28px; height: 28px; }
  .footer-contact-icon svg { width: 12px; height: 12px; }
  .social-links { gap: 8px; }
  .social-link { width: 36px; height: 36px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-grid div {
    padding: 20px 16px 16px;
  }
  .stats-grid .stat-num {
    font-size: 32px !important;
    padding: 16px 12px !important;
    margin-bottom: 12px !important;
  }
  .stats-grid span {
    font-size: 11px;
    margin-top: 8px;
  }
}

/* ══════════════════════════════════
   ANIMATIONS SYSTEM
══════════════════════════════════ */

/* ── Keyframes ── */
@keyframes fadeUp     { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDown   { from { opacity:0; transform:translateY(-30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeLeft   { from { opacity:0; transform:translateX(50px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeRight  { from { opacity:0; transform:translateX(-50px); } to { opacity:1; transform:translateX(0); } }
@keyframes scaleUp    { from { opacity:0; transform:scale(.82); } to { opacity:1; transform:scale(1); } }
@keyframes float      { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes shimmer    { 0% { background-position:200% center; } 100% { background-position:-200% center; } }
@keyframes loading-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes popIn      { 0% { opacity:0; transform:scale(.6) rotate(-6deg); } 70% { transform:scale(1.08) rotate(1deg); } 100% { opacity:1; transform:scale(1) rotate(0); } }
@keyframes slideBar   { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@keyframes pulse-ring { 0% { box-shadow:0 0 0 0 rgba(0,169,157,.4); } 70% { box-shadow:0 0 0 14px rgba(0,169,157,0); } 100% { box-shadow:0 0 0 0 rgba(0,169,157,0); } }

/* ── Scroll reveal base ── */
@media (prefers-reduced-motion: no-preference) {
  [data-anim] {
    opacity: 0;
    transition-property: opacity, transform, filter;
    transition-timing-function: cubic-bezier(.16,1,.3,1);
    transition-duration: 1.1s;
    will-change: opacity, transform;
  }
  [data-anim="up"]    { transform: translateY(32px); }
  [data-anim="down"]  { transform: translateY(-22px); }
  [data-anim="left"]  { transform: translateX(40px); }
  [data-anim="right"] { transform: translateX(-40px); }
  [data-anim="scale"] { transform: scale(.88); }
  [data-anim="pop"]   { transform: scale(.78) rotate(-4deg); }
  [data-anim="blur"]  { transform: translateY(20px); filter: blur(6px); }

  [data-anim].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Animaciones optimizadas para course cards - solo opacity, transición muy rápida */
  .course-card[data-anim] {
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: ease-out;
    transition-duration: 0.3s;
    will-change: opacity;
    transform: none !important;
  }

  .course-card[data-anim].is-visible {
    opacity: 1;
  }

  /* Stagger delays — más espaciados para sensación suave */
  [data-delay="100"] { transition-delay: .15s; }
  [data-delay="200"] { transition-delay: .28s; }
  [data-delay="300"] { transition-delay: .42s; }
  [data-delay="400"] { transition-delay: .55s; }
  [data-delay="500"] { transition-delay: .68s; }
  [data-delay="600"] { transition-delay: .80s; }
  [data-delay="700"] { transition-delay: .92s; }
  [data-delay="800"] { transition-delay: 1.04s; }
}

/* ── Hero panel float ── */
.hero-info-panel { animation: float 5s ease-in-out infinite; }

/* ── Stat numbers shimmer on load ── */
/* Solo para pre-inscripción */
.courses-hero-stat .stat-num {
  background: linear-gradient(90deg, #00e0d0 0%, #fff 50%, #00e0d0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite !important;
  font-size: 32px;
  font-weight: 900;
}

/* ── Nav underline slide ── */
.main-nav a { position: relative; }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

/* ── Course card 3D tilt (aplicado via JS) ── */
.course-card { transform-style: preserve-3d; }
.course-card .course-body { transform: translateZ(10px); }

/* ── Pulse ring en botones CTA ── */
.showcase-btn { animation: pulse-ring 2.5s ease-out infinite; }
.showcase-btn:hover { animation: none; }

/* ── Existing data-animate compat ── */
@media (prefers-reduced-motion: no-preference) {
  [data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
  }
  [data-animate].in-view { opacity: 1; transform: none; }
}

/* ══════════════════════════════════
   PRE-INSCRIPCIÓN PAGE
══════════════════════════════════ */
.form-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #fff 0%, #f0fafa 100%);
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-info {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.form-info h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 36px;
  line-height: 1.2;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.info-item:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff 0%, #f0fffe 100%);
  box-shadow: 0 8px 24px rgba(0, 169, 157, 0.08);
  transform: translateY(-2px);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 169, 157, 0.1), rgba(0, 169, 157, 0.05));
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.info-item p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin: 0;
}

.form-wrapper {
  position: sticky;
  top: 100px;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.hero-benefits span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.hero-benefits svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.category-pills {
  margin-bottom: 48px;
}

.pills-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-mid);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s;
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0faf9;
}

.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,169,157,.25);
}

/* Formulario */
.form-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  padding: 48px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}

.form-header {
  margin-bottom: 36px;
  text-align: center;
}

.form-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}

.form-header p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-grid label.full-width {
  grid-column: 1/-1;
}

.form-grid span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.form-grid input,
.form-grid select {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

.form-grid input:focus,
.form-grid select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,169,157,.1);
}

.form-grid input::placeholder {
  color: var(--muted);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 24px;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.checkbox-label a:hover { text-decoration: underline; }

.btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .18s, transform .15s;
  margin-bottom: 12px;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

/* ══════════════════════════════════
   PHONE INPUT WITH COUNTRY SELECTOR
══════════════════════════════════ */
.phone-label-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-label-wrapper > label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.phone-input-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.country-code-selector {
  position: relative;
  flex-shrink: 0;
}

.country-button {
  height: 48px;
  padding: 10px 12px !important;
  border-radius: 10px;
  border: 1px solid #ddd !important;
  background: #fff !important;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s;
  font-weight: 600;
  color: var(--ink) !important;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: none !important;
  margin: 0 !important;
  min-width: auto;
}

.flag-img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.country-button .code {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.country-button:hover {
  border-color: #bbb !important;
}

.country-button:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1) !important;
}

.country-select-hidden {
  display: none;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  min-width: 300px;
  margin-top: 8px;
}

.country-list {
  display: flex;
  flex-direction: column;
  padding: 6px;
}

.country-item {
  padding: 11px 12px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  font-size: 13px !important;
  border: none !important;
  background: transparent !important;
  color: var(--ink) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  border-radius: 6px !important;
  margin: 1px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

.country-item:hover {
  background-color: #f5f5f5 !important;
}

.country-item.selected {
  background-color: #f0fafa !important;
}

.country-item img {
  width: 24px !important;
  height: 16px !important;
  border-radius: 2px !important;
  flex-shrink: 0 !important;
  object-fit: cover !important;
}

.country-item-name {
  flex: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  color: var(--ink) !important;
  display: block !important;
}

.country-item-code {
  flex-shrink: 0 !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  min-width: 45px !important;
  text-align: right !important;
}

/* ══════════════════════════════════
   COURSE SELECTOR FOR FORMS
══════════════════════════════════ */
.course-selector-wrapper {
  position: relative;
}

.course-button-pre {
  width: 100% !important;
  height: auto !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  border: 1.5px solid #ddd !important;
  background: #fff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  color: #333 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: none !important;
  margin: 0 !important;
  min-height: auto !important;
}

.course-button-pre:hover {
  border-color: #bbb !important;
}

.course-button-pre:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1) !important;
}

.course-button-pre .arrow {
  font-size: 10px !important;
  color: #999 !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
}

.course-dropdown-pre {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 6px;
}

.course-list-pre {
  display: flex;
  flex-direction: column;
  padding: 4px;
}

.course-dropdown-pre .course-item {
  padding: 10px 12px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  font-size: 13px !important;
  border: none !important;
  background: transparent !important;
  color: #333 !important;
  border-radius: 4px !important;
  margin: 1px 0 !important;
  text-align: left !important;
}

.course-dropdown-pre .course-item:hover {
  background-color: #f5f5f5 !important;
}

.course-dropdown-pre .course-item.selected {
  background-color: #f0fafa !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* ══════════════════════════════════
   COURSE SELECTOR
══════════════════════════════════ */
.course-selector-wrapper {
  position: relative;
}

.course-button {
  width: 100% !important;
  min-height: 48px !important;
  padding: 14px 16px !important;
  border-radius: 10px !important;
  border: 2px solid var(--line) !important;
  background: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  color: var(--ink) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: none !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

.course-button:hover {
  border-color: var(--primary-light) !important;
  background: rgba(0, 169, 157, 0.02) !important;
}

.course-button:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.15) !important;
}

.course-button .arrow {
  font-size: 14px !important;
  color: var(--muted) !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
}

.course-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 169, 157, 0.12);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 8px;
}

.course-list {
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.course-item {
  padding: 14px 16px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  font-size: 14px !important;
  border: none !important;
  background: transparent !important;
  color: var(--ink) !important;
  border-radius: 6px !important;
  margin: 2px 0 !important;
  text-align: left !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.course-item:hover {
  background-color: #f5f5f5 !important;
}

.course-item.selected {
  background-color: #f0fafa !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* Override para .panel.form .country-item */
.panel.form .country-item,
.panel.form .country-item:hover,
.panel.form .country-item:active {
  background: transparent !important;
  color: var(--ink) !important;
  padding: 11px 12px !important;
  box-shadow: none !important;
  border: none !important;
  transform: none !important;
  min-height: auto !important;
  margin-top: 0 !important;
}

.panel.form .country-item:hover {
  background-color: #f5f5f5 !important;
}

.panel.form .country-item-name {
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.panel.form .country-item-code {
  color: var(--ink) !important;
  font-size: 13px !important;
}

.phone-input-group input[type="tel"] {
  flex: 1;
  height: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-group input[type="tel"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1);
}

.phone-input-group input[type="tel"]::placeholder {
  color: #999;
}

.panel.form .phone-input-group .country-select,
.panel.form .phone-input-group input[type="tel"] {
  border: 1px solid #ddd;
}

.panel.form .phone-input-group .country-select:focus,
.panel.form .phone-input-group input[type="tel"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1);
}

/* ══════════════════════════════════
   COOKIE BANNER
══════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 45, 43, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 2px solid var(--primary);
  padding: 24px 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.cookie-text h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: 0.3px;
}

.cookie-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn-accept,
.cookie-btn-reject,
.cookie-btn-config,
.cookie-link {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1;
}

.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
  border: none;
}

.cookie-btn-accept:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 169, 157, 0.3);
}

.cookie-btn-reject {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.cookie-btn-reject:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-config,
.cookie-link {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-btn-config:hover,
.cookie-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-preferences {
  display: grid;
  gap: 12px;
  margin: 22px 0 26px;
}

.cookie-preference-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.04);
}

.cookie-preference-row h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.cookie-preference-row p {
  margin: 0;
  color: var(--ink-mid);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 28px;
  flex: 0 0 auto;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #ccd7d6;
  transition: background 0.2s ease;
}

.cookie-switch span::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + span {
  background: var(--primary);
}

.cookie-switch input:checked + span::before {
  transform: translateX(22px);
}

.cookie-switch input:disabled + span {
  cursor: not-allowed;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .cookie-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn-accept,
  .cookie-btn-reject,
  .cookie-btn-config,
  .cookie-link {
    width: 100%;
  }

  .cookie-preference-row {
    grid-template-columns: 1fr;
  }

  .cookie-text p {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 32px 20px; }
  .form-section { padding: 48px 0 60px; }
  .form-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-wrapper { position: static; top: auto; }
  .form-info h2 { font-size: 28px; }
  .info-items { gap: 20px; }
  .info-item { padding: 18px; gap: 14px; }
  .info-icon { width: 40px; height: 40px; }
  .info-icon svg { width: 20px; height: 20px; }
  .info-item h3 { font-size: 15px; }
  .info-item p { font-size: 13px; }
  .pills-grid { gap: 8px; }
  .pill { padding: 8px 16px; font-size: 13px; }

  .phone-input-group {
    flex-direction: row;
    gap: 8px;
  }

  .country-select {
    min-width: 100px;
  }
}

/* ── Extra pequeño (móviles) ── */
@media (max-width: 480px) {
  .topbar { font-size: 12px; padding: 8px 0; }
  .topbar-inner { gap: 12px; flex-direction: row; align-items: center; padding: 8px 10px; justify-content: space-between; }
  .contact-strip { gap: 8px; flex-wrap: nowrap; justify-content: flex-start; font-size: 12px; }
  .topbar-socials { gap: 6px; margin-left: auto; }
  .topbar-social { width: 28px; height: 28px; font-size: 12px; }
  .topbar-social i { font-size: 12px; }

  .footer-grid { gap: 28px; padding: 32px 0 28px; }
  .footer-brand-col { padding-bottom: 20px; margin-bottom: 16px; }
  .footer-logo { max-width: 150px; }
  .footer-text { font-size: 12px; margin-bottom: 20px; }
  .footer-badges span { font-size: 10px; padding: 3px 10px; }
  .footer-col-title { font-size: 10px; margin-bottom: 12px; }
  .footer-nav a, .footer-contact-item { font-size: 12px; padding: 5px 0; gap: 8px; }
  .footer-nav a svg, .footer-contact-icon svg { width: 12px; height: 12px; }
  .footer-contact-icon { width: 24px; height: 24px; }
  .social-links { gap: 6px; margin-top: 12px; }
  .social-link { width: 32px; height: 32px; }

  .form-section { padding: 32px 0 48px; }
  .form-layout { gap: 28px; }
  .form-info h2 { font-size: 24px; margin-bottom: 24px; }
  .info-items { gap: 16px; }
  .info-item { padding: 16px; gap: 12px; }
  .info-icon { width: 36px; height: 36px; }
  .info-icon svg { width: 18px; height: 18px; }
  .info-item h3 { font-size: 14px; }
  .info-item p { font-size: 12px; }
}
