:root {
  --brand: #0d9488;
  --brand-dark: #0b7d73;
  --navy: #0f172a;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --white: #ffffff;
  --page-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--page-bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

/* --- Botones --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--gray-light);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

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

.btn-block {
  width: 100%;
}

/* --- Header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.header-logo img {
  height: 34px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.header-nav a:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header-burger span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* --- Hero --- */

.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--page-bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  font-size: 44px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 20px 0 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-badge {
  height: 340px;
  width: auto;
  filter: drop-shadow(0 18px 32px rgba(13, 148, 136, 0.28));
}

/* --- Secciones genéricas --- */

.section-title {
  font-size: 30px;
  text-align: center;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin: 12px auto 0;
  max-width: 520px;
}

/* --- Características --- */

.features {
  padding: 90px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Cómo funciona --- */

.how-it-works {
  padding: 90px 0;
  background: var(--surface);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Precios --- */

.pricing {
  padding: 90px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
  /* Más ancho que antes: las listas de features pasaron de 4 a 17 ítems y
     los textos largos se partían en demasiadas líneas. */
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.pricing-card-featured {
  background: var(--page-bg);
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--brand);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.pricing-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.pricing-amount {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 20px;
}

.pricing-amount span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  font-size: 14px;
}

.pricing-features li {
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* --- FAQ --- */

.faq {
  padding: 90px 0;
  background: var(--surface);
}

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--brand);
  transition: transform 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 240px;
}

.faq-answer p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- CTA final --- */

.final-cta {
  padding: 70px 0;
  background: var(--navy);
}

.final-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.final-cta h2 {
  color: var(--white);
  font-size: 28px;
  max-width: 520px;
}

/* --- Footer --- */

.site-footer {
  background: var(--navy);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  height: 30px;
  width: auto;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  text-decoration: none;
  font-size: 13px;
  color: var(--gray-light);
}

.footer-nav a:hover {
  color: var(--brand);
}

.footer-copyright {
  font-size: 12px;
  color: var(--gray);
  margin: 0;
}

/* --- Responsive --- */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    order: 1;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: 0;
  }

  .hero-badge {
    height: 220px;
    width: auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 640px) {
  .header-nav,
  .header-actions {
    display: none;
  }

  .header-burger {
    display: flex;
    order: 1;
  }

  .header-nav {
    order: 2;
  }

  .header-actions {
    order: 3;
  }

  .site-header.nav-open .header-inner {
    flex-wrap: wrap;
  }

  .site-header.nav-open .header-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
  }

  .site-header.nav-open .header-actions {
    border-top: 1px solid var(--border);
  }

  .hero-copy h1 {
    font-size: 32px;
  }

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