/* ═══════════════════════════════════════════════════════════════
   CLALTECH — CSS Principal
   Paleta: Teal #2EAB8E  |  Orange #F26419  |  Fondos claros
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --teal:        #2EAB8E;
  --teal-dark:   #1d8a70;
  --teal-light:  #e8f7f3;
  --orange:      #F26419;
  --orange-dark: #d4520e;
  --orange-light:#fff3ec;
  --blue:        #1a6aa8;
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-600:    #4b5563;
  --gray-800:    #1f2937;
  --gray-900:    #111827;
  --text:        #1f2937;
  --text-muted:  #6b7280;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.14);
  --shadow-xl:   0 20px 60px rgba(0,0,0,.18);
  --transition:  .3s cubic-bezier(.4,0,.2,1);
  --header-h:    72px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Accesibilidad ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  background: var(--teal); color: #fff; padding: .5rem 1rem; border-radius: 4px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ── Container ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }

/* ── Tipografía ────────────────────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: .75rem;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--teal);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  line-height: 1.15; color: var(--gray-900); margin-bottom: 1rem;
}
.section-title span { color: var(--teal); }
.section-subtitle {
  font-size: 1.05rem; color: var(--text-muted); max-width: 620px; line-height: 1.7;
}
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-subtitle { margin-inline: auto; }

/* ── Botones ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 50px;
  font-size: .95rem; font-weight: 600; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal); color: #fff;
  box-shadow: 0 4px 14px rgba(46,171,142,.35);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46,171,142,.4); }
.btn-secondary {
  background: var(--orange); color: #fff;
  box-shadow: 0 4px 14px rgba(242,100,25,.35);
}
.btn-secondary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-white {
  background: #fff; color: var(--teal); font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-white:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); max-width: 1280px; margin-inline: auto;
  padding-inline: 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .75rem;
}
.nav-logo img { width: 44px; height: 44px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text strong { font-size: 1.1rem; font-weight: 900; color: var(--gray-900); letter-spacing: -.02em; }
.nav-logo-text small { font-size: .65rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }

.nav-menu {
  display: flex; align-items: center; gap: .25rem;
}
.nav-link {
  padding: .5rem .85rem; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--gray-600);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { background: var(--teal-light); color: var(--teal); }
.nav-cta {
  padding: .55rem 1.25rem; border-radius: 50px;
  background: var(--teal); color: #fff;
  font-size: .88rem; font-weight: 600;
  transition: var(--transition);
  margin-left: .5rem;
}
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; border-radius: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════════════════ */
#inicio {
  margin-top: var(--header-h);
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
}
.slider-wrapper {
  position: relative; width: 100%;
  min-height: calc(100svh - var(--header-h));
}
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity .9s ease;
  overflow: hidden;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 100%);
}
.slide-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin-inline: auto;
  padding: 2rem 1.5rem;
  color: #fff;
}
.slide-eyebrow {
  display: inline-block; background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px; padding: .3rem 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 1rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s .2s ease, transform .6s .2s ease;
}
.slide.active .slide-eyebrow { opacity: 1; transform: translateY(0); }
.slide-title {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 1.25rem;
  max-width: 750px;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s .35s ease, transform .6s .35s ease;
}
.slide.active .slide-title { opacity: 1; transform: translateY(0); }
.slide-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 400;
  line-height: 1.65; max-width: 560px; margin-bottom: 2rem;
  color: rgba(255,255,255,.88);
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s .5s ease, transform .6s .5s ease;
}
.slide.active .slide-subtitle { opacity: 1; transform: translateY(0); }
.slide-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s .65s ease, transform .6s .65s ease;
}
.slide.active .slide-actions { opacity: 1; transform: translateY(0); }

/* Controles del slider */
.slider-dots {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: .6rem; align-items: center;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: 2px solid transparent;
  transition: var(--transition); cursor: pointer;
}
.slider-dot.active { background: #fff; width: 24px; border-radius: 4px; }
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); cursor: pointer;
}
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,.25); transform: translateY(-50%) scale(1.05); }

/* ── Stats bar ──────────────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  position: relative; z-index: 2;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--gray-200);
}
.stat-item {
  padding: 2rem 1.5rem; text-align: center;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900;
  color: var(--teal); line-height: 1; margin-bottom: .25rem;
}
.stat-item:nth-child(2) .stat-number { color: var(--orange); }
.stat-label {
  font-size: .85rem; color: var(--text-muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════════════
   SECCIONES GENERALES
   ═══════════════════════════════════════════════════════════════ */
section { padding: 5rem 0; }
.section-alt { background: var(--gray-50); }

/* ── Sobre nosotros ─────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.about-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal-light) 0%, #d1ede7 100%);
}
.about-badge {
  position: absolute; bottom: -1rem; right: -1rem;
  background: var(--orange); color: #fff; padding: 1.25rem 1.5rem;
  border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-lg);
}
.about-badge strong { font-size: 2rem; font-weight: 900; display: block; line-height: 1; }
.about-badge span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.about-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem;
}
.about-feature {
  display: flex; gap: .75rem; padding: 1rem;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
}
.about-feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.about-feature h4 { font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.about-feature p  { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   CURSOS
   ═══════════════════════════════════════════════════════════════ */
#cursos { background: var(--gray-50); }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.course-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition); display: flex; flex-direction: column;
}
.course-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.course-img {
  height: 200px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
}
.course-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.course-card:hover .course-img img { transform: scale(1.06); }
.course-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .5rem;
}
.course-img-placeholder svg { opacity: .4; }
.course-img-placeholder span { font-size: .7rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; }
.course-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--orange); color: #fff;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .75rem; border-radius: 50px;
}
.course-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.course-title { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: .6rem; }
.course-desc  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 1.25rem; }
.course-meta  { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.course-meta-item {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; color: var(--gray-600); font-weight: 500;
}
.course-meta-item svg { color: var(--teal); flex-shrink: 0; }
.course-price { font-size: 1.1rem; font-weight: 800; color: var(--teal); margin-bottom: 1rem; }
.course-footer {
  padding-top: 1rem; border-top: 1px solid var(--gray-100);
  display: flex; justify-content: space-between; align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   GRUPOS DISPONIBLES
   ═══════════════════════════════════════════════════════════════ */
#grupos { background: var(--white); }
.groups-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem;
}
.group-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.group-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
}
.group-card:hover { box-shadow: var(--shadow); border-color: var(--teal); transform: translateY(-3px); }
.group-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--teal); background: var(--teal-light); padding: .25rem .75rem; border-radius: 50px; align-self: flex-start;
}
.group-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.group-course { font-size: .82rem; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; }
.group-name   { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.group-details { display: flex; flex-direction: column; gap: .4rem; }
.group-detail {
  display: flex; align-items: center; gap: .5rem;
  font-size: .83rem; color: var(--text-muted);
}
.group-detail svg { color: var(--teal); flex-shrink: 0; }
.group-footer {
  padding-top: .75rem; border-top: 1px solid var(--gray-100);
  display: flex; justify-content: space-between; align-items: center;
}
.group-slots { font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.group-slots strong { color: var(--orange); }

.groups-empty {
  text-align: center; padding: 3rem; background: var(--gray-50);
  border-radius: var(--radius-lg); border: 2px dashed var(--gray-200);
}
.groups-empty p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   POR QUÉ ELEGIRNOS
   ═══════════════════════════════════════════════════════════════ */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem;
}
.why-card {
  padding: 2rem; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); background: var(--white);
  text-align: center; transition: var(--transition);
}
.why-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--teal); color: #fff; }
.why-title { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; }
.why-text  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   GALERÍA
   ═══════════════════════════════════════════════════════════════ */
#galeria { background: var(--gray-900); color: #fff; }
#galeria .section-label { color: var(--teal); }
#galeria .section-title { color: #fff; }
#galeria .section-subtitle { color: rgba(255,255,255,.65); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: .75rem;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer;
  background: var(--gray-800);
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease;
  background: var(--gray-800);
}
.gallery-item:hover .gallery-img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label { color: #fff; font-size: .85rem; font-weight: 600; }

/* Placeholder galería */
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: rgba(255,255,255,.3);
  text-transform: uppercase; letter-spacing: .1em;
  flex-direction: column; gap: .5rem;
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIOS
   ═══════════════════════════════════════════════════════════════ */
#testimonios { background: var(--gray-50); }
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track {
  display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.testimonial-card {
  min-width: calc(33.333% - 1rem); margin-right: 1.5rem;
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem;
}
.testimonial-stars { display: flex; gap: .25rem; color: #f59e0b; font-size: 1.1rem; }
.testimonial-body {
  font-size: .95rem; color: var(--gray-600); line-height: 1.75; flex: 1;
  font-style: italic; position: relative; padding-left: 1.25rem;
}
.testimonial-body::before {
  content: '"'; position: absolute; left: 0; top: -.25rem;
  font-size: 3rem; color: var(--teal); line-height: 1; font-style: normal; font-weight: 900;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), var(--orange));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: .95rem; }
.testimonial-role { font-size: .8rem; color: var(--text-muted); }
.testimonials-nav {
  display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem;
}
.testimonials-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gray-200);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); transition: var(--transition); cursor: pointer;
}
.testimonials-btn:hover { border-color: var(--teal); color: var(--teal); }
.testimonials-dots { display: flex; gap: .5rem; }
.testimonials-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); cursor: pointer; transition: var(--transition); }
.testimonials-dot.active { background: var(--teal); width: 24px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 60%, #166350 100%);
  padding: 5rem 0; color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-band .section-title { color: #fff; margin-bottom: 1rem; }
.cta-band .section-subtitle { color: rgba(255,255,255,.8); margin-inline: auto; }
.cta-band-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ═══════════════════════════════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════════════════════════════ */
#contacto { background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start;
}
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem;
}
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .3rem; }
.contact-info-item a { color: var(--gray-800); font-size: .95rem; font-weight: 500; }
.contact-info-item a:hover { color: var(--teal); }
.contact-info-item p { color: var(--gray-800); font-size: .95rem; }

/* Formulario */
.contact-form {
  background: var(--gray-50); border-radius: var(--radius-lg);
  padding: 2.5rem; border: 1px solid var(--gray-200);
}
.contact-form h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.contact-form p  { font-size: .88rem; color: var(--text-muted); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--gray-700);
  margin-bottom: .4rem;
}
.form-control {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  font-family: var(--font); font-size: .9rem; color: var(--gray-900);
  background: var(--white); transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46,171,142,.15); }
.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; padding: 1rem; font-size: 1rem; margin-top: .5rem; }
.form-notice { font-size: .78rem; color: var(--text-muted); margin-top: 1rem; text-align: center; }

/* Mensajes de estado del formulario */
.form-alert {
  padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1rem;
  font-size: .9rem; font-weight: 500; display: none;
}
.form-alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; display: block; }
.form-alert.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; display: block; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,.75); }
.footer-top { padding: 4rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
}
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-logo {
  display: flex; align-items: center; gap: .75rem; color: #fff; margin-bottom: .5rem;
}
.footer-logo img { width: 48px; height: 48px; }
.footer-logo span { display: flex; flex-direction: column; line-height: 1.1; }
.footer-logo strong { font-size: 1.1rem; font-weight: 900; }
.footer-logo small { font-size: .65rem; opacity: .6; text-transform: uppercase; letter-spacing: .08em; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.footer-links h3 { font-size: .85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links a:hover { color: var(--teal); padding-left: .25rem; }
.footer-contact h3 { font-size: .85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-contact address { font-style: normal; }
.footer-contact p { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: .85rem; }
.footer-contact svg { flex-shrink: 0; margin-top: .15rem; color: var(--teal); }
.footer-contact a { color: rgba(255,255,255,.75); }
.footer-contact a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); }

/* ── WhatsApp FAB ────────────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  background: #25D366; color: #fff;
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.25rem; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: var(--transition); font-size: .9rem; font-weight: 600;
}
.whatsapp-fab:hover { background: #1ebe57; transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 28px rgba(37,211,102,.5); }
.whatsapp-fab span { white-space: nowrap; }

/* ── Animaciones de entrada ─────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid   { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(4) { grid-column: span 1; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 1px solid var(--gray-200); }
  .stat-item:nth-child(3) { border-top: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200); }
  .testimonial-card { min-width: calc(50% - .75rem); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem; box-shadow: var(--shadow-lg);
    transform: translateY(-110%); transition: transform .3s ease;
    z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-link { padding: .85rem 1rem; border-radius: 10px; text-align: left; font-size: 1rem; }
  .nav-cta  { text-align: center; margin: .5rem 0 0; border-radius: 10px; padding: .85rem; }
  .nav-toggle { display: flex; }

  .slide-title    { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .slider-prev, .slider-next { width: 40px; height: 40px; }
  .slider-prev    { left: .75rem; }
  .slider-next    { right: .75rem; }

  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .courses-grid   { grid-template-columns: 1fr; }
  .groups-grid    { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .testimonial-card { min-width: calc(100% - 1.5rem); }
  .form-row       { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .whatsapp-fab span { display: none; }
  .whatsapp-fab   { padding: .9rem; border-radius: 50%; }
}

@media (max-width: 480px) {
  section       { padding: 3.5rem 0; }
  .why-grid     { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 1; }
  .cta-band-actions { flex-direction: column; align-items: center; }
}
