/* ==================================== */
/* ESTILOS GLOBALES */
/* Define estilos base como el reset de margen/padding y la fuente principal. */
/* ==================================== */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
}
/* Mantener el footer siempre al fondo de la página */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.vehiculos-container {
  flex: 1; /* 👈 Esto hace que el contenedor principal ocupe todo el espacio disponible */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.main-footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto; /* 👈 Esto mantiene el footer pegado abajo */
}


a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: bold;
}

a:hover {
    color: #42ad5681;
}

/* ==================================== */
/* MENÚ PRINCIPAL */
/* Estiliza la barra de navegación, el logo, los enlaces y el botón de registro, aplicando Flexbox para la alineación. */
/* ==================================== */
.menu_principal {
    position: fixed;          /* Menú fijo */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: rgb(38, 99, 152);
    padding: 15px 40px;       /* Espaciado general */
    min-height: 80px;         /* Garantiza que no se encoja */
    box-sizing: border-box;
}


body {
    margin-top: 88px; /* 👈 baja el formulario */
}


.menu-toggle {
    display: none; 
    font-size: 32px; 
    color: white ;
    cursor: pointer;
    background: none; 
    border: none ;
    z-index: 1001;
}
#contenedor_menu {
    display: flex ;
    gap: 50px ;
    font-size: 25px ;
}


.logo {
    font-size: 40px ;
}


/* Contenedor de los links del menú */
#contenedor_menu {
    display: flex ;
    align-items: center ; /* Alinea verticalmente los links y el botón */
    gap: 40px ; /* Espacio entre cada link */
}

/* Botón de registro / cerrar sesión */
#user-session-container button,
#user-session-container .user-name {
    vertical-align: middle ; /* Asegura alineación */
}

/* Icono de usuario */
#user-session-container .icon {
    margin-right: 8px;
    vertical-align: middle ;
}

/* ==================================== */
/* 🌟 BOTÓN DE REGISTRO MODERNO */
/* ==================================== */
.bt_registro {
  background: linear-gradient(135deg, #1f9735, #34c759); /* degradado verde */
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  width: 200px;
  height: 45px;
  letter-spacing: 0.5px;
}

.bt_registro:hover {
  background: linear-gradient(135deg, #1c8b30, #2fb44f);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.bt_registro:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}




/* ==================================== */
/* SECCIÓN FORMULARIO */
/* Define la sección principal con una imagen de fondo y el contenedor del formulario semi-transparente, centrándolos en la vista. */
/* ==================================== */
.formulario {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contenedor_formulario {
   
    background-size: cover;
    background-position: center;
    width: 100%; /* ocupar todo el ancho disponible */
    max-width: 1200px; /* opcional, para no estirarse demasiado en pantallas muy grandes */
    height: auto; /* altura automática según contenido */
    min-height: 500px; /* opcional, para mantener buena proporción en pantallas grandes */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px; /* agrega espacio interno para que el formulario no toque bordes */
    box-sizing: border-box;
}


.form-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    width: 320px;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-container select,
.form-container input[type="text"],
.form-container input[type="time"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#fecha{
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; 
    padding: 8px 10px;
}
.form-container button {
    width: 100%;
    padding: 10px;
      background: linear-gradient(135deg, #1c8b30, #2fb44f);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #ffffff;
}

.form-container button:hover {
    background-color: #2ecc00;
}

/* Para tablets y pantallas medianas */
@media (min-width: 600px) and (max-width: 1024px) {
    .contenedor_formulario {
        width: 90%;
        height: auto;
        padding: 30px 0;
    }

    .form-container {
        width: 80%;
        padding: 25px;
    }

    .form-container h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .form-container input,
    .form-container select,
    .form-container button {
        font-size: 15px;
        padding: 10px;
    }

    .formulario {
        margin-top: 40px;
    }

body {
    margin-top: 140px; /* 👈 baja el formulario */
}


}
/* ========================= SECCIÓN ULTRA MODERNA ========================= */

.categoria-vehiculos-ultra {
  padding: 50px 20px;
  margin-top: 70px; /* 🔹 SEPARACIÓN DEL FORMULARIO */
  margin-bottom: 40px;
  background: linear-gradient(180deg, #00284d, #003d66);
  border-radius: 25px;
  width: 90%;                  /* 🔹 NO OCUPA TODA LA PANTALLA */
  max-width: 1300px;           /* 🔹 LIMITE PARA PANTALLAS GRANDES */
  margin-left: auto;           /* 🔹 CENTRADO */
  margin-right: auto;          /* 🔹 CENTRADO */
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  color: white;
}

.titulo-categorias-ultra {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 40px;
  letter-spacing: 1px;
  text-shadow: 0px 0px 10px rgba(0,150,255,0.6);
}

.cards-ultra {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;                /* 🔹 MENOS ESPACIO ENTRE TARJETAS */
}

.card-ultra {
  width: 280px;             /* 🔹 TARJETAS MÁS COMPACTAS */
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  transition: .35s ease;
  cursor: pointer;
  text-align: center;
}

.img-ultra img {
  width: 100%;
  height: 160px;         /* 🔹 REDUCIR ALTURA */
  object-fit: cover;
  border-radius: 12px;
  transition: .3s ease;
}

.card-ultra:hover {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(0,180,255,0.7);
  border-color: rgba(0,170,255,0.7);
}


/* ==================================== */
/* SECCIÓN DE AYUDA */
/* Estilos para la sección de información con fondo azul marino, y las tarjetas de ayuda con efectos de elevación al pasar el ratón. */
/* ==================================== */
.seccion-ayuda {
    background-color: #003d66; 
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    max-width: 1300px;
    margin: 60px auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-family: "Inter", sans-serif;
}

.seccion-ayuda h2 {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 800;
}

.contenedor-ayuda {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
}

.card-ayuda {
    background-color: #fff;
    color: #333;
    width: 250px;
    border-radius: 10px;
    padding: 25px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-ayuda:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.icono {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.card-ayuda h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0;
}

.card-ayuda p {
    font-size: 15px;
    line-height: 1.5;
}

/* ==================================== */
/* SECCIÓN FAQ (Preguntas Frecuentes) */
/* Estilos del acordeón FAQ con fondo azul oscuro, diseño de preguntas/respuestas y animación de apertura/cierre. */
/* ==================================== */
.faq-section {
    width: 100%;
    background-color: #003d66; 
    color: white;
    padding: 50px 0;
    display: flex;
    justify-content: center;
}

.faq-container {
    width: 100%;
    max-width: 1000px; 
    text-align: center;
}

.faq-container h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.faq-container p {
    margin-top: 6px;
    color: #000000;
    font-size: 1rem;
}
#respuesta {
    color: #ffffff;
}

.faq-item {
    background-color: #fff;
    border-radius: 6px;
    margin: 18px auto;
    width: 90%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #1e3a8a;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background-color: #f1f5f9;
}

.faq-icon {
    font-size: 1.3rem;
    color: #224ba3;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg); 
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1a52ac;
    text-align: left;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.faq-answer.open {
    padding: 15px 20px;
    max-height: 300px;
}

.faq-contact {
    margin-top: 25px;
}

.faq-contact a {
    display: inline-block;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.faq-contact a:hover {
    opacity: 0.9;
}

/* ==================================== */
/* PIE DE PÁGINA (FOOTER) */
/* Estilos para el footer dividido en secciones (top-section con logo y redes, info-section y la barra inferior de copyright). */
/* ==================================== */
.main-footer {
    background-color: #3b3939; 
    color: #fff;
    padding: 20px 0;
    width: 100%;
      margin-top: auto; /* 👈 Esto mantiene el footer pegado abajo */

}

.main-footer .top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.main-footer .logo {
    font-size: 2em;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.main-footer .social-icons a {
    color: #fff;
    font-size: 1.6em;
    margin-left: 15px;
    transition: 0.3s ease;
}

.main-footer .social-icons a:hover {
    color: #007bff; 
}

.main-footer hr {
    border: 0;
    height: 1px;
    background-color: #444;
    margin: 20px 5%;
}

.main-footer .info-section {
    text-align: center;
    padding: 0 5%;
    line-height: 1.7;
}

.main-footer .info-section p {
    margin: 10px 0;
}

.main-footer .info-section a {
    color: #007bff;
    text-decoration: none;
}

.main-footer .info-section a:hover {
    text-decoration: underline;
}

.main-footer .mission {
    max-width: 600px;
    margin: 25px auto;
}

.main-footer .mission strong {
    color: #007bff;
}

.bottom-bar {
    background-color: #132d4b; 
    color: #fff;
    padding: 12px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    flex-wrap: wrap;
}

.bottom-bar .links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    transition: 0.3s;
}

.bottom-bar .links a:hover {
    color: #aad4ff;
    text-decoration: underline;
}

.bottom-bar .copyright {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

/* ==================================== */
/* BOTÓN SCROLL TO TOP */
/* Estilo del botón flotante para subir, oculto por defecto y mostrado con JavaScript. */
/* ==================================== */
#btnSubir {
  position: fixed;
  bottom: 20px; /* distancia desde el borde inferior */
  right: 20px;  /* distancia desde el borde derecho */
  width: 50px;  /* tamaño fijo adecuado para móviles */
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: limegreen;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  z-index: 9999;
}

/* Ajustes solo para pantallas grandes */
@media (min-width: 768px) {
  #btnSubir {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
}


#btnSubir:hover {
    background-color: #34613c;
    transform: scale(1.1);
}

/* ==================================== */
/* RESPONSIVE (MEDIA QUERIES) */
/* Ajusta todos los estilos para pantallas pequeñas (móviles) usando un ancho máximo de 768px. */
/* ==================================== */
@media (max-width: 1368px) {
    /* NAVBAR */
    .menu_principal {
        flex-direction: column;
        gap: 2px;
        height: auto;
        padding: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    #contenedor_menu {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute; 
        top: 100%; 
        left: 0;
        width: 100%;
        background-color:  rgba(38, 99, 152, 0.9);
        padding: 10px 0;
        z-index: 1000;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    #contenedor_menu.show {
        display: flex;
    }

    #contenedor_menu a,
    #contenedor_menu .bt_registro {
        width: 100%;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        font-weight: bold;
        background: transparent;
    }

    #contenedor_menu a:hover,
    #contenedor_menu .bt_registro:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .bt_registro {
        width: 80%;
    }

    /* FORMULARIO */
    .contenedor_formulario {
        width: 95%;
        height: auto;
        padding: 20px;
    }

    .form-container {
        width: 100%;
    }

    /* SLIDER */
    .contenedor-categorias {
        flex-direction: column;
        gap: 40px;

    }
    .slider-container {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 60px auto;
    overflow: hidden;
    font-family: "Inter", sans-serif;
}

    .categoria img {
        width: 90%;
        height: auto;
    }

    .btn.prev, .btn.next {
        display: none; 
    }

    /* SECCIÓN DE AYUDA */
    .contenedor-ayuda {
        flex-direction: column;
        align-items: center;
    }

    .card-ayuda {
        width: 90%;
    }

    /* FAQ */
    .faq-container {
        width: 95%;
    }

    .faq-item {
        width: 100%;
    }

    /* FOOTER */
    .main-footer .top-section {
        flex-direction: column;
        text-align: center;
    }

    .main-footer .social-icons {
        margin-top: 15px;
    }

    .bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    

    /* Ajuste adicional para FAQ en pantallas muy pequeñas */
    @media (max-width: 600px) {
        .faq-item {
            width: 95%;
        }
        .faq-container h2 {
            font-size: 1.4rem;
        }
    }
}

/*Pagina de busqueda de coches*****/
/* --- CONTENEDOR DE BÚSQUEDA SUPERIOR --- */
.search-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  margin-top: 80px;
}

.search-container input[type="text"] {
  width: 80%;
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 30px 0 0 30px;
  outline: none;
  transition: all 0.3s ease;
}

.search-container input[type="text"]:focus {
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(40, 69, 141, 0.3);
}

.search-container button {
  padding: 10px 16px;
  border: 2px solid #ffffff;
  background-color: #077b24;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Imagen dentro del botón */
.search-container button .search-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.search-container button:hover {
  background-color: #1f356f;
  border-color: #1f356f;
}



/* --- INPUT DE BÚSQUEDA CON CLASES (opcional) --- */
.search-input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
  flex-grow: 1;
  font-size: 16px;
  box-sizing: border-box;
}

.search-btn {
  background-color: #007bff;
  border: none;
  padding: 12px 18px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.search-icon {
  width: 20px;
  height: 20px;
  filter: invert(100%);
}


/* --- CONTENEDOR PRINCIPAL --- */
.contenedor-principal {
  width: 95%;
  margin: 20px auto;
}

/* --- FILTRO --- */
.filtro-container {
  background-color: #28458d;
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 25px auto;
  max-width: 1400px;
  width: 95%;
  box-sizing: border-box;
}



.form-filtro {
  display: flex;
  flex-wrap: nowrap; /* ❗ Mantiene todo en una línea */
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow-x: auto; /* Si no cabe, permite scroll horizontal */
  scrollbar-width: thin;
  scrollbar-color: #ccc #28458d;
}
.form-filtro select,
.form-filtro input {
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background-color: #ffffff;
  color: #000;
  font-size: 15px;
  min-width: 140px;
  outline: none;
  flex-shrink: 0; /* evita que se encojan */
}
/* 🔽 Ajustes para pantallas medianas (tablets) */
/* 🔽 En pantallas medianas: divide en 2 líneas si hace falta */
@media (max-width: 992px) {
  .form-filtro {
    flex-wrap: wrap; /* permite saltar línea si el espacio es menor */
  }
}

/* 🔽 En móviles: una sola columna limpia */
@media (max-width: 600px) {
  .filtro-container {
    flex-direction: column;
    align-items: stretch;
  }

  .form-filtro {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .form-filtro select,
  .form-filtro input {
    width: 100%;
  }
}

/* --- TÍTULO DE SECCIÓN --- */
.titulo-vehiculos {
  text-align: left;
  font-size: 22px;
  color: #28458d;
  margin-bottom: 20px;
  font-weight: 600;
}

/* --- CONTENEDOR DE VEHÍCULOS --- */
.vehiculos-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columnas */
  gap: 15px;
  justify-content: center;
}

/* --- CARD DE VEHÍCULO --- */
.vehiculo-card {
  background-color: white;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.vehiculo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.vehiculo-card img {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
}

.vehiculo-card h3 {
  color: #28458d;
  font-size: 16px;
  margin: 8px 0 4px 0;
  font-weight: 600;
}

.vehiculo-card p {
  margin: 3px 0;
  font-size: 13px;
  color: #333;
}

/* --- BOTÓN ALQUILAR --- */
.btn-alquilar {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  background-color: #28458d;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-alquilar:hover {
  background-color: #1f3673;
}

/* 💬 CHAT MODAL MEJORADO */
.chat-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.chat-modal {
  background: #fff;
  width: 420px;
  max-width: 90%;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: aparecer 0.35s ease;
  font-family: 'Inter', sans-serif;
}

/* ============================= */
/* 🔧 CHAT RESPONSIVE CORREGIDO */
/* ============================= */
@media (max-width: 768px) {
  .chat-overlay {
    align-items: flex-start;     /* evita que se corte arriba */
    overflow-y: auto;            /* scroll general */
    padding: 40px 0;             /* espacio arriba y abajo */
  }

  .chat-modal {
    width: 95%;
    max-height: 90vh;            /* evita que el chat ocupe toda la pantalla */
    height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
  }

  .chat-header {
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, #28458D, #3b6fe0);
    color: white;
    padding: 14px 16px;
    z-index: 10;
    font-weight: 600;
  }

  .chat-body {
    flex: 1;                     /* ocupa el espacio central */
    overflow-y: auto;            /* scroll solo dentro del cuerpo */
    max-height: 60vh;            /* controla el alto del área de mensajes */
    padding-bottom: 10px;
  }

  .chat-input {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 10px;
    display: flex;
    gap: 8px;
  }

  /* 💬 campo y botón */
  .chat-input input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    font-size: 15px;
  }

  .chat-input button {
    background: #28458D;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
  }

  .chat-input button:hover {
    background: #1f3673;
  }
}

@keyframes aparecer {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.chat-header {
  background: linear-gradient(90deg, #28458D, #3b6fe0);
  color: #fff;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
}

.cerrar-chat {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s;
}
.cerrar-chat:hover {
  transform: scale(1.2);
}

.chat-body {
  height: 280px;
  padding: 15px;
  overflow-y: auto;
  background: #f5f6fa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mensaje {
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
  line-height: 1.3;
  font-size: 14px;
}

.mensaje.usuario {
  background: #28458D;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.mensaje.vendedor {
  background: #e6eaff;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.mensaje-sistema {
  text-align: center;
  color: #777;
  font-size: 13px;
}

.chat-input1 {
  display: flex;
  border-top: 1px solid #ddd;
  background: #fff;
}

.chat-input1 input {
  flex: 1;
  border: none;
  padding: 12px 15px;
  font-size: 14px;
  outline: none;
}

.chat-input1 button {
  background: #28458D;
  color: #fff;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.3s;
}
.chat-input1 button:hover {
  background: #1f3673;
}

/* Botones de la tarjeta */
/* 🔧 Ajuste visual de botones Chat y Alquilar */
.botones-vehiculo {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.btn-alquilar, 
.btn-chat {
  flex: 1;
  padding: 10px 0; /* igual altura */
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px; /* altura fija */
  line-height: normal;
}
.btn-chat {
    margin-top: 10px
}
/* Botón Alquilar */
.btn-alquilar {
  background-color: #28458D;
  color: #fff;
}

.btn-alquilar:hover {
  background-color: #1f3673;
}

/* Botón Chat */
.btn-chat {
  background-color: #f3f5fc;
  color: #28458D;
  border: 1px solid #d7defa;
}

.btn-chat:hover {
  background-color: #e4e9fb;
}


/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  .vehiculos-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .vehiculos-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .vehiculos-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .vehiculos-container {
    grid-template-columns: 1fr;
  }
  .form-filtro {
    flex-direction: column;
  }
}
/* ======== UBICACIONES ======== */
.ubicaciones-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.ubicaciones-section h1 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
}

.ubicaciones-section p {
  color: #555;
  margin-bottom: 40px;
}

.tarjetas-ubicaciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.ubicacion-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  width: 280px;
  transition: transform 0.3s;
}

.ubicacion-card:hover {
  transform: translateY(-5px);
}

.ubicacion-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.ubicacion-card h3 {
  margin-top: 15px;
  color: #222;
}

.ubicacion-card p {
  color: #555;
  font-size: 14px;
}

.btn-vermas {
  margin-top: 10px;
  background: linear-gradient(135deg, #1f9735, #34c759); /* degradado verde */
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-vermas:hover {
  background-color: #c62828;
}

/* ======== MAPA ======== */
.mapa-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #fff;
}

.mapa-section h2 {
  color: #222;
  margin-bottom: 20px;
}

.mapa-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
/* SECCIÓN SOPORTE PRINCIPAL */
.soporte-principal {
    padding: 50px 20px;
    background: linear-gradient(to right, #f0f4f8, #d9e2ec);
    text-align: center;
}

.soporte-container h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #0a2540;
}

.soporte-container p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* TARJETAS DE SOPORTE */
.soporte-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card-soporte {
    background: #fff;
    padding: 25px;
    width: 280px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-soporte:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card-soporte img {
    width: 60px;
    margin-bottom: 15px;
}

.card-soporte h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.card-soporte p {
    font-size: 14px;
}

/* FORMULARIO SOPORTE */
.formulario-soporte {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center;
}

.form-soporte-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-soporte-container h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.form-soporte-container p {
    font-size: 16px;
    margin-bottom: 25px;
}

.form-soporte-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-soporte-container input,
.form-soporte-container textarea {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-soporte-container button {
    padding: 12px;
    background-color: #0a2540;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-soporte-container button:hover {
    background-color: #1f3d70;
}

 /* Estilo para el enlace del menú activo (Inicio) */
        #contenedor_menu a.active {
            font-weight: bold;
            color: #ffffff;
            text-decoration: none;
            
        }
        #contenedor_menu a.active:hover{
            
    color: #42ad5681;
            
           
            
        }

        
        
        /* Contenedor principal del saludo */
        #user-greeting {
            display: flex;
            align-items: center;
            gap: 2px;
            background-color: rgba(255, 255, 255, 0.2);
            padding: 8px 15px;
            border-radius: 50px;
        }
        
        /* Ícono de usuario */
        #user-greeting .icon {
            color: #004488;
            font-size: 1.2em;
        }

        /* Nombre del usuario */
        #user-greeting .user-name {
            font-weight: 600;
            color: #ffffff;
            font-size: 15px;
        }

        /* Botón de cerrar sesión */
      
        /* ==================================== */
/* 🔹 Unificar botón "Cerrar Sesión" en todas las páginas */
/* ==================================== */
#logout-button {
  background-color: #1976d2 !important; /* Azul uniforme */
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#logout-button:hover {
  background-color: #0d47a1 !important; /* Azul oscuro al pasar el mouse */
  transform: scale(1.05);
}

        .modal-alquiler {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex; justify-content: center; align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cerrar-modal {
  align-self: flex-end;
  font-size: 28px;
  cursor: pointer;
}

.detalle-container {
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.reserva {
  background: #f4f4f4;
  padding: 20px;
  border-radius: 10px;
  width: 45%;
}

.reserva button {
  background: #28458D;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
}

    .vehiculos-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;padding:20px}
    .vehiculo-card{background:#fff;border:1px solid #eee;border-radius:12px;overflow:hidden;box-shadow:0 4px 10px rgba(0,0,0,.05)}
    .vehiculo-card img{width:100%;height:160px;object-fit:cover}
    .vehiculo-card .body{padding:12px}
    .vehiculo-card h3{margin:6px 0 8px 0;font-size:18px}
    .vehiculo-card p{margin:4px 0;color:#444}
    .vehiculo-card .btn-alquilar{display:block;width:100%;margin-top:10px;background:#28458D;color:#fff;border:none;border-radius:8px;padding:10px;cursor:pointer}
  
.campo {
  padding:10px;
  border:1px solid #ccc;
  border-radius:6px;
  width:100%;
}
.btn {
  background:#28458D;
  color:white;
  border:none;
  border-radius:6px;
  padding:10px;
  cursor:pointer;
}
.mensaje {
  margin-bottom:8px;
  padding:8px 12px;
  border-radius:8px;
  max-width:80%;
  word-wrap:break-word;
}
.usuario {
  background:#e6f0ff;
  align-self:flex-end;
}
.vendedor {
  background:#f0f0f0;
  align-self:flex-start;
}
/* ============================= */
/* 💬 CHAT FLOTANTE CENTRADO CORRECTO */
/* ============================= */
.chat-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* Oculto por defecto */
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 99999; /* 🔥 Muy importante */
}

.chat-modal {
  background: #fff;
  width: 380px;
  max-width: 90%;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: aparecer 0.3s ease;
  font-family: 'Inter', sans-serif;
}

@keyframes aparecer {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.chat-header {
  background: linear-gradient(90deg, #28458D, #3b6fe0);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.cerrar-chat {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chat-body {
  flex: 1;
  padding: 15px;
  background: #f8f9fc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.chat-input {
  display: none; /* no se ve hasta que inicia chat */
  border-top: 1px solid #ddd;
  padding: 10px;
  background: #fff;
  flex-direction: row;
}

.chat-input input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  outline: none;
}

.chat-input button {
  background: #28458D;
  color: white;
  border: none;
  border-radius: 8px;
  margin-left: 8px;
  padding: 10px 16px;
  cursor: pointer;
}

.chat-input button:hover {
  background: #1f3673;
}

.mensaje {
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
}

.mensaje.usuario {
  background: #28458D;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.mensaje.vendedor {
  background: #e6eaff;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.mensaje.sistema {
  text-align: center;
  color: #777;
  font-size: 13px;
}

.campo {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

.btn {
  background: #28458D;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  width: 100%;
}

.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.chat-modal {
  background: white;
  width: 380px;
  max-width: 95%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: #28458D;
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.cerrar-chat {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chat-body {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.campo {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

.btn {
  background: #28458D;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
}

.chat-input {
  border-top: 1px solid #ddd;
  display: none;
  padding: 10px;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
}

.chat-input button {
  background: #28458D;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
}

.mensaje {
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 80%;
}

.mensaje.usuario {
  background: #DCF8C6;
  align-self: flex-end;
}

.mensaje.vendedor {
  background: #EDEDED;
  align-self: flex-start;
}

.mensaje.sistema {
  text-align: center;
  color: #777;
  font-size: 13px;
}
/* 🔧 Ajuste final botón de chat */
#iniciarChat {
  width: auto !important;
  max-width: fit-content !important;
  align-self: center !important;
  display: block !important;
  margin: 10px auto !important;
  padding: 10px 25px !important;
  background: #28458D !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#iniciarChat:hover {
  background: #1d3670 !important;
}
/* 💬 ESTILOS DEL CHAT LIMPIO */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.chat-modal {
  background: white;
  border-radius: 12px;
  width: 380px;
  max-width: 95%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: aparecer 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.chat-header {
  background: #28458D;
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.cerrar-chat {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.campo {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.iniciar-btn {
  background: #28458D;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 0;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.iniciar-btn:hover {
  background: #1f3673;
}

.mensajes-chat {
  display: flex;
  flex-direction: column; /* 👈 hace que los mensajes se apilen verticalmente */
  gap: 8px;               /* espacio entre mensajes */
  padding: 10px;
  max-height: 300px;      /* o el tamaño que prefieras */
  overflow-y: auto;       /* para permitir scroll */
  background: #f8f8f8;
  border-radius: 10px;
  margin-top: 10px;
}


.chat-input {
  display: none;
  border-top: 1px solid #ddd;
  padding: 10px;
  flex-direction: row;
}

.chat-input input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
}

.chat-input button {
  background: #28458D;
  color: white;
  border: none;
  border-radius: 8px;
  margin-left: 8px;
  padding: 10px 16px;
}

.mensaje.usuario {
  align-self: flex-end;
  background-color: #c9f7c4;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 75%;
  word-wrap: break-word;
}


.mensaje.vendedor {
  align-self: flex-start;
  background-color: #e7e7e7;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 75%;
  word-wrap: break-word;
}
.paginacion {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
  font-size: 16px;
}

.paginacion a {
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
}

.paginacion a:hover {
  background: #eee;
}

.pagina-activa {
  background: #00a8ff;
  color: white !important;
  border-color: #00a8ff;
}
#favoritos-menu {
    display: none;   /* se oculta por defecto */
}

/* 🔹 Estilo del logo */
.contenedor_logo img.logo-img {
    height: 60px;      /* 👉 Tamaño similar a la palabra LOGO */
    width: 150px;
    object-fit: contain;
    display: block;
    margin-top: 3px;   /* 👉 Para centrarlo verticalmente */
}

.contenedor_logo img.logo-img {
  cursor: pointer;
}
/* ================= HERO CON VIDEO ================= */

.formulario.video-bg {
  position: relative;
  min-height: calc(68vh + 150px); /* 👈 CLAVE */
  padding-bottom: 160px;          /* 👈 RESPIRA ABAJO */
  overflow: hidden;
  display: flex;
  align-items: center;
}
header + .formulario.video-bg {
  margin-top: 0;
  padding-top: 0;
}


/* VIDEO */
.video-fondo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
filter: brightness(0.38) contrast(1.05) saturate(1.08);
  animation: zoomVideo 10s ease-in-out infinite alternate;
}


/* OVERLAY OSCURO */
.formulario.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(4,18,40,0.95) 0%,
    rgba(4,18,40,0.75) 40%,
    rgba(0,0,0,0.45) 100%
  );
}

/* ================= CONTENEDOR ================= */

.contenedor_formulario {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: auto;
  padding: 70px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 70px;
}

/* ================= TEXTO SERVICIO ================= */

.servicio-hero {
  max-width: 600px;
  color: #ffffff;
  opacity: 0;
  animation: slideLeft 1.2s ease forwards;
}

@keyframes slideLeft {
  from {
    transform: translateX(-60px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* TÍTULO */
.servicio-hero h1 {
  font-size: 3.3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 22px;
}

/* VERDE DESTACADO */
.servicio-hero h1 span {
  color: #34c759;
  text-shadow: 0 0 18px rgba(52,199,89,0.55);
}

/* DESCRIPCIÓN */
.servicio-hero .descripcion {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e5e7eb;
  margin-bottom: 25px;
}

/* BENEFICIOS */
.servicio-hero .beneficios {
  list-style: none;
  padding: 0;
  margin: 0;
}

.servicio-hero .beneficios li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 500;
}

.servicio-hero .beneficios li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #34c759;
  font-weight: bold;
}

/* ================= FORMULARIO ================= */

.form-container {
  width: 420px;
  background: #ffffff;
  border-radius: 20px;
  padding: 36px;
  padding-bottom: 48px; /* 👈 MÁS AIRE ABAJO */
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  opacity: 0;
  animation: slideRight 1.2s ease forwards;
}

@keyframes slideRight {
  from {
    transform: translateX(60px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.form-container h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 22px;
  color: #111827;
}

/* LABELS */
.form-container label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

/* INPUTS */
.form-container select,
.form-container input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border-radius: 9px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  background: #fff;
  transition: border 0.3s, box-shadow 0.3s, transform 0.2s;
}

.form-container select:focus,
.form-container input:focus {
  outline: none;
  border-color: #34c759;
  box-shadow: 0 0 0 3px rgba(52,199,89,0.25);
  transform: scale(1.02);
}

/* BOTÓN */
.form-container button {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #1f9735, #34c759);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}

.form-container button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(52,199,89,0.55);
}
/* =========================================
   FIX DEFINITIVO FORMULARIO MÓVIL (VISIBLE)
   ========================================= */
@media (max-width: 900px) {

  html, body {
    height: auto;
    overflow-x: hidden;
  }

  /* Hero completo */
  .formulario.video-bg {
    position: relative;
    min-height: auto;
    padding: 60px 0 80px;
    overflow: visible;
  }

  /* Video bien al fondo */
  .video-fondo {
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: brightness(0.45);
  }

  /* Overlay SIN tapar */
  .formulario.video-bg::after {
    z-index: 1;
  }

  /* Contenido encima del video */
  .contenedor_formulario {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0 16px;
  }

  /* Texto */
  .servicio-hero,
  .hero-text {
    text-align: center;
    width: 100%;
  }

  /* FORMULARIO (CLAVE) */
   .form-container {
    width: calc(100% - 32px); /* 🔥 evita que se salga */
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box; /* CLAVE */
  }

}
/* ===== ESPACIO REAL PARA HEADER FIXED ===== */
.offset-header {
  height: 90px; /* altura real del menú desktop */
}

/* MÓVIL */
@media (max-width: 768px) {
  .offset-header {
    height: 120px; /* header móvil es más alto */
  }
}

/* ================= AJUSTE FINO SOLO EN MÓVIL ================= */
@media (max-width: 768px) {

  /* Bajar todo el hero un poco */
  .contenedor_formulario {
    padding-top: 30px; /* 🔽 baja el contenido */
  }

  /* TEXTO PRINCIPAL */
  .servicio-hero h1,
  .hero-text {
    font-size: 2rem;      /* ⬅️ más pequeño */
    line-height: 1.15;
  }

  /* Texto descriptivo */
  .servicio-hero .descripcion {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  /* Lista de beneficios */
  .servicio-hero .beneficios li {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  /* FORMULARIO */
  .form-container {
    margin-top: 20px;     /* 🔽 separarlo del texto */
  }

  .form-container h2 {
    font-size: 1.2rem;
  }

  .form-container label {
    font-size: 0.8rem;
  }

  .form-container input,
  .form-container select {
    font-size: 0.85rem;
    padding: 10px;
  }

  .form-container button {
    font-size: 0.9rem;
    padding: 12px;
  }
}
/* ================= FIX CORTE SUPERIOR HERO EN MÓVIL ================= */
@media (max-width: 768px) {

  /* Baja TODO el hero para que no lo tape el menú */
  .formulario.video-bg {
    padding-top: 130px; /* 👈 AJUSTE CLAVE */
  }

  /* Ajuste extra por seguridad */
  .contenedor_formulario {
    padding-top: 10px;
  }
.servicio-hero {
    margin-top: 60px; /* 👈 ESTO EVITA EL CORTE */
  }

}
.swal2-container {
  z-index: 9999 !important;
}

@media (max-height: 750px) {
  .formulario.video-bg{
          padding-bottom: 270px;
  }
}

