/*
  STYLE.CSS · LANDING LARCHMONT
  Este archivo controla el aspecto visual de la landing.
  Está pensado en mobile-first: primero móvil, luego se adapta a escritorio.
  Colores aproximados según materiales Larchmont:
  - Verde/teal principal
  - Azul oscuro para titulares
  - Naranja como acento
  Puedes cambiar los colores desde :root sin tocar todo el CSS.
*/

:root {
  --teal: #178b8e;
  --teal-dark: #064455;
  --orange: #c7802b;
  --cream: #fbf7ef;
  --light: #ffffff;
  --soft-gray: #eef1f1;
  --text: #15323a;
  --muted: #66777c;
  --shadow: 0 18px 50px rgba(6, 68, 85, 0.12);
  --radius: 24px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/*
  BOTONES
  Aplica a todos los CTA: WhatsApp, ver modalidades, preguntar por opción.
  Para cambiar el color de todos los botones, modifica background en .btn.
*/
.btn {
  display: inline-flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(23, 139, 142, 0.22);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn-secondary {
  background: white;
  color: var(--teal-dark);
  box-shadow: none;
  border: 1px solid rgba(6, 68, 85, 0.12);
}

.btn-small {
  min-height: 40px;
  padding: 0.6rem 1rem;
}

.btn-full {
  width: 100%;
  margin-top: auto;
}

/*
  HEADER
  En móvil se simplifica: el menú queda oculto para no ocupar espacio.
  En escritorio se muestra la navegación.
*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6, 68, 85, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  color: var(--teal);
  letter-spacing: 0.04em;
}

.brand small {
  color: var(--orange);
  font-weight: 700;
}

.main-nav {
  display: none;
  gap: 3rem;
  font-weight: 700;
  color: var(--teal-dark);
}

/*
  HERO
  Primer bloque visual. En móvil se apila: texto arriba, imagen debajo.
  En escritorio pasa a dos columnas.
*/
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  display: column;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}


h1 {
  margin-bottom: 0;
  color: var(--teal-dark);
  font-size: clamp(2.35rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h2 {
  color: var(--teal-dark);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

h3 {
  color: var(--texal-dark);
  font-size: 1.25rem;
}

.p-subtitle {
  margin-top: -1rem;
  color: gray;
}

.hero-text {
  max-width: none;
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 2rem;
}

.hero-title {
  margin-bottom: 2rem;
}

.hero-title-teal {
  color: var(--teal);
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.hero-title-dark {
  color: var(--teal-dark);
  font-size: clamp(2.35rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.hero-title-orange {
  color: var(--orange);
  font-size: clamp(2.35rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 900;
  margin-top: 0.5rem;
}

.hero-actions {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-facts span {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(23, 139, 142, 0.1);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding-top: 2rem;
}

.promo-card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 360px;
  padding: 1rem;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
}

.promo-card strong,
.promo-card span {
  display: block;
}

.promo-card strong {
  color: var(--teal-dark);
}

.promo-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

/*
  SECCIONES GENERALES
  Aplica a todos los bloques interiores para mantener ritmo visual.
*/
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem;
  scroll-margin-top: 80px;
}

.section-heading {
  max-width: none;
  margin-bottom: 1.5rem;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.intro-grid,
.steps,
.cards-grid {
  display: grid;
  gap: 1rem;
}

.intro-grid article,
.step,
.course-card,
.guarantee-box,
.faq-item {
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.intro-grid article,
.step {
  padding: 1.4rem;
}

/*
  TARJETAS DE MODALIDADES
  Las tarjetas .featured destacan las opciones más urgentes.
  .course-card-wide sirve para el curso de verano más general.
*/
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem;
  border: 2px solid transparent;
}

.course-card.featured {
  border-color: rgba(199, 128, 43, 0.55);
}

.course-card {
  flex: 0 1 320px;
}

.course-card-wide {
  flex: 0 1 100%;
}

@media (max-width: 768px) {
  .cards-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .course-card,
  .course-card-wide {
    width: 100%;
    max-width: 100%;
  }
}

.tag {
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag.muted {
  background: rgba(23, 139, 142, 0.1);
  color: var(--teal-dark);
}

.course-days {
  color: var(--teal);
  font-weight: 900;
  margin-bottom: -1rem;
}

.course-dates {
  color: var(--teal);
  font-weight: 900;
  margin-top: 0;
}

.course-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.price {
  margin: 0;
  color: var(--teal-dark);
  font-size: 2rem;
  font-weight: 900;
  line-height: 2rem;
  margin-bottom: 0.5rem;
}

.note {
  padding: 0.8rem;
  border-radius: 14px;
  background: var(--soft-gray);
  color: var(--muted);
  font-size: 0.9rem;
}

/*
  MÉTODO
  Los números ayudan a que el proceso se entienda rápido en móvil.
*/
.step span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--teal-dark);
  color: white;
  font-weight: 900;
}

/*
  GARANTÍA
  Bloque de alto impacto. Si la garantía queda pendiente, puedes reducirlo o convertirlo en nota.
*/
.guarantee-box {
  padding: 2rem;
  background: var(--teal-dark);
  color: white;
  text-align: center;
}

.guarantee-box h2,
.guarantee-box .eyebrow {
  color: white;
}

.guarantee-box p {
  color: rgba(255,255,255,0.82);
}

.guarantee-box small {
  color: rgba(255,255,255,0.68);
}

.cta-section p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

/*
  FAQ
  JavaScript añade/quita la clase .is-open en cada .faq-item.
*/
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-question {
  width: 100%;
  padding: 1rem;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.site-footer {
  display: grid;
  gap: 1rem;
  padding: 2rem 1rem 6rem;
  background: white;
  color: var(--muted);
  align-items: ;
}

.site-footer strong {
  color: var(--teal-dark);
}

.site-footer p {
  margin: 0;
  line-height: 1.4;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal);
}

/*
  BOTÓN FIJO MÓVIL
  Solo aparece en móvil/tablet. En escritorio se oculta para no duplicar CTA.
*/
.mobile-whatsapp {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 1rem;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-weight: 900;
  box-shadow: 0 18px 35px rgba(6, 68, 85, 0.25);
}

/*
  RESPONSIVE ESCRITORIO
  A partir de 760px se muestran columnas, navegación y se mejora el aire visual.
*/
@media (min-width: 760px) {
  .site-header {
    padding: 1rem 2rem;
  }

  .main-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    padding: 5rem 1.5rem 3rem;
  }

  .hero-actions {
    display: flex;
  }

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

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

  .course-card-wide {
    grid-column: span 3;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    padding: 2rem;
  }

  .site-footer div:last-child {
  text-align: right;
}


  .mobile-whatsapp {
    display: none;
  }
}

@media (min-width: 1040px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .course-card-wide {
    grid-column: span 4;
  }
}

@media (max-width: 768px) {
  .promo-card {
    position: static;
    max-width: 100%;
    margin: 1rem;
  }
}
