        :root {
      --color-navy: #074a7d;
      --color-orange: #ff8900;
      --color-sky: #def7ff;
      --color-bg: #fcfaf6;
      --color-white: #ffffff;
      --color-mustard: #e8ad34;
      --text-main: #1f2933;
      --text-muted: #6b7280;
      --max-width: 1120px;
      --radius-lg: 18px;
      --radius-xl: 26px;
      --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
      background: var(--color-bg);
      color: var(--text-main);
      line-height: 1.6;
    }

    img {
      max-width: 100%;
      display: block;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    /* Layout base */
    .page {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .container {
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 2rem;
    }

    /* Header */
    header {
      position: sticky;
      top: 0;
      z-index: 30;
      background: rgba(252, 250, 246, 0.96);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.9rem 0;
      gap: 1rem;
    }

    .logo-wrap {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0px 28px;
    }

    .logo-text {
      display: flex;
      flex-direction: column;
    }

    .logo-text span:first-child {
      font-weight: 600;
      font-size: 1.05rem;
    }

    .logo-text span:last-child {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    nav {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    nav a {
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--text-muted);
    }

    nav a:hover {
      color: var(--color-navy);
    }

    .nav-cta {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .btn {
      border-radius: 999px;
      padding: 0.6rem 1.4rem;
      font-size: 0.9rem;
      font-weight: 500;
      border: none;
      cursor: pointer;
      transition: all 0.18s ease-out;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.3rem;
      text-align: center;
      white-space: nowrap;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--color-orange), #ffb340);
      color: var(--color-white);
      box-shadow: 0 12px 25px rgba(249, 115, 22, 0.35);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 30px rgba(249, 115, 22, 0.45);
    }

    .btn-outline {
      background: transparent;
      border: 1px solid rgba(148, 163, 184, 0.6);
      color: var(--color-navy);
    }

    .btn-outline:hover {
      background: rgba(239, 246, 255, 0.9);
      border-color: var(--color-navy);
    }

    /* Hero */
    .hero {
      padding: 3.5rem 0 2.5rem;
    }

    .hero-inner {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
      gap: 2.5rem;
      align-items: center;
    }

    .hero-kicker {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--color-orange);
      font-weight: 600;
      margin-bottom: 0.5rem;
    }

    .hero-title {
      font-size: 2.25rem;
      line-height: 1.1;
      font-weight: 700;
      color: var(--color-navy);
      margin-bottom: 0.75rem;
    }

    .hero-highlight {
      color: var(--color-orange);
    }

    .hero-text {
      font-size: 0.98rem;
      color: var(--text-muted);
      margin-bottom: 1.4rem;
      max-width: 30rem;
    }

    .hero-cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
      margin-bottom: 1.1rem;
    }

    .hero-subnote {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .hero-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-top: 0.8rem;
    }

    .badge {
      font-size: 0.75rem;
      padding: 0.25rem 0.65rem;
      border-radius: 999px;
      background: rgba(222, 247, 255, 0.85);
      color: var(--color-navy);
    }

    .hero-visual {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .banner-imagenes img {
        position: relative;
        top: 20px;
        left: 30px;
        transition: opacity 1s ease-in-out; /* ← transición suave */
        opacity: 1;
    }

    @media (max-width: 480px) {.banner-imagenes img {top: 3px;}}

    .hero-card {
      width: 280px;
      max-width: 100%;
      background: var(--color-white);
      border-radius: 28px;
      box-shadow: var(--shadow-soft);
      padding: 1.25rem 1.2rem;
      position: relative;
      overflow: hidden;
    }

    .hero-app-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1rem;
    }

    .hero-app-brand {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .hero-app-logo {
      width: 32px;
      height: 32px;
      border-radius: 11px;
      background: radial-gradient(circle at 20% 20%, #ffe1bf, #ff8900);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: 700;
      font-size: 0.9rem;
    }

    .hero-app-name {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--color-navy);
    }

    .hero-app-chip {
      font-size: 0.7rem;
      padding: 0.2rem 0.6rem;
      border-radius: 999px;
      background: rgba(222, 247, 255, 0.95);
      color: var(--color-navy);
      font-weight: 500;
    }

    .hero-app-body {
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-bottom: 0.4rem;
    }

    .hero-app-tag {
      font-size: 0.75rem;
      font-weight: 500;
      padding: 0.25rem 0.6rem;
      border-radius: 999px;
      background: rgba(7, 74, 125, 0.08);
      color: var(--color-navy);
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }

    .hero-floating-card {
      position: absolute;
      right: -12px;
      bottom: -35px;
      background: var(--color-navy);
      color: #fff;
      border-radius: 18px;
      padding: 0.6rem 0.75rem;
      font-size: 0.75rem;
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
    }

    .hero-floating-card span {
      display: block;
      font-size: 0.7rem;
      opacity: 0.8;
    }

    .hero-floating-card strong {
      font-size: 0.85rem;
    }

    /* Secciones generales */
    section {
      padding: 2.75rem 0;
    }

    .section-heading {
      text-align: center;
      margin-bottom: 2rem;
    }

    .section-heading h2 {
      font-size: 1.5rem;
      color: var(--color-navy);
      margin-bottom: 0.4rem;
    }

    .section-heading p {
      font-size: 0.95rem;
      color: var(--text-muted);
    }

    /* ¿Qué es Kupix? */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1rem;
    }

    .feature-card {
      background: #ffffff;
      border-radius: var(--radius-lg);
      padding: 1rem;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
      text-align: left;
    }

    .feature-icon {
      width: 65px;
      height: 65px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 0.7rem;
      font-size: 1.1rem;
      background: var(--color-sky);
      color: var(--color-navy);
    }

    .feature-card h3 {
      font-size: 0.95rem;
      margin-bottom: 0.25rem;
      color: var(--color-navy);
    }

    .feature-card p {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    /* Cards Soy Empresa/Comercio/Usuario */
    .audience-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.25rem;
    }

    .audience-card {
      border-radius: var(--radius-xl);
      padding: 1.4rem 1.3rem;
      background: #ffffff;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }

    .audience-icon {
      width: 70px;
      height: 70px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      margin-bottom: 0.4rem;
    }

    .audience-card h3 {
      font-size: 1rem;
      color: var(--color-navy);
    }

    .audience-card p {
      font-size: 0.88rem;
      color: var(--text-muted);
      flex: 1;
    }

    .audience-card a {
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--color-navy);
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      margin-top: 0.1rem;
    }

    .audience-card a span {
      font-size: 1.05rem;
    }

    .audience-empresa .audience-icon {
      background: rgba(7, 74, 125, 0.12);
      color: var(--color-navy);
    }

    .audience-comercio .audience-icon {
      background: rgba(255, 137, 0, 0.12);
      color: var(--color-orange);
    }

    .audience-usuario .audience-icon {
      background: rgba(56, 178, 172, 0.12);
      color: #0f766e;
    }

    /* Propuesta valor B2B */
    .section-alt {
      background: var(--color-sky);
    }

    .grid-2 {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
      gap: 2rem;
      align-items: center;
    }

    .bullets-list {
      list-style: none;
      display: grid;
      gap: 0.5rem;
      margin: 1rem 0 1.4rem;
      font-size: 0.9rem;
    }

    .bullets-list li {
      display: flex;
      align-items: flex-start;
      gap: 0.4rem;
      color: var(--text-main);
    }

    .bullets-list li::before {
      content: "✓";
      color: var(--color-orange);
      margin-top: 0.1rem;
      font-size: 0.85rem;
    }

    .mockup-block {
      background: none;
      /*border-radius: var(--radius-xl);
      box-shadow: var(--shadow-soft);*/
      padding: 0rem;
      min-height: 320px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 0.85rem;
      color: var(--text-muted);
      text-align: center;
    }

    /* Beneficios empresas */
    .benefits-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1rem;
    }

    .benefit-card {
      background: #ffffff;
      border-radius: var(--radius-lg);
      padding: 1rem;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
      font-size: 0.88rem;
    }

    .benefit-card h3 {
      font-size: 0.95rem;
      margin-bottom: 0.25rem;
      color: var(--color-navy);
    }

    /* Comercios aliados */
    .merchant-section .grid-2 {
      align-items: center;
    }

    .tagline {
      font-size: 0.85rem;
      color: var(--color-orange);
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 0.45rem;
    }

    .simple-chart {
      height: 300px;
      width: 450px;
      border-radius: 18px;
      background: none;
      position: relative;
      overflow: hidden;
      padding: 0rem;
      font-size: 0.8rem;
      color: var(--color-navy);
    }

    @media (max-width: 600px) {
      .simple-chart {
          width: 90vw; 
          height: auto;
      }
  
      .simple-chart .merchant-img {
          width: 100%; 
      }
    }

    /* Vista app mockups */
    .app-mockups {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.3rem;
    }

    .app-mockup-card {
      background: none;
      border-radius: 22px;
      padding: 1rem;
      text-align: center;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .app-mockup-screen {
      height: auto;
      border-radius: 18px;
      margin-bottom: 0.65rem;
    }

    .app-mockup-card h3 {
      font-size: 0.9rem;
      margin-bottom: 0.25rem;
      color: var(--color-navy);
    }

    .tarjeta-mockup {
      background: #fff;
      padding: 1rem;
      border-radius: 25px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      height: 125px;
    }

    /* Asistencias */
    .assist-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1rem;
    }

    .assist-card {
      background: #ffffff;
      border-radius: 18px;
      padding: 0.9rem;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
      display: flex;
      align-items: flex-start;
      gap: 0.6rem;
      font-size: 0.85rem; 
    }

    .assist-icon {
      width: 50px;
      height: 50px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.95rem;
      background: rgba(7, 74, 125, 0.08);
      color: var(--color-navy);
      flex-shrink: 0;
    }

    .assist-card h3 {
      font-size: 0.9rem;
      margin-bottom: 0.15rem;
      color: var(--color-navy);
    }

    /* Trust / logos / testimonios */
    .logo-strip {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.5rem;
      margin-bottom: 1.8rem;
    }

    .logo-pill {
      padding: 0.45rem 0.9rem;
      border-radius: 999px;
      background: #ffffff;
      box-shadow: 0 6px 15px rgba(15, 23, 42, 0.04);
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .testimonials {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
    }

    .testimonial-card {
      background: #ffffff;
      border-radius: 18px;
      padding: 1rem;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .testimonial-author {
      margin-top: 0.5rem;
      font-size: 0.8rem;
      color: var(--color-navy);
      font-weight: 500;
    }

    /* Métricas */
    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1rem;
    }

    .metric-card {
      background: #ffffff;
      border-radius: 18px;
      padding: 1rem;
      text-align: center;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
    }

    .metric-card h3 {
      font-size: 1.4rem;
      color: var(--color-navy);
      margin-bottom: 0.2rem;
    }

    .metric-card p {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    /* Blog */
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.1rem;
    }

    .blog-card {
      background: #ffffff;
      border-radius: 18px;
      padding: 0.9rem;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
      font-size: 0.85rem;
    }

    .blog-thumb {
      height: 120px;
      border-radius: 14px;
      background: linear-gradient(
        135deg,
        rgba(7, 74, 125, 0.1),
        rgba(255, 137, 0, 0.2)
      );
      margin-bottom: 0.6rem;
    }

    .blog-card h3 {
      font-size: 0.9rem;
      margin-bottom: 0.25rem;
      color: var(--color-navy);
    }

    .blog-card span {
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    /* CTA Final */
    .cta-final {
      background: var(--color-navy);
      color: #ffffff;
      text-align: center;
      padding: 2.4rem 1rem;
      border-radius: 26px;
      box-shadow: 0 16px 40px rgba(15, 23, 42, 0.4);
      margin-bottom: 2.5rem;
    }

    .cta-final h2 {
      font-size: 1.6rem;
      margin-bottom: 0.6rem;
    }

    .cta-final p {
      font-size: 0.95rem;
      margin-bottom: 1.2rem;
      color: rgba(241, 245, 249, 0.9);
    }

    .cta-final-actions {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .btn-ghost-light {
      background: transparent;
      border-radius: 999px;
      border: 1px solid rgba(248, 250, 252, 0.6);
      color: #e5e7eb;
      padding: 0.6rem 1.4rem;
      font-size: 0.9rem;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      cursor: pointer;
      transition: all 0.18s ease-out;
    }

    .btn-ghost-light:hover {
      background: rgba(15, 23, 42, 0.9);
    }

    /* Footer */
    footer {
      border-top: 1px solid rgba(148, 163, 184, 0.3);
      padding: 1.5rem 0 2.2rem;
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .footer-top {
      display: flex;
      flex-wrap: wrap;
      gap: 1.2rem;
      justify-content: space-between;
      margin-bottom: 1rem;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.9rem;
    }

    .footer-links a {
      color: var(--text-muted);
    }

    .footer-bottom {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      justify-content: space-between;
      align-items: center;
    }

    /* Responsive */
    @media (max-width: 960px) {
      .hero-inner {
        grid-template-columns: minmax(0, 1fr);
      }
      .hero {
        padding-top: 2.4rem;
      }
      .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .audience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .assist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .app-mockups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .testimonials {
        grid-template-columns: minmax(0, 1fr);
      }
      .grid-2 {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    @media (max-width: 720px) {
      nav {
        display: none;
      }
      .features-grid,
      .audience-grid,
      .benefits-grid,
      .assist-grid,
      .metrics-grid,
      .blog-grid,
      .app-mockups {
        grid-template-columns: minmax(0, 1fr);
      }
      .hero-title {
        font-size: 1.8rem;
      }
      .cta-final h2 {
        font-size: 1.4rem;
      }
    }
    /* --- BOTÓN HAMBURGUESA --- */
    .menu-toggle {
      display: none;
      background: none;
      border: none;
      font-size: 2rem;
      cursor: pointer;
      color: var(--text-main);
      z-index: 10001; /* EL BOTÓN SIEMPRE ARRIBA */
      position: relative;
      padding: 10px 28px;
    }
    
    /* --- NAV DESKTOP --- */
    #main-nav {
      display: flex;
      gap: 2rem;
    }
    
    #main-nav a {
      color: var(--text-main);
      text-decoration: none;
      font-weight: 500;
      transition: 0.2s ease;
    }
    
    #main-nav a:hover {
      color: #007bff;
    }
    
    /* --- MOBILE --- */
    @media (max-width: 850px) {
    
      .menu-toggle {
        display: block;
      }
    
      #main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding-top: 90px;
        gap: 2rem;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 9999;
      }
    
      #main-nav.active {
        transform: translateX(0);
      }
    
      #main-nav a {
        font-size: 1.5rem;
        padding: 10px 20px;
        border-radius: 10px;
        transition: background 0.25s ease, color 0.25s;
      }
    
      /* HOVER EN MOVIL (TAP) */
      #main-nav a:active,
      #main-nav a:hover {
        background: #f0f0f0;
        color: #007bff;
      }
    }

    @media (max-width: 768px) {
        footer {
          padding: 40px 15px;
          font-size: 9px;
        }
      
        footer .footer-top,
        footer .footer-bottom {
          flex-direction: column;
          text-align: center;
          gap: 5px;
        }
      
        footer .footer-links {
          justify-content: center;
          gap: 5px;
        }
    }
      :target {
      scroll-margin-top: 100px; /* <- si tu header mide 100px */
    }

    .slider {
      overflow: hidden;
      width: 100%;
      padding: 20px 0;
      margin-bottom: 0;
      height: 350px;
    }
    
    .slider-track {
      display: flex;
      width: max-content;
      animation: scroll-logos 55s linear infinite;
    }
    
    .slide-item {
      margin: 0 30px;
      text-align: center;
      transition: transform 0.3s ease;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      width: 250px;
    }
    
    .slide-item img {
      height: 230px;
      width: 230px;
      object-fit: contain;
      filter: grayscale(0%);
      margin-bottom: 15px;
    }
    
    .slide-item-text {
      font-size: 17px;
      font-weight: 600;
      color: #333;
      line-height: 1.3;
      text-align: center;
      white-space: normal;
      max-width: 230px;
      word-wrap: break-word;
      letter-spacing: 0.3px;
    }
    
    .slide-item:hover {
      transform: scale(1.05);
    }
    
    .slide-item:hover .slide-item-text {
      color: #ff7a00;
    }
    
    @keyframes scroll-logos {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    
    @media (max-width: 1024px) {
      .slider {
        height: auto;
        padding: 15px 0;
      }
    
      .slide-item {
        width: 200px;
        margin: 0 25px;
      }
    
      .slide-item img {
        width: 200px;
        height: 200px;
      }
    
      .slide-item-text {
        font-size: 15px;
        max-width: 200px;
      }
    }
    
    @media (max-width: 768px) {
      .slider {
        height: auto;
        padding: 10px 0;
      }
    
      .slider-track {
        animation: scroll-logos 25s linear infinite;
      }
    
      .slide-item {
        width: 160px;
        margin: 0 20px;
      }
    
      .slide-item img {
        width: 160px;
        height: 160px;
      }
    
      .slide-item-text {
        font-size: 13px;
        line-height: 1.2;
        max-width: 160px;
      }
    }
    
    @media (max-width: 480px) {
      .slider {
        height: auto;
        padding: 10px 0;
      }
    
      .slide-item {
        width: 130px;
        margin: 0 15px;
      }
    
      .slide-item img {
        width: 130px;
        height: 130px;
      }
    
      .slide-item-text {
        font-size: 12px;
        line-height: 1.1;
        max-width: 130px;
      }
    }

    /*MODAL*/
/* --- TU CÓDIGO WEB SE QUEDA IGUAL --- */
.modal {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-family: 'Archivo', sans-serif;
  
  /* ESTO ARREGLA EL SCROLL EN MÓVIL SIN ROMPER WEB */
  overflow-y: auto; 
  display: block; 
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background-color: var(--color-white, #fff);
  margin: 2% auto; /* Tu margen original */
  padding: 2.5rem 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  text-align: center;
  color: var(--text-main);
}

.modal-content h2{
    color: var(--color-navy);
    text-align: center;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  z-index: 100; /* Asegura que la X siempre esté arriba */
}

/* --- AJUSTES EXCLUSIVOS PARA MÓVIL (PÉGALO AL FINAL) --- */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto !important; /* Más aire arriba y abajo en móvil */
    padding: 2.5rem 1.25rem 1.5rem 1.25rem !important;
    width: 94% !important; /* Aprovecha el ancho */
  }

  .modal-close {
    top: 10px !important;
    right: 12px !important;
    font-size: 2rem !important; /* Más fácil de cerrar en pantalla táctil */
  }

  /* Ajuste para que el formulario de HubSpot no se vea apretado */
  .hs-form-frame, #hubspot-demo {
    width: 100% !important;
  }
}