    :root {
      --p: #003c71;
      --s: #ffcc00;
      --d: #00254a;
      --l: #f5f5f5;
      --t: #333;
      --r: 8px;
      --tr: 0.3s;
    }
  
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
  
    body {
      font-family: 'Poppins', sans-serif;
      background: var(--l);
      color: var(--t);
      line-height: 1.6;
      scroll-behavior: smooth;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; height: auto; }
  
    /* Contenedores centrados */
    .topbar, .navbar, footer {
      max-width: var(--max-w);
      margin: 0 auto;
      width: 100%;
    }
  
    /* Topbar */
    .topbar {
      background: var(--d);
      color: #fff;
      font-size: 14px;
      padding: 5px 2%; /* ajusta al contenido */
      display: flex;
      justify-content: space-between;
    }
    .topbar a { margin-left: 15px; color: #fff; }
  
    /* Header */
    header {
      background: var(--p);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 2%; /* espacio más ajustado */
    }
    .logo img {
      height: 100px;
      width: auto; /* conserva proporción */
      filter: brightness(0) invert(1);
      transition: filter var(--tr);
    }
    nav {
      display: flex;
      align-items: center;
    }
    nav a, .btn-secondary {
      margin-left: 20px;
      font-weight: 600;
      color: #fff;
      position: relative;
      transition: color var(--tr);
      background: none;
      border: none;
      cursor: pointer;
    }
    nav a::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      height: 2px;
      width: 0;
      background: var(--s);
      transition: width var(--tr);
    }
    nav a:hover, .btn-secondary:hover { color: var(--s); }
    nav a:hover::after { width: 100%; }
  
    .btn-secondary {
      background: var(--s);
      color: var(--d);
      padding: 8px 16px;
      border-radius: var(--r);
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .btn-secondary:hover { background: #e6b800; }
  
    /* Hero */
    .hero {
      position: relative;
      height: 80vh;
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      transition: background-image 1s;
    }
    .hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.45);
    }
    .hero .content {
      position: relative;
      z-index: 1;
      padding: 0 20px;
      max-width: 700px;
    }
    .hero h1 {
      font-size: 2.5rem;
      margin-bottom: 16px;
      font-weight: 700;
      color: #fff;
    }
    .hero p {
      font-size: 1.1rem;
      margin-bottom: 24px;
      color: #fff;
    }
    .btn-primary {
      padding: 12px 30px;
      border: none;
      border-radius: var(--r);
      font-weight: 600;
      transition: background var(--tr), transform var(--tr);
      cursor: pointer;
      background: var(--s);
      color: var(--d);
      box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    }
    .btn-primary:hover {
      background: #e6b800;
      transform: translateY(-2px);
    }
  
    /* Secciones */
    section {
      padding: 60px 10%;
    }
    .title {
      font-size: 1.8rem;
      margin-bottom: 24px;
      font-weight: 600;
      color: var(--p);
      text-align: center;
      position: relative;
    }
    .title::after {
      content: '';
      display: block;
      margin: 8px auto 0;
      width: 50px;
      height: 3px;
      background: var(--s);
    }
    .grid {
      display: grid;
      gap: 20px;
      grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    }
    .card {
      background: #fff;
      padding: 20px;
      border-radius: var(--r);
      text-align: center;
      box-shadow: 0 6px 15px rgba(0,0,0,0.1);
      transition: transform var(--tr);
    }
    .card:hover { transform: translateY(-5px); }
    .card i {
      font-size: 2rem;
      color: var(--p);
      margin-bottom: 10px;
    }
  
    /* FAQ */
    .faq-item {
      margin-bottom: 12px;
      background: #fff;
      border-radius: var(--r);
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    .faq-item button {
      width: 100%;
      padding: 14px;
      text-align: left;
      background: none;
      border: none;
      font-weight: 600;
      display: flex;
      justify-content: space-between;
      cursor: pointer;
    }
    .faq-item .answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height var(--tr);
      padding: 0 14px;
    }
    .faq-item.open .answer {
      max-height: 120px;
      padding: 12px 14px;
    }
  
    /* Tarifas: centrar botón */
    #tarifas .btn-primary {
      display: block;
      margin: 20px auto 0;
    }
  
    /* Footer */
    footer {
      background: var(--d);
      color: #fff;
      padding: 30px 2%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;

    }
    .footer-col {
      flex: 1 1 200px;
      margin-bottom: 20px;
    }
    .footer-col img {
      height: 100px;
      width: auto;
      filter: brightness(0) invert(1);
      margin-bottom: 8px;
    }
    footer a {
      color: var(--s);
      display: block;
      margin: 4px 0;
    }
  
    /* Scroll top */
    #scrollTopBtn {
      position: fixed;
      bottom: 30px;
      right: 30px;
      background: var(--p);
      color: #fff;
      border: none;
      padding: 12px;
      border-radius: 50%;
      font-size: 1.2rem;
      cursor: pointer;
      display: none;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      transition: background var(--tr);
    }
    #scrollTopBtn:hover { background: var(--d); }
  
    /* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    max-height: 100%;
    z-index: 9999;
  }
  
  .modal-content {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    width: 90%;
    max-height: 95%;
    max-width: 550px;
    
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: slideDown 0.4s ease;
  }
  
  @keyframes slideDown {
    0% { transform: translateY(-50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
  }
  
  .modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
  }
  
  .modal-content h3 {
    margin-bottom: 25px;
    font-size: 24px;
    color: #003366;
    text-align: center;
  }
  
  .modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .modal-content form label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    text-align: left;
  }
  
  .modal-content form input,
  .modal-content form textarea,
  .modal-content form select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    background: #f9f9f9;
    transition: border 0.3s;
  }
  
  .modal-content form input:focus,
  .modal-content form textarea:focus,
  .modal-content form select:focus {
    outline: none;
    border-color: #0073e6;
    background: #fff;
  }
  
  .modal-content form button {
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--s);
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    color: #fff;
  }
  
  .modal-content form button:hover {
    background: #005bb5;
  }
  
  .vehicle-amounts {
    display: none;
    margin-top: 10px;
  }
  
  .vehicle-amounts input {
    margin-bottom: 10px;
  }
  
    @media (max-width: 600px) {
        /* Evitar que el navbar haga wrap y obligar todo en línea */
        .navbar {
          flex-wrap: nowrap;
          padding: 10px 2%;
        }
      
        /* Logo más pequeño, sin posibilidad de crecer y que nunca haga wrap */
        .logo {
          flex-shrink: 0;
          margin-right: 10px;
        }
        .logo img {
          height: 50px; /* ajústalo a tu gusto */
          width: auto;
        }
      
        /* Nav ocupa el resto del espacio, alinea a la derecha */
        nav {
          display: flex;
          flex: 1;
          justify-content: flex-end;
          gap: 8px; /* espacio uniforme entre enlaces */
          min-width: 0; /* para que link text pueda encoger dentro */
        }
        nav a {
          margin-left: 0;
          font-size: 0.9rem;
        }
        footer {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;  /* centra las filas */
            align-items: flex-start;
            text-align: center;
          }
          /* Primera columna (logo) ocupa el 100% */
          .footer-col:first-child {
            flex: 0 0 100%;
            max-width: 300px;         /* opcional, para no dejarlo enorme */
            margin: 15px 0;
          }
          /* Segunda y tercera columna comparten la siguiente fila al 50% */
          .footer-col:nth-child(2),
          .footer-col:nth-child(3) {
            flex: 0 0 50%;
            max-width: 50%;
            margin: 15px 0;
          }
          /* Asegura que el logo interno siga centrado */
          .footer-col img {
            margin: 0 auto 8px;
          }
        /* Ocultar el botón de “Demo” en móvil */
        .btn-secondary {
          display: none !important;
        }
      }
  