/* ============================================
   Letrea Landing — Pixel-Perfect Stylesheet
   ============================================ */

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #3b3329;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Utility — Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #3b3329;
  color: #faf8f3;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #f4c542;
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 24px;
  border-radius: 10px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: #3b3329;
  color: #faf8f3;
  border: 2px solid #3b3329;
}
.btn-primary:hover {
  background: #2a231c;
  box-shadow: 0 6px 18px rgba(59, 51, 41, 0.18);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 8px;
  background: #3b3329;
  color: #faf8f3;
}
.btn-sm:hover {
  background: #2a231c;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-green {
  background: #b0d94e;
  color: #2a3a0e;
  border: 2px solid #b0d94e;
}
.btn-green:hover {
  background: #9ec840;
  box-shadow: 0 6px 18px rgba(176, 217, 78, 0.28);
}

.btn-purple {
  background: #7c5dc6;
  color: #faf8f3;
  border: 2px solid #7c5dc6;
}
.btn-purple:hover {
  background: #6b4db0;
  box-shadow: 0 6px 18px rgba(124, 93, 198, 0.28);
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.badge-green {
  background: #ddf5a3;
  color: #415b19;
}
.badge-purple {
  background: #e6dcf9;
  color: #5a3fa5;
}
.badge-orange {
  background: #fde8b4;
  color: #7a4a12;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 51, 41, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #3b3329;
}
.logo-mark {
  flex-shrink: 0;
  height: 36px;
}
.main-nav {
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: #5a524a;
  transition: color 0.2s;
}
.nav-list a:hover {
  color: #3b3329;
}
.nav-cta a {
  color: #faf8f3 !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #3b3329;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.menu-toggle.is-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Heroes
   ============================================ */
.hero {
  position: relative;
  padding: 80px 0 70px;
  overflow: visible;
  background: #f9f8f6;
}
.decorative-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.dec-shape {
  position: absolute;
  filter: drop-shadow(0 12px 24px rgba(59, 51, 41, 0.06));
}
.dec-green {
  top: -60px;
  right: -20px;
  width: 260px;
  height: 260px;
}
.dec-blue {
  top: -10px;
  right: 90px;
  width: 220px;
  height: 220px;
}
.dec-yellow {
  top: 100px;
  right: -10px;
  width: 200px;
  height: 200px;
}
.dec-orange {
  top: 160px;
  right: 120px;
  width: 180px;
  height: 180px;
}
.dec-pink {
  top: 60px;
  right: 10px;
  width: 140px;
  height: 140px;
}
.dec-dots {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content {
  max-width: 480px;
}
.hero-title {
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #3b3329;
}
.hero-title .accent {
  color: #5e9cdb;
}
.hero-lead {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: #6a6258;
  margin-bottom: 28px;
  max-width: 400px;
}
.hero-illustration {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(59, 51, 41, 0.12);
  background: #fde8b4;
}
.hero-illustration img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================================
   Sections Common
   ============================================ */
.section {
  padding: 80px 0;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 52px;
}
.section-title {
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #3b3329;
  margin-bottom: 10px;
}
.section-subtitle {
  font-size: 16px;
  color: #6a6258;
  line-height: 1.6;
}

/* Card Lists */
.cards-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(59, 51, 41, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(59, 51, 41, 0.1);
}
.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 24px 22px 28px;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #3b3329;
}
.card-text {
  font-size: 15px;
  color: #6a6258;
  line-height: 1.55;
}
.hero-bg {
  height: 100%;
  position: absolute;
  right: 0;
}
/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 980px;
  margin-inline: auto;
}
.feature-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 6px 20px rgba(59, 51, 41, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 51, 41, 0.09);
}
.feature-icon {
  margin-bottom: 14px;
}
.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #3b3329;
}
.feature-text {
  font-size: 14.5px;
  color: #6a6258;
  line-height: 1.55;
}

/* ============================================
   Para quién
   ============================================ */
.para-quien {
}

/* ============================================
   Adaptado a cada persona — muted band
   ============================================ */
.section-muted {
  background: #f5f3ed;
}

/* ============================================
   Interfaz para todos — asymmetric
   ============================================ */
.interfaz {
}
.interfaz-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.interfaz-content {
  max-width: 440px;
}
.interfaz-content .section-title {
  text-align: left;
  margin-bottom: 12px;
}
.interfaz-content .section-subtitle {
  text-align: left;
  margin-bottom: 24px;
}
.btn-video {
  background: #7c5dc6;
  color: #faf8f3;
  border-color: #7c5dc6;
  padding: 12px 22px;
}
.btn-video:hover {
  background: #6b4db0;
  box-shadow: 0 6px 18px rgba(124, 93, 198, 0.28);
}
.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}
.interfaz-visual {
  border-radius: 24px;
  overflow: hidden;
  background: #fde8b4;
  box-shadow: 0 28px 60px rgba(59, 51, 41, 0.1);
}
.interfaz-visual img {
  width: 100%;
  height: auto;
}

/* ============================================
   ¿Por qué elegir Letrea?
   ============================================ */
.por-que {
}
.cards-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.benefit-card {
  text-align: left;
}
.benefit-icon {
  margin-bottom: 16px;
}
.benefit-title {
  font-size: 16px;
  font-weight: 700;
  color: #3b3329;
  margin-bottom: 8px;
}
.benefit-text {
  font-size: 14px;
  color: #6a6258;
  line-height: 1.55;
}

/* ============================================
   CTA Wave
   ============================================ */
.cta-wave {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.decorative-accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cta-shape {
  position: absolute;
  width: 260px;
  height: 260px;
}
.cta-green {
  top: -80px;
  right: -60px;
}
.cta-blue {
  top: -40px;
  right: 40px;
  width: 220px;
  height: 220px;
}
.cta-pink {
  top: 80px;
  right: -40px;
  width: 200px;
  height: 200px;
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-box {
  max-width: 520px;
}
.cta-box .section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 10px;
}
.cta-box .section-subtitle {
  margin-bottom: 24px;
}

/* ============================================
   Ejercicios
   ============================================ */
.ejercicios {
}
.ejercicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ej-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 6px 22px rgba(59, 51, 41, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.ej-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(59, 51, 41, 0.09);
}
.ej-icon {
  margin-bottom: 14px;
}
.ej-title {
  font-size: 17px;
  font-weight: 700;
  color: #3b3329;
  margin-bottom: 6px;
}
.ej-text {
  font-size: 14px;
  color: #6a6258;
  line-height: 1.55;
}

/* ============================================
   Cómo funciona
   ============================================ */
.como-funciona {
}
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 26px 24px;
  box-shadow: 0 8px 26px rgba(59, 51, 41, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(59, 51, 41, 0.1);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e6dcf9;
  color: #5a3fa5;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  color: #3b3329;
  margin-bottom: 6px;
}
.step-text {
  font-size: 14px;
  color: #6a6258;
  line-height: 1.55;
  margin-bottom: 18px;
}
.step-image {
  border-radius: 16px;
  overflow: hidden;
  background: #f5f3ed;
}
.step-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================================
   Suscripciones
   ============================================ */
.suscripciones {
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.pricing-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 8px 28px rgba(59, 51, 41, 0.06);
  position: relative;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(59, 51, 41, 0.1);
}
.pricing-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  background: #ddf5a3;
  color: #415b19;
  margin-bottom: 18px;
}
.pricing-name {
  font-size: 17px;
  font-weight: 700;
  color: #3b3329;
  margin-bottom: 10px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}
.price-value {
  font-size: 36px;
  font-weight: 800;
  color: #3b3329;
  letter-spacing: -0.02em;
}
.price-period {
  font-size: 15px;
  font-weight: 500;
  color: #8a8278;
}
.price-disclaimer {
  font-size: 12px;
  color: #a0988e;
  margin-bottom: 16px;
}
.pricing-save {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #7c5dc6;
  background: #e6dcf9;
  padding: 4px 12px;
  border-radius: 6px;
  margin-top: -6px;
  margin-bottom: 14px;
}
.pricing-features {
  text-align: left;
  margin-bottom: 22px;
}
.pricing-features li {
  font-size: 14.5px;
  color: #6a6258;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
  margin-bottom: 8px;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #b0d94e;
  font-weight: 700;
  font-size: 16px;
}

/* ============================================
   CTA Contact band
   ============================================ */
.cta-band {
  background: #f5f3ed;
  padding: 70px 0;
}
.cta-box-light {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #faf8f3;
  border-top: 1px solid rgba(59, 51, 41, 0.06);
  padding: 22px 0;
  font-size: 13px;
  color: #8a8278;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left a {
  color: #8a8278;
  transition: color 0.2s;
}
.footer-left a:hover {
  color: #3b3329;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-right a {
  color: #8a8278;
  transition:
    color 0.2s,
    transform 0.2s;
  display: inline-flex;
}
.footer-right a:hover {
  color: #3b3329;
  transform: translateY(-2px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    max-width: 600px;
    margin-inline: auto;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-illustration {
    max-width: 520px;
    margin-inline: auto;
  }
  .dec-shape,
  .cta-shape {
    opacity: 0.35;
  }
  .interfaz-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .interfaz-content {
    max-width: 560px;
    margin-inline: auto;
  }
  .interfaz-content .section-title,
  .interfaz-content .section-subtitle {
    text-align: center;
  }
  .cards-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }
  .section-header {
    margin-bottom: 36px;
  }

  .menu-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 243, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 51, 41, 0.08);
    padding: 20px 24px 28px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .nav-cta {
    margin-top: 8px;
  }

  .hero {
    padding: 50px 0 50px;
  }
  .hero-title {
    font-size: 32px;
  }
  .cards-list {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .interfaz-inner {
    grid-template-columns: 1fr;
  }
  .cards-benefits {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
    text-align: center;
  }
  .ejercicios-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps-list {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  .cta-wave {
    min-height: auto;
    padding: 70px 0;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-left {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }
  .hero-title {
    font-size: 28px;
  }
  .section-title {
    font-size: 24px;
  }
  .ejercicios-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #f4c542;
  outline-offset: 3px;
  border-radius: 6px;
}
