:root {
    --blue: #1a3a7a;
    --blue-deep: #0d2255;
    --blue-light: #2a5cc7;
    --green: #0f7a4a;
    --green-light: #12a865;
    --green-pale: #e8f5ee;
    --cream: #faf9f6;
    --warm-white: #ffffff;
    --text: #1a1a2e;
    --text-light: #4a4a6a;
    --text-muted: #7a7a9a;
    --gold: #c8a855;
    --shadow-sm: 0 2px 8px rgba(26,58,122,0.06);
    --shadow-md: 0 8px 32px rgba(26,58,122,0.10);
    --shadow-lg: 0 16px 48px rgba(26,58,122,0.14);
    --radius: 16px;
    --radius-sm: 10px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; font-weight: 400; }

  /* ============ NAV ============ */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26,58,122,0.06);
    transition: box-shadow 0.3s;
  }
  nav.scrolled { box-shadow: var(--shadow-sm); }
  .nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
  }
  .nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--blue);
  }
  .nav-logo svg { width: 38px; height: 38px; }
  .nav-logo-text { font-family: 'DM Serif Display', serif; font-size: 1.15rem; }
  .nav-logo-text span { color: var(--green); }
  .nav-links { display: flex; gap: 28px; list-style: none; }
  .nav-links a {
    text-decoration: none; color: var(--text-light); font-size: 0.88rem;
    font-weight: 500; letter-spacing: 0.01em; transition: color 0.3s;
    position: relative;
  }
  .nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--green); transform: scaleX(0);
    transition: transform 0.3s; border-radius: 2px;
  }
  .nav-links a:hover { color: var(--blue); }
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-cta {
    background: var(--green); color: white; border: none; padding: 10px 22px;
    border-radius: 50px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: all 0.3s; font-family: inherit;
  }
  .nav-cta:hover { background: var(--green-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(15,122,74,0.3); }

  .mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
  .mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--blue); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

  /* ============ HERO ============ */
  .hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream) 0%, #eef3fa 50%, var(--green-pale) 100%);
  }
  .hero::before {
    content: '';
    position: absolute; top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(26,58,122,0.06) 0%, transparent 70%);
    border-radius: 50%;
  }
  .hero::after {
    content: '';
    position: absolute; bottom: -100px; left: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(15,122,74,0.05) 0%, transparent 70%);
    border-radius: 50%;
  }
  .hero-inner {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    position: relative; z-index: 1;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(15,122,74,0.08); color: var(--green);
    padding: 8px 18px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.04em; margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
  }
  .hero-badge::before { content: '✦'; font-size: 0.7rem; }
  .hero h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.08;
    color: var(--blue-deep);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
  }
  .hero h1 em {
    font-style: italic;
    color: var(--green);
    position: relative;
  }
  .hero h1 em::after {
    content: '';
    position: absolute; bottom: 4px; left: 0; right: 0;
    height: 8px; background: rgba(15,122,74,0.12);
    border-radius: 4px; z-index: -1;
  }
  .hero-sub {
    font-size: 1.1rem; line-height: 1.7; color: var(--text-light);
    margin-bottom: 36px; max-width: 480px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
  }
  .hero-actions {
    display: flex; gap: 14px; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
  }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--green); color: white;
    padding: 16px 32px; border-radius: 54px;
    font-size: 1rem; font-weight: 600; text-decoration: none;
    transition: all 0.35s; border: none; cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 20px rgba(15,122,74,0.25);
  }
  .btn-primary:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(15,122,74,0.35); }
  .btn-primary svg { width: 20px; height: 20px; }
  .btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--blue);
    padding: 16px 28px; border-radius: 54px;
    font-size: 0.95rem; font-weight: 600; text-decoration: none;
    border: 2px solid rgba(26,58,122,0.15); transition: all 0.35s; font-family: inherit;
  }
  .btn-secondary:hover { border-color: var(--blue); background: rgba(26,58,122,0.04); }

  .hero-visual {
    position: relative;
    width: 100%;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
  }
  .hero-carousel {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Maneja el aspect ratio de forma segura en todos los navegadores/celulares */
    min-height: 250px; /* Asegura un mínimo de altura por hardware si algo falla */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(26,58,122,0.15), 0 0 0 1px rgba(26,58,122,0.05);
    background: var(--blue-deep);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
  }
  .hero-carousel:hover {
    transform: scale(1.02);
    box-shadow: 0 32px 80px rgba(26,58,122,0.2), 0 0 0 1px rgba(26,58,122,0.05);
  }
  .hero-carousel-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .window-dot {
    width: 10px; height: 10px; border-radius: 50%;
  }
  .dot-red { background: #ff5f56; }
  .dot-yellow { background: #ffbd2e; }
  .dot-green { background: #27c93f; }
  
  .carousel-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 2s ease-in-out;
    transform: scale(1.05);
  }
  .carousel-img.active {
    opacity: 1;
    transform: scale(1);
  }
  /* ============ TRUST BAR ============ */
  .trust-bar {
    background: var(--blue-deep);
    padding: 28px 24px;
    overflow: hidden;
  }
  .trust-bar-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    gap: 48px; flex-wrap: wrap;
  }
  .trust-item {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 500;
    white-space: nowrap;
  }
  .trust-item svg { width: 20px; height: 20px; color: var(--green-light); flex-shrink: 0; }

  /* ============ SECTIONS COMMON ============ */
  .section { padding: 100px 24px; }
  .section-center { text-align: center; max-width: 640px; margin: 0 auto 60px; }
  .section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--green); margin-bottom: 16px;
  }
  .section-label::before, .section-label::after {
    content: ''; width: 20px; height: 1.5px; background: var(--green); border-radius: 2px;
  }
  .section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--blue-deep); line-height: 1.15; margin-bottom: 16px;
  }
  .section-desc {
    font-size: 1.05rem; color: var(--text-light); line-height: 1.7;
  }

  /* ============ BENEFITS ============ */
  .benefits { background: var(--warm-white); }
  .benefits-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
  }
  .benefit-card {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 36px 30px;
    transition: all 0.4s; position: relative; overflow: hidden;
    border: 1px solid transparent;
  }
  .benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15,122,74,0.1);
    background: white;
  }
  .benefit-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 1.4rem;
  }
  .benefit-icon.bi-blue { background: rgba(26,58,122,0.08); }
  .benefit-icon.bi-green { background: rgba(15,122,74,0.08); }
  .benefit-icon.bi-gold { background: rgba(200,168,85,0.1); }
  .benefit-card h3 {
    font-size: 1.15rem; color: var(--blue-deep); margin-bottom: 10px;
  }
  .benefit-card p {
    font-size: 0.9rem; color: var(--text-light); line-height: 1.65;
  }

  /* ============ SERVICES ============ */
  .services { background: var(--cream); }
  .services-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  }
  .service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid rgba(26,58,122,0.05);
    position: relative;
  }
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
  .service-header {
    padding: 36px 30px 24px;
    position: relative;
  }
  .service-header::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
  }
  .service-card:nth-child(1) .service-header::before { background: var(--blue); }
  .service-card:nth-child(2) .service-header::before { background: var(--green); }
  .service-card:nth-child(3) .service-header::before { background: linear-gradient(90deg, var(--blue), var(--green)); }

  .service-emoji {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 18px;
  }
  .service-card:nth-child(1) .service-emoji { background: rgba(26,58,122,0.07); }
  .service-card:nth-child(2) .service-emoji { background: rgba(15,122,74,0.07); }
  .service-card:nth-child(3) .service-emoji { background: linear-gradient(135deg, rgba(26,58,122,0.07), rgba(15,122,74,0.07)); }

  .service-card h3 { font-size: 1.25rem; color: var(--blue-deep); margin-bottom: 10px; }
  .service-card > p { padding: 0 30px; color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }
  .service-list {
    padding: 20px 30px 30px; list-style: none;
  }
  .service-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; font-size: 0.88rem; color: var(--text-light);
    border-bottom: 1px solid rgba(26,58,122,0.04);
  }
  .service-list li:last-child { border-bottom: none; }
  .service-list li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 1px; }

  /* ============ PLANS ============ */
  .plans { background: var(--blue-deep); color: white; position: relative; overflow: hidden; }
  .plans::before {
    content: '';
    position: absolute; top: -300px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(15,122,74,0.15) 0%, transparent 70%);
    border-radius: 50%;
  }
  .plans .section-label { color: var(--green-light); }
  .plans .section-label::before, .plans .section-label::after { background: var(--green-light); }
  .plans .section-title { color: white; }
  .plans .section-desc { color: rgba(255,255,255,0.7); }

  .plans-grid {
    max-width: 900px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
    position: relative; z-index: 1;
  }
  .plan-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
  }
  .plan-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
  }
  .plan-card.featured {
    background: rgba(15,122,74,0.15);
    border-color: rgba(15,122,74,0.3);
    position: relative;
  }
  .plan-card.featured:hover {
    background: rgba(15,122,74,0.25);
    border-color: rgba(15,122,74,0.45);
    transform: translateY(-4px);
  }
  .plan-card.featured::after {
    content: 'MÁS POPULAR';
    position: absolute; top: -1px; right: 24px;
    background: var(--green-light);
    color: white; font-size: 0.65rem; font-weight: 700;
    padding: 6px 14px; border-radius: 0 0 8px 8px;
    letter-spacing: 0.06em;
  }
  .plan-type {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--green-light); margin-bottom: 12px;
  }
  .plan-card h3 { font-size: 1.6rem; color: white; margin-bottom: 14px; }
  .plan-card > p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.6; margin-bottom: 24px; }
  .plan-features { list-style: none; margin-bottom: 30px; }
  .plan-features li {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.8); font-size: 0.88rem;
    padding: 8px 0;
  }
  .plan-features li svg { width: 18px; height: 18px; color: var(--green-light); flex-shrink: 0; }
  .plan-cta {
    display: block; text-align: center;
    padding: 14px 24px; border-radius: 50px;
    font-size: 0.92rem; font-weight: 600;
    text-decoration: none; transition: all 0.35s; font-family: inherit;
  }
  .plan-cta.cta-outline {
    border: 2px solid rgba(255,255,255,0.25); color: white; background: transparent;
  }
  .plan-cta.cta-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
  .plan-cta.cta-filled {
    background: var(--green-light); color: white; border: 2px solid var(--green-light);
  }
  .plan-cta.cta-filled:hover { background: var(--green); box-shadow: 0 4px 20px rgba(15,122,74,0.4); }



  /* ============ FAQ ============ */
  .faq { background: var(--cream); }
  .faq-list {
    max-width: 800px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 16px;
  }
  .faq-item {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(26,58,122,0.06);
    transition: all 0.3s ease;
  }
  .faq-item:hover { box-shadow: var(--shadow-sm); border-color: rgba(15,122,74,0.1); }
  .faq-question {
    width: 100%; text-align: left; background: none; border: none;
    padding: 24px 30px; display: flex; justify-content: space-between;
    align-items: center; font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem; font-weight: 600; color: var(--blue-deep);
    cursor: pointer; gap: 20px;
  }
  .faq-question span { transition: color 0.3s; }
  .faq-question:hover span { color: var(--green); }
  .faq-question svg {
    width: 20px; height: 20px; flex-shrink: 0; color: var(--green);
    transition: transform 0.4s ease;
  }
  .faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.4s ease;
    padding: 0 30px;
  }
  .faq-answer p {
    font-size: 0.95rem; color: var(--text-light); line-height: 1.6; padding-bottom: 24px;
  }
  .faq-item.active { border-color: var(--green-light); box-shadow: var(--shadow-md); }
  .faq-item.active .faq-question svg { transform: rotate(180deg); }
  .faq-item.active .faq-answer {
    max-height: 300px;
    transition: max-height 0.6s ease-in, padding 0.4s ease;
  }

  /* ============ CTA SECTION ============ */
  .cta-section {
    background: white;
    padding: 80px 24px;
    text-align: center;
    position: relative; overflow: hidden;
  }
  .cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(15,122,74,0.1) 0%, transparent 60%);
  }
  .cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
  .cta-inner h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--blue-deep); margin-bottom: 16px; }
  .cta-inner p { color: var(--text-light); font-size: 1.05rem; line-height: 1.6; margin-bottom: 32px; }
  .cta-inner .btn-primary { font-size: 1.05rem; padding: 18px 40px; }

  /* ============ FLOATING WHATSAPP ============ */
  .whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  }
  .whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.6);
  }
  .whatsapp-float svg {
    width: 34px;
    height: 34px;
  }

  /* ============ FOOTER ============ */
  footer {
    background: #0a1a40;
    color: rgba(255,255,255,0.6);
    padding: 60px 24px 30px;
  }
  .footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  }
  .footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 14px; }
  .footer-col h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: rgba(255,255,255,0.4);
    margin-bottom: 18px;
  }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 10px; }
  .footer-col a {
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-size: 0.88rem; transition: color 0.3s;
  }
  .footer-col a:hover { color: var(--green-light); }
  .footer-contact-item {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
    font-size: 0.88rem;
  }
  .footer-contact-item svg { width: 18px; height: 18px; color: var(--green-light); flex-shrink: 0; }
  .footer-social {
    display: flex; gap: 10px; margin-top: 18px;
  }
  .footer-social a {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); transition: all 0.3s;
  }
  .footer-social a:hover { background: var(--green); color: white; }
  .footer-social a svg { width: 18px; height: 18px; }
  .footer-bottom {
    max-width: 1200px; margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem;
  }

  /* ============ ANIMATIONS ============ */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  .reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 520px; margin: 40px auto 0; }
    .services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 768px) {
    .whatsapp-float {
      bottom: 20px;
      right: 20px;
      width: 50px;
      height: 50px;
    }
    .whatsapp-float svg { width: 30px; height: 30px; }
    
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    nav.open .nav-links {
      display: flex; flex-direction: column;
      position: absolute; top: 100%; left: 0; right: 0;
      background: white; padding: 24px;
      box-shadow: var(--shadow-md); gap: 16px;
    }
    .hero { padding: 100px 20px 60px; min-height: auto; }
    .plans-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .trust-bar-inner { gap: 24px; justify-content: flex-start; }
    .trust-bar { overflow-x: auto; }
    .section { padding: 70px 20px; }
  }
