/* ==========================================================================
   Ana Pinzón Lara — clases particulares de matemáticas
   CSS propio, escrito para replicar el diseño del sitio original en Webflow.
   Sin frameworks ni build. Tipografías: Ubuntu + Open Sans (Google Fonts).
   ========================================================================== */

:root {
  --blue:       #00a3ff;
  --blue-light: #6ecbff;
  --blue-dark:  #008bd9;
  --amber:      #ffa800;

  --whatsapp:      #1ba34e;
  --whatsapp-dark: #12864a;

  --ink:        #1a1b1f;
  --text:       #333333;
  --muted:      #737373;

  --line:       #e4ebf3;
  --gray-bg:    #f5f7fa;
  --chip:       #f6f6f6;

  --shadow-card: 0 4px 130px rgba(150, 163, 181, .12);
  --shadow-tag:  0 3px 10px rgba(150, 163, 181, .2);

  --wrap: 940px;

  --ubuntu: Ubuntu, Helvetica, sans-serif;
  --opensans: "Open Sans", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--ubuntu);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 500; }

p { margin: 0; }

ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; top: 0; }

:where(a, button):focus-visible { outline: 2px solid #0050bd; outline-offset: 2px; border-radius: 4px; }

/* ---------- Barra de navegación ---------- */

.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(8px);
}

.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px; padding-inline: 30px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  color: var(--muted);
  letter-spacing: .25px;
  padding: 5px 14px;
  font-size: 14px;
  line-height: 24px;
  text-decoration: none;
  border-radius: 16px;
}
.nav-link:hover { color: #3c3c3c; background: var(--chip); }

/* ---------- Botón ---------- */

/* Verde de WhatsApp. Se usa #1ba34e y no el #25d366 de marca porque este
   último solo da 1,98:1 de contraste con texto blanco; #1ba34e da 3,28:1, que
   con el texto en 19px negrita cumple el mínimo de WCAG para texto grande. */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  letter-spacing: .2px;
  text-align: center;
  text-decoration: none;
  background-color: var(--whatsapp);
  border: 0;
  border-radius: 40px;
  padding: 18px 36px;
  font-family: var(--opensans);
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
  box-shadow: 0 4px 14px rgba(18, 134, 74, .25);
  transition: background-color .2s, transform .2s;
}

.button-primary::before {
  content: "";
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  background: url("assets/whatsapp.svg") no-repeat center / contain;
}

.button-primary:hover { background-color: var(--whatsapp-dark); transform: translateY(-1px); }
.button-primary:active { transform: none; }

.button-small { padding: 12px 24px; font-size: 16px; gap: 10px; }
.button-small::before { flex-basis: 22px; width: 22px; height: 22px; }

/* ---------- Etiqueta de sección (píldora gris) ---------- */

.section-label {
  color: var(--muted);
  background: var(--chip);
  border-radius: 32px;
  padding: 0 24px;
  font-size: 18px;
  font-weight: 300;
  line-height: 32px;
}

.section-centered { display: flex; flex-direction: column; align-items: center; text-align: center; }

.section { padding: 80px 30px; border-bottom: 1px solid var(--line); }

.label-band { display: flex; justify-content: center; padding: 56px 30px 0; }

/* ---------- Hero ---------- */

.hero { background: #fff; border-bottom: 1px solid var(--line); padding: 80px 30px; }

.hero-wrapper { display: flex; justify-content: space-between; align-items: center; gap: 56px; }

.hero-photo { max-width: 46%; flex: 0 0 auto; }

.hero-split { display: flex; flex-flow: column; align-items: flex-start; max-width: 46%; }

.hero-heading {
  font-family: var(--opensans);
  font-size: 72px;
  font-weight: 700;
  line-height: 68px;
  letter-spacing: -1px;
}

.hero-line { width: 100%; max-width: 320px; margin: 16px 0 20px; }

.hero-sub { font-size: 16px; line-height: 24px; margin-bottom: 28px; }

/* ---------- Sobre Ana ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
  width: 100%;
  text-align: left;
}

.card-one {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  padding: 40px 24px;
}

/* insignia naranja que sobresale en la esquina superior derecha */
.card-badge { position: absolute; top: -22px; right: -18px; width: 44px; height: 44px; }

.card-title {
  font-family: var(--ubuntu);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  margin-bottom: 24px;
}

.cardline {
  background-image: url("assets/tick.svg");
  background-position: 0 2px;
  background-repeat: no-repeat;
  background-size: 18px;
  padding-left: 34px;
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
}
.cardline:last-child { margin-bottom: 0; }
.cardline strong { display: block; font-weight: 400; color: var(--text); }
.cardline span { display: block; color: var(--muted); font-size: 13px; line-height: 19px; }

/* ---------- Clases particulares (banda oscura) ---------- */

.classes {
  position: relative;
  background-color: #1a1b1f;
  background-image: url("assets/background-numbers.png");
  background-position: 50% 50%;
  background-size: cover;
  padding: 80px 30px;
}

/* velo para garantizar contraste del texto sobre la foto del tablero */
.classes::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .2);
}

.classes-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }

.classes-heading {
  color: #fff;
  font-family: var(--opensans);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  margin-bottom: 40px;
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; margin-bottom: 40px; }

.feature {
  display: flex; flex-direction: column; align-items: center;
  gap: 24px;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  padding: 32px 24px;
}

.feature-icon { width: 48px; height: 48px; }

.feature h3 {
  color: #fff;
  font-family: var(--ubuntu);
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
}

/* ---------- Precios ---------- */

.pricing { background: var(--gray-bg); padding: 80px 30px; }

.pricing-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 8px;
  row-gap: 50px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

/* la tarjeta recomendada sobresale por arriba y por abajo */
.featured-pricing {
  margin-block: -24px;
  padding-block: 56px;
  box-shadow: 0 4px 60px rgba(150, 163, 181, .35);
}

.pricing-tag {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: var(--amber);
  border-radius: 24px;
  padding: 7px 16px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  box-shadow: var(--shadow-tag);
}

.pricing-icon { width: 32px; height: 32px; }

.pricing-title {
  font-family: var(--ubuntu);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  margin: 10px 0 8px;
}

.pricing-subtitle { color: var(--muted); font-size: 14px; font-weight: 300; line-height: 20px; }

.pricing-includes { font-size: 16px; font-weight: 500; line-height: 24px; margin: 24px 0 12px; }

.pricing-list { margin-bottom: 24px; }

.pricing-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
}
.pricing-list li::before { content: "•"; position: absolute; left: 0; color: var(--text); }

/* el bloque de precios se pega abajo para que quede a la misma altura
   en las tres tarjetas, sin importar cuántas viñetas tenga cada una */
.pricing-prices { margin-top: auto; padding-top: 24px; }

.pricing-price {
  color: var(--blue);
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}
.pricing-price + .pricing-price { margin-top: 12px; }

.pricing-price .unit {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 18px;
}

.pricing-prices + .button-primary { margin-top: 24px; }

/* dentro de las tarjetas el botón ocupa todo el ancho para que quepa */
.pricing-card .button-primary { align-self: stretch; padding-inline: 20px; }

.note { color: var(--muted); font-size: 14px; font-weight: 300; margin-top: 40px; }

/* ---------- Testimonios (pendientes) ---------- */

.testimonials { background: var(--gray-bg); padding: 80px 30px; }

.section-title { font-family: var(--opensans); font-size: 32px; font-weight: 700; line-height: 40px; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; width: 100%; }

.testimonial-card {
  display: flex; flex-flow: column; align-items: center; gap: 24px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  margin: 0;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.testimonial-card blockquote { margin: 0; font-size: 16px; font-weight: 300; line-height: 24px; }
.testimonial-card figcaption strong { display: block; font-weight: 500; color: var(--ink); }
.testimonial-card figcaption span { display: block; color: var(--muted); font-size: 14px; }

/* ---------- Pie ---------- */

.footer { padding: 32px 30px; border-top: 1px solid var(--line); }

.footer-inner {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 14px; font-weight: 300;
}
.footer a { color: var(--muted); }

/* ==========================================================================
   Responsive — mismos cortes que usa el sitio original (991 / 767 / 479)
   ========================================================================== */

@media (max-width: 991px) {
  .container { max-width: 728px; }

  .hero-wrapper { flex-direction: column; align-items: center; gap: 32px; }
  .hero-photo { max-width: 340px; }
  .hero-split { max-width: 100%; align-items: center; text-align: center; }
  .hero-heading { font-size: 56px; line-height: 58px; }
  .hero-line { margin-inline: auto; }

  .nav-link { padding-inline: 8px; }

  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .card-badge { right: 16px; }

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

  .pricing-wrapper { grid-template-columns: 1fr; justify-items: center; }
  .pricing-card { width: 100%; max-width: 420px; }
  .featured-pricing { margin-block: 0; padding-block: 40px; }

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

@media (max-width: 767px) {
  .hero, .section, .classes, .pricing, .testimonials { padding: 60px 15px; }
  .label-band { padding: 40px 15px 0; }
  .navbar-inner { padding-inline: 15px; }
  .classes-heading, .section-title { font-size: 28px; line-height: 36px; }
}

@media (max-width: 479px) {
  .navbar-inner { flex-wrap: wrap; justify-content: center; padding-block: 12px; row-gap: 8px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }

  .hero-heading { font-size: 44px; line-height: 46px; }
  .card-one { padding: 32px 20px; }
  .pricing-card { padding: 32px 24px; }
  .button-primary { padding-inline: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button-primary { transition: none; }
}
