/* ============================================================
   Teacher Soutomaior — estilos (vanilla CSS, sin frameworks)
   Paleta y diseño portados de LandingPageRedesign.tsx
   ============================================================ */

:root {
  --primary: 215 75% 48%;          /* azul principal */
  --primary-dark: 215 65% 35%;
  --ink: 215 50% 15%;              /* azul oscuro texto */
  --ink-deep: 215 50% 12%;         /* footer */
  --accent: 12 80% 55%;            /* naranja */
  --accent-light: 12 80% 65%;
  --accent-dark: 12 80% 48%;
  --whatsapp: 142 70% 45%;
  --whatsapp-dark: 142 70% 38%;
  --muted: 215 15% 45%;            /* gris texto */
  --soft: 215 60% 97%;             /* fondo suave */
  --border: 0 0% 90%;
  --maxw: 72rem;                   /* max-w-6xl */
  --header-h: 4rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: hsl(var(--ink));
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
svg { display: block; }
ul { list-style: none; padding: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }

.text-accent { color: hsl(var(--accent)); }
.text-primary { color: hsl(var(--primary)); }

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 700;
  border: none;
  border-radius: .75rem;
  padding: .7rem 1.25rem;
  font-size: .95rem;
  transition: background-color .2s, box-shadow .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 1rem; height: 1rem; }
.btn--pill { border-radius: 9999px; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; padding-block: 1rem; border-radius: .75rem; font-size: 1rem; }

.btn--accent {
  background: hsl(var(--accent));
  color: #fff;
  box-shadow: 0 10px 15px -3px hsl(var(--accent) / .25);
}
.btn--accent:hover {
  background: hsl(var(--accent-dark));
  box-shadow: 0 20px 25px -5px hsl(var(--accent) / .3);
}
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 2px solid hsl(0 0% 100% / .3);
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover { background: hsl(0 0% 100% / .1); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  transition: background-color .2s, transform .2s;
}
.btn-icon svg { width: 1.25rem; height: 1.25rem; }
.btn-icon--whatsapp {
  background: hsl(var(--whatsapp));
  color: #fff;
  box-shadow: 0 4px 6px -1px hsl(var(--whatsapp) / .25);
}
.btn-icon--whatsapp:hover { background: hsl(var(--whatsapp-dark)); transform: scale(1.1); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: hsl(0 0% 100% / .8);
  backdrop-filter: blur(6px);
  transition: background-color .3s, box-shadow .3s;
}
.header.scrolled {
  background: hsl(0 0% 100% / .95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header__brand { display: flex; align-items: center; gap: .625rem; }
.header__logo { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.header__name { font-weight: 600; font-size: 1.125rem; color: hsl(var(--ink)); }

.header__nav { display: none; gap: 2rem; font-size: .875rem; font-weight: 500; color: hsl(215 20% 40%); }
.header__nav a { transition: color .2s; }
.header__nav a:hover { color: hsl(var(--primary)); }

.header__actions { display: none; align-items: center; gap: .75rem; }

.header__hamburger {
  display: inline-flex;
  background: none;
  border: none;
  padding: .5rem;
  color: hsl(var(--ink));
}
.header__hamburger svg { width: 1.5rem; height: 1.5rem; }
.header__hamburger .icon-close { display: none; }
.header__hamburger.open .icon-menu { display: none; }
.header__hamburger.open .icon-close { display: block; }

.header__mobile { background: #fff; border-top: 1px solid hsl(0 0% 95%); box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); }
.header__mobile nav { display: flex; flex-direction: column; gap: 1rem; padding: 1rem 1.5rem; font-weight: 500; color: hsl(215 20% 40%); }
.header__mobile nav a { padding-block: .5rem; transition: color .2s; }
.header__mobile nav a:hover { color: hsl(var(--primary)); }
.header__mobile .btn { color: #fff; margin-top: .5rem; }

@media (min-width: 640px) { .header__inner { height: 4.5rem; } }
@media (min-width: 768px) {
  .header__nav { display: flex; }
  .header__actions { display: flex; }
  .header__hamburger { display: none; }
  .header__mobile { display: none !important; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    hsl(var(--ink) / .8), hsl(var(--ink) / .6), hsl(var(--ink) / .8));
}
.hero__inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.hero__text { text-align: center; flex: 1; }
.hero__title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero__title-accent { color: hsl(var(--accent-light)); }
.hero__subtitle {
  color: hsl(0 0% 100% / .8);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero__buttons { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; }

.hero__visual { flex: 1; width: 100%; }
.hero__visual-card { position: relative; width: 100%; max-width: 32rem; margin: 0 auto; }
.hero__visual-glow {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom right, hsl(var(--primary)), hsl(var(--primary-dark)));
  border-radius: 1.5rem;
  transform: rotate(3deg);
  opacity: .2;
}
.hero__visual-card img {
  position: relative; z-index: 10;
  width: 100%; max-width: 18rem; margin: 0 auto;
  filter: drop-shadow(0 25px 25px rgb(0 0 0 / .3));
}

@media (min-width: 640px) {
  .hero { padding-top: 6rem; padding-bottom: 6rem; }
  .hero__buttons { flex-direction: row; justify-content: center; gap: 1rem; }
  .hero__visual-card img { max-width: 22rem; }
}
@media (min-width: 1024px) {
  .hero { padding-bottom: 8rem; }
  .hero__inner { flex-direction: row; gap: 4rem; }
  .hero__text { text-align: left; }
  .hero__subtitle { margin-inline: 0; }
  .hero__buttons { justify-content: flex-start; }
}

/* ============================================================
   Social proof
   ============================================================ */
.proof { background: hsl(var(--primary)); padding-block: 1.25rem; color: #fff; }
.proof__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.proof__item { display: flex; align-items: center; gap: .5rem; }
.proof__stars { display: flex; }
.proof__stars svg { width: 1.25rem; height: 1.25rem; color: hsl(50 100% 65%); }
.proof__strong { font-weight: 600; }
.proof__text { font-weight: 500; opacity: .9; }
.proof__divider { display: none; width: 1px; height: 1rem; background: hsl(0 0% 100% / .3); }
@media (min-width: 640px) {
  .proof { padding-block: 1.5rem; }
  .proof__inner { flex-direction: row; gap: 3rem; }
  .proof__divider { display: block; }
}

/* ============================================================
   Secciones genéricas
   ============================================================ */
.section { padding-block: 4rem; }
.section--white { background: #fff; }
.section--soft { background: hsl(var(--soft)); }
@media (min-width: 640px) { .section { padding-block: 6rem; } }

.section__head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section__title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 800;
  color: hsl(var(--ink));
  margin-bottom: 1rem;
}
.section__lead { color: hsl(var(--muted)); font-size: 1.0625rem; }

.eyebrow {
  display: inline-block;
  color: hsl(var(--accent));
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.eyebrow--left { text-transform: uppercase; color: hsl(var(--muted)); margin-bottom: 1.5rem; }

/* ============================================================
   Cursos
   ============================================================ */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .courses-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .courses-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: #fff;
  border: 1px solid hsl(0 0% 94%);
  border-radius: 1rem;
  padding: 1.5rem;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
}
.card__bar {
  position: absolute; top: 0; inset-inline: 0; height: 4px;
  background: hsl(var(--accent));
  opacity: 0; transition: opacity .3s;
}
.card:hover .card__bar { opacity: 1; }
.card__icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  background: hsl(var(--accent) / .08);
  transition: transform .3s;
}
.card__icon svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--accent)); }
.card:hover .card__icon { transform: scale(1.1); }
.card__title { font-size: 1.125rem; font-weight: 700; color: hsl(var(--ink)); margin-bottom: .5rem; line-height: 1.2; }
.card__text { color: hsl(var(--muted)); font-size: .875rem; line-height: 1.6; }

/* ============================================================
   Nosotros
   ============================================================ */
.about { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .about { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.about__media { position: relative; }
.about__image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);
  background: #fff;
}
.about__image img { width: 100%; max-width: 28rem; margin: 0 auto; padding: 2rem; }
.about__stat {
  position: absolute; bottom: -1.5rem; right: 1rem;
  background: #fff;
  border: 1px solid hsl(0 0% 94%);
  border-radius: .75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1);
  padding: 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.about__stat-icon {
  width: 3rem; height: 3rem; border-radius: 9999px;
  background: hsl(var(--accent) / .1);
  display: flex; align-items: center; justify-content: center;
}
.about__stat-icon svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--accent)); }
.about__stat-num { font-size: 1.5rem; font-weight: 800; color: hsl(var(--ink)); }
.about__stat-label { font-size: .75rem; color: hsl(var(--muted)); }

.about__text { text-align: left; }
.about__title { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem; }
.about__title span { display: inline; }
.about__list { display: flex; flex-direction: column; gap: 1rem; }
.about__list li { display: flex; align-items: flex-start; gap: .75rem; }
.about__list-icon {
  width: 2rem; height: 2rem; border-radius: .5rem;
  background: hsl(var(--primary) / .1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: .125rem;
}
.about__list-icon svg { width: 1rem; height: 1rem; color: hsl(var(--primary)); }
.about__list li span:last-child { color: hsl(var(--ink)); font-weight: 500; font-size: .9375rem; }

/* ============================================================
   Testimonios (carrusel)
   ============================================================ */
.carousel { position: relative; overflow: hidden; }
.carousel__track { display: flex; transition: transform .5s ease-in-out; }
.carousel__item { flex: 0 0 100%; padding-inline: .75rem; }
@media (min-width: 768px) { .carousel__item { flex-basis: 33.3333%; } }

.testimonial {
  background: hsl(var(--soft));
  border: 1px solid hsl(0 0% 94%);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}
@media (min-width: 640px) { .testimonial { padding: 2rem; } }
.testimonial__stars { display: flex; margin-bottom: 1rem; }
.testimonial__stars svg { width: 1.25rem; height: 1.25rem; color: hsl(45 95% 55%); }
.testimonial__text { color: hsl(var(--ink)); font-size: .9375rem; line-height: 1.7; font-style: italic; flex: 1; margin-bottom: 1.5rem; }
.testimonial__person { display: flex; align-items: center; gap: .75rem; }
.testimonial__avatar {
  width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  background: hsl(var(--primary));
  color: #fff; font-weight: 700; font-size: .875rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial__name { font-weight: 600; font-size: .875rem; color: hsl(var(--ink)); }
.testimonial__role { font-size: .75rem; color: hsl(215 15% 45%); }

.carousel__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.carousel__dots button {
  width: .625rem; height: .625rem; border-radius: 9999px; border: none;
  background: hsl(215 20% 80%);
  transition: background-color .3s, width .3s;
}
.carousel__dots button:hover { background: hsl(215 20% 65%); }
.carousel__dots button.active { background: hsl(var(--primary)); width: 2rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: hsl(var(--primary)); font-weight: 600; font-size: .875rem;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { width: 1rem; height: 1rem; }

/* ============================================================
   Contacto
   ============================================================ */
.contact { max-width: 36rem; margin: 0 auto; }
.contact-form {
  background: #fff;
  border: 1px solid hsl(0 0% 94%);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
@media (min-width: 640px) { .contact-form { padding: 2rem; } }
.field { display: flex; flex-direction: column; }
.field label { font-size: .875rem; font-weight: 600; color: hsl(var(--ink)); margin-bottom: .375rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid hsl(0 0% 88%);
  border-radius: .75rem;
  padding: .75rem 1rem;
  font-size: .875rem;
  color: hsl(var(--ink));
  background: #fff;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: none; }
.field input::placeholder, .field textarea::placeholder { color: hsl(0 0% 64%); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / .3);
}

.contact-success {
  background: #fff;
  border: 1px solid hsl(0 0% 94%);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1);
  padding: 2.5rem;
  text-align: center;
}
.contact-success__icon {
  width: 4rem; height: 4rem; border-radius: 9999px;
  background: hsl(var(--whatsapp) / .1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.contact-success__icon svg { width: 2rem; height: 2rem; color: hsl(var(--whatsapp)); }
.contact-success h3 { font-size: 1.25rem; font-weight: 700; color: hsl(var(--ink)); margin-bottom: .5rem; }
.contact-success p { color: hsl(215 15% 45%); font-size: .875rem; }
.link-text {
  background: none; border: none; color: hsl(var(--primary));
  font-size: .875rem; font-weight: 600; margin-top: 1.5rem;
}
.link-text:hover { text-decoration: underline; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: hsl(var(--ink-deep)); padding-block: 2.5rem; }
.footer__top {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem; margin-bottom: 2rem;
}
.footer__brand { display: flex; align-items: center; gap: .75rem; }
.footer__brand img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.footer__brand span { color: #fff; font-weight: 600; font-size: 1.125rem; }
.footer__nav { display: flex; align-items: center; gap: 1.5rem; font-size: .875rem; color: hsl(0 0% 100% / .6); }
.footer__nav a { transition: color .2s; }
.footer__nav a:hover { color: #fff; }
.footer__social { display: flex; align-items: center; gap: 1rem; }
.footer__social a { color: hsl(0 0% 100% / .5); transition: color .2s; }
.footer__social a:hover { color: #fff; }
.footer__social svg { width: 1.25rem; height: 1.25rem; }
.footer__bottom {
  border-top: 1px solid hsl(0 0% 100% / .1);
  padding-top: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.footer__bottom p { color: hsl(0 0% 100% / .4); font-size: .8125rem; }
.footer__credit { color: hsl(0 0% 100% / .5); font-size: .875rem; font-weight: 700; transition: color .2s; }
.footer__credit:hover { color: #fff; }
@media (min-width: 768px) {
  .footer__top { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 640px) {
  .footer { padding-block: 3.5rem; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   FAB WhatsApp
   ============================================================ */
.fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: hsl(var(--whatsapp));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 15px -3px hsl(var(--whatsapp) / .3);
  transition: background-color .2s, transform .2s;
}
.fab:hover { background: hsl(142 70% 40%); transform: scale(1.1); }
.fab svg { width: 1.75rem; height: 1.75rem; }

/* ============================================================
   Animaciones de entrada (reveal)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
