:root {
  --primary: #23A623;
  --primary-dark: #1D8A1D;
  --bg-light: #f5f7fb;
  --bg-section: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.header {
  background: white;
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  color: var(--primary);
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* HERO */
.hero {
  background: var(--bg);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #f0f0f0;
}

.btn-submit {
  display: inline-block;
  padding: 14px 30px;
  background: red;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
}

.btn-submit:hover {
  background-color: #8B0000;
  color: #f0f0f0;
}

/* RATES */
.rates {
  padding: 70px 0;
}

.rates h2 {
  text-align: center;
  margin-bottom: 40px;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.rate-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.rate-card span {
  display: block;
  margin-bottom: 8px;
}

.rate-card strong {
  font-size: 24px;
  color: var(--primary);
}

/* ABOUT & CONTACT */
.about, .contact {
  background: var(--bg);
  padding: 70px 0;
}

.about h2, .contact h2 {
  text-align: center;
  margin-bottom: 20px;
}

.about p, .contact p {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* FOOTER */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}


  :root {
    --primary: #23A623;
    --primary-dark: #1D8A1D;
    --bg-light: #f5f7fb;
    --bg-section: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
    --border-radius: 12px;
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    background: var(--bg-light);
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Encabezado */
  .header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
  }

  /* ===== MENÚ HAMBURGUESA ===== */
  .hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary);
    background: transparent;
    border: none;
    padding: 5px;
  }

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

  .nav a {
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
  }
  .nav a:hover {
    color: var(--primary);
  }
  
  /* Estilos para cuando el usuario está logueado */
  .user-welcome {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-section);
    padding: 5px 15px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
  }
  .user-name {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
  }
  .user-name i {
    margin-right: 5px;
    color: var(--primary);
  }
  .btn-dashboard {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--primary);
  }
  .btn-dashboard:hover {
    background: var(--primary-dark);
    color: white;
  }
  .btn-logout {
    background: transparent;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
  }
  .btn-logout:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #ef4444;
  }

  /* Estilos originales para botones de login/registro */
  .nav .btn-login {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
  }
  .nav .btn-login:hover {
    background: var(--primary);
    color: white;
  }
  .nav .btn-register {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid var(--primary);
  }
  .nav .btn-register:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
  }

  /* ===== RESPONSIVE MENÚ HAMBURGUESA ===== */
  @media (max-width: 992px) {
    .hamburger {
      display: block;
    }

    .nav {
      display: none;
      position: absolute;
      top: 70px;
      left: 0;
      right: 0;
      background: var(--white);
      flex-direction: column;
      padding: 20px;
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
      border-radius: 0 0 20px 20px;
      gap: 15px;
      z-index: 999;
    }

    .nav.active {
      display: flex;
    }

    .nav a, .nav .btn-login, .nav .btn-register, .user-welcome {
      width: 100%;
      text-align: center;
      margin: 5px 0;
    }

    .user-welcome {
      flex-direction: column;
      gap: 10px;
    }

    .btn-dashboard, .btn-logout {
      width: 100%;
    }
  }

  /* Hero */
  .hero {
    background: linear-gradient(135deg, #e6f3e6 0%, #ffffff 100%);
    padding: 60px 0;
    text-align: center;
  }
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
  }
  .hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
  }

  /* Tarjetas de tasas - destacamos MXN→VES */
  .rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
  }
  .rate-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .rate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  }
  .rate-card span {
    display: block;
    margin: 10px 0 5px;
    color: var(--text-muted);
  }
  .rate-card strong {
    font-size: 1.5rem;
    color: var(--primary);
  }
  .rate-card.highlight {
    border: 2px solid var(--primary);
    background: #f0f9f0;
  }

  /* Nuevas secciones */
  .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-main);
  }
  .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
  }

  /* Sellos de confianza */
  .trust-badges {
    background: var(--white);
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
  }

  .badges-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .badge-item {
    flex: 0 1 calc(50% - 15px);
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 5px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
  }

  .badge-item i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
  }

  @media (max-width: 380px) {
    .badge-item {
      flex: 0 1 100%;
    }
  }

  @media (min-width: 768px) {
    .badges-grid {
      flex-wrap: nowrap;
      gap: 40px;
    }
    .badge-item {
      flex: 0 1 auto;
      font-size: 16px;
      padding: 0;
    }
  }

  /* Beneficios */
  .benefits {
    padding: 60px 0;
    background: var(--white);
  }
  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
  }
  .benefit-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    background: var(--bg-section);
    transition: all 0.2s;
  }
  .benefit-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
  }
  .benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
  }
  .benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
  }

  /* Cómo funciona */
  .how-it-works {
    padding: 60px 0;
    background: var(--bg-section);
  }
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
  }
  .step {
    text-align: center;
    position: relative;
  }
  .step:not(:last-child):after {
    content: "→";
    position: absolute;
    top: 30px;
    right: -20px;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
  }
  .step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 20px;
  }
  .step h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
  }
  .step p {
    color: var(--text-muted);
  }
  @media (max-width: 768px) {
    .steps-grid {
      grid-template-columns: 1fr;
    }
    .step:not(:last-child):after {
      content: "↓";
      top: auto;
      bottom: -20px;
      left: 50%;
      right: auto;
      transform: translateX(-50%);
    }
  }

  /* Testimonios */
  .testimonials {
    padding: 60px 0;
    background: var(--white);
  }
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
  .testimonial-card {
    background: var(--bg-section);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
  }
  .testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
  }
  .testimonial-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
  }
  .testimonial-header h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-main);
  }
  .stars {
    color: #ffb800;
    font-size: 0.9rem;
  }
  .testimonial-text {
    font-style: italic;
    color: var(--text-muted);
  }

  /* FAQ */
  .faq {
    padding: 60px 0;
    background: var(--bg-section);
  }
  .faq-grid {
    max-width: 800px;
    margin: 0 auto;
  }
  .faq-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px 25px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
  }
  .faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
  }
  .faq-question i {
    transition: transform 0.2s;
    color: var(--primary);
  }
  .faq-answer {
    margin-top: 15px;
    color: var(--text-muted);
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    display: none;
  }
  .faq-item.active .faq-answer {
    display: block;
  }
  .faq-item.active .faq-question i {
    transform: rotate(180deg);
  }

  /* WhatsApp CTA */
  .whatsapp-cta {
    padding: 40px 0;
    background: var(--primary);
    color: white;
    text-align: center;
  }
  .whatsapp-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .whatsapp-cta p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
  }
  .btn-whatsapp {
    background: white;
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
  }
  .btn-whatsapp:hover {
    transform: scale(1.05);
  }

  /* Footer */
  .footer {
    background: #1a1f2e;
    color: #aaa;
    padding: 40px 0 20px;
  }
  .footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer a:hover {
    color: white;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
  }
  .footer-logo img {
    width: 120px;
    margin-bottom: 15px;
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .footer-links a {
    font-size: 0.95rem;
  }
  .footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
  }
  .footer-social a {
    font-size: 1.3rem;
  }
  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
  }

  /* Botón flotante WhatsApp */
  .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }
  .whatsapp-float img {
    width: 60px;
    height: 60px;
  }

  .btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
    text-decoration: none;
  }
  .btn-primary:hover {
    background: var(--primary-dark);
  }
