/* ===================================
   Variables y Configuración Global
   =================================== */
:root {
    /* Colores del Logo - Luigi Rent a Car */
    --primary-color: #FFAA00;      /* Amarillo/Dorado */
    --secondary-color: #808080;     /* Gris */
    --background-color: #FFFFFF;    /* Blanco */
    --text-dark: #2C2C2C;
    --text-light: #6B6B6B;
    
    /* Colores Complementarios (tonos neutros para armonía) */
    --accent-light: #FFF3D9;        /* Amarillo muy claro para backgrounds */
    --accent-dark: #E69900;         /* Amarillo más oscuro para hover */
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --border-color: #D9D9D9;
    
    /* Tipografía */
    --font-primary: 'Poppins', sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Bordes */
    --border-radius: 10px;
    --border-radius-lg: 20px;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    
    /* Transiciones */
    --transition: all 0.3s ease;
}

/* ===================================
   Reset y Estilos Base
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Tipografía
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.highlight {
    color: var(--primary-color);
}

/* ===================================
   Botones
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--secondary-color);
}

.btn--secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ===================================
   Header y Navegación
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.nav__logo img {
    height: 100px;
    width: auto;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    background: 
        linear-gradient(135deg, 
            rgba(255, 243, 217, 0.7),
            rgba(255, 255, 255, 0.7)
        ),
        url('../img/imagebanner.webp');
    background-size: cover;            /* Cubre todo el espacio */
    background-position: center center; /* Centra la imagen */
    background-repeat: no-repeat;      /* No repite la imagen */
    background-attachment: fixed;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start; /* <-- ESTA ES LA SOLUCIÓN */
}

/* ===================================
   Centrar reCAPTCHA en Hero Form
   =================================== */
.hero__form .recaptcha-container {
  display: flex;          /* Activa Flexbox */
  justify-content: center; /* Centra el contenido horizontalmente */
  align-items: center;
   padding-top: 0; 
   padding-bottom: 0; 
}

.g-recaptcha {
    transform-origin: center left;
}
@media screen and (max-width: 380px) {
    .g-recaptcha {
        transform: scale(0.85);
         margin-left: -20px;
    }
}

.hero__content {
    animation: fadeInLeft 1s ease;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat__text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.hero__image-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

.hero__car-icon {
    font-size: 15rem;
    color: var(--primary-color);
    opacity: 0.7;
}

/* ===================================
   Secciones Generales
   =================================== */
.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Servicios Section
   =================================== */
.services {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service__card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--gray-medium);
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service__description {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   Flota Section
   =================================== */
.fleet {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--background-color) 100%);
}

.fleet__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.fleet__card {
    background-color: var(--background-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.fleet__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.fleet__card.featured {
    border: 3px solid var(--primary-color);
}

.featured__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10;
}

.fleet__image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
}

.fleet__content {
    padding: 2rem;
}

.fleet__title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.fleet__features {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 2;
}

.fleet__features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.fleet__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--accent-light);
    border-radius: var(--border-radius);
}

.price__from {
    color: var(--text-light);
    font-size: 0.9rem;
}

.price__amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price__period {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   Testimonios Section
   =================================== */
.testimonials {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial__card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-medium);
    transition: var(--transition);
}

.testimonial__card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.testimonial__rating {
    margin-bottom: 1rem;
}

.testimonial__rating i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.testimonial__text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author__avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.author__name {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author__role {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   Contacto Section
   =================================== */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--background-color) 100%);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.contact__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
}

.contact__item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.contact__details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact__details p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact__form-container {
    background-color: var(--background-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Formularios
   =================================== */
.contact__form,
.modal__form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form__group {
    position: relative;
}

.form__group--half {
    grid-column: span 1;
}

.form__group--full {
    grid-column: span 2;
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
    background-color: var(--background-color);
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    transform: translateY(-2.5rem);
    font-size: 0.85rem;
    color: var(--primary-color);
}

.form__label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
}

textarea.form__input {
    resize: vertical;
    min-height: 100px;
}

select.form__input {
    cursor: pointer;
}

.form__success {
    text-align: center;
    padding: 2rem;
    background-color: var(--accent-light);
    border-radius: var(--border-radius);
}

.form__success i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form__success p {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo img {
    height: 100px;
    margin-bottom: 1rem;
}

.footer__description {
    color: var(--gray-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.social__link {
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social__link:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-5px);
}

.footer__title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.75rem;
}

.footer__links a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-medium);
}

.footer__contact i {
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-medium);
}

.footer__legal {
    display: flex;
    gap: 1rem;
}

.footer__legal a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: var(--transition);
}

.footer__legal a:hover {
    color: var(--primary-color);
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--accent-dark);
    transform: translateY(-5px);
}

/* ===================================
   Modal
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal__content {
    background-color: var(--background-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--primary-color);
}

.modal__title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal__description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===================================
   Animaciones
   =================================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design - Tablets
   =================================== */
@media screen and (max-width: 968px) {
    .hero__container,
    .contact__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__image {
        order: -1;
    }

    .hero__car-icon {
        font-size: 10rem;
    }

    .fleet__grid,
    .services__grid,
    .testimonials__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===================================
   Responsive Design - Mobile
   =================================== */
@media screen and (max-width: 768px) {
    .nav {
        padding: 0.25rem 1rem; /* Menos padding vertical y horizontal */
    }

    .nav__logo img {
        height: 70px; /* Bajar de 100px a 70px (o 60px si prefieres) */
    }
    
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--background-color);
        box-shadow: var(--shadow-lg);
        padding: 4rem 2rem;
        transition: var(--transition);
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav__toggle,
    .nav__close {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .hero {
        padding-top: 90px; 
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero__car-icon {
        font-size: 8rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .services__grid,
    .fleet__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .contact__form {
        grid-template-columns: 1fr;
    }

    .form__group--half,
    .form__group--full {
        grid-column: span 1;
    }

    .footer__content {
        grid-template-columns: 1fr;
    }

    .modal__content {
        padding: 2rem;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .stat__number {
        font-size: 2rem;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ===================================
  Estilos para el Formulario del Hero
  =================================== */
.hero__form-container {
  background-color: var(--background-color);
  padding: 1.5rem 2rem 2rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  animation: fadeInRight 1s ease;
}

.hero__form-title {
  font-size: 1.6rem; 
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1.2rem;
}

.hero__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem; /* <-- ¡ESTE ES EL CAMBIO! (era 1.3rem) */
}

.hero__form .form__group--full,
.hero__form button {
  grid-column: 1 / -1;
}

/* === INICIO: Reducción de altura y fuente (Compacto) === */
.hero__form .form__input {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  font-size: 0.85rem;
}

.hero__form .form__label {
  top: 0.6rem;
  font-size: 0.85rem;
}
/* === FIN: Reducción de altura === */


/* * === INICIO: SOLUCIÓN A LA INVASIÓN ===
 * Aplicamos a TODAS las etiquetas activas un fondo blanco.
*/
.hero__form .form__input:focus + .form__label,
.hero__form .form__input:not(:placeholder-shown) + .form__label,
.hero__form .form__group select.form__input + .form__label {
   transform: translateY(-2.1rem); 
   font-size: 0.75rem; 
   color: var(--primary-color);
   
   /* Esto sigue siendo importante para que la etiqueta
      tape limpiamente SU PROPIO borde */
   background-color: var(--background-color); 
   padding: 0 5px;     
   left: 0.5rem;       
}
/* === FIN: Solución a la invasión === */


/* ===================================
  Responsive para el Formulario del Hero
  =================================== */
@media screen and (max-width: 968px) {
  .hero__form-container {
    order: 1; 
    margin-top: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .hero__form {
    grid-template-columns: 1fr;
    gap: 1rem; /* En móvil, 1rem es suficiente */
  }
  
  .hero__form .form__group--full,
  .hero__form button {
    grid-column: 1;
  }

  .hero__form-container {
     padding: 1.5rem;
  }
}

/* ===================================
   WhatsApp Plugin Button
   =================================== */
.whatsapp-plugin {
  position: fixed;
  bottom: 6rem; /* 1rem arriba del botón scroll-top */
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* Color de WhatsApp */
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 998; /* Justo debajo del scroll-top */
  transition: var(--transition);
}

.whatsapp-plugin:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* Ajuste para que no se peguen en móvil */
@media screen and (max-width: 768px) {
  .whatsapp-plugin {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    right: 1rem;
    bottom: 5rem;
  }
  .scroll-top {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ===================================
   Ajustes IntlTelInput - CORRECCIÓN Dropdown Congelado
   =================================== */

.iti {
  display: block; 
  position: relative; 
  width: 100%;
}

.iti__flag-container {
    /* Quitamos pointer-events: none; */
    height: 100%; 
    top: 0; 
    display: flex; 
    align-items: center; 
    /* Hacemos que la bandera y el código sean clickables */
    cursor: pointer; 
}
.iti__selected-flag {
     /* Ya no necesita pointer-events: auto; aquí si el contenedor es clickeable */
     padding-left: 10px; 
     padding-right: 6px; 
     height: 100%;
     display: flex;
     align-items: center;
     border-right: 1px solid var(--gray-medium); 
     background-color: transparent;
}
.iti--separate-dial-code .iti__selected-dial-code {
    padding-left: 4px;
}

.iti__tel-input.form__input {
  padding-left: 95px !important; /* Mantenemos el padding que te funcionó */
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  font-size: 0.85rem;
  width: 100%; 
  position: relative; 
  background-color: transparent !important; 
  z-index: 5; 
}

.iti + .form__label {
  position: absolute; /* Asegura posicionamiento absoluto */
  left: 95px !important; 
  top: 0.6rem; 
  font-size: 0.85rem;
  color: var(--text-light);
  z-index: 1; /* DETRÁS del input */
  max-width: calc(100% - 105px); 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease-out; 
  pointer-events: none; /* LA LABEL NO DEBE RECIBIR CLICS */
}

.iti input.form__input:focus::placeholder,
.iti input.form__input:not(:placeholder-shown)::placeholder { color: transparent !important; }
.iti input.form__input:focus::-webkit-input-placeholder,
.iti input.form__input:not(:placeholder-shown)::-webkit-input-placeholder { color: transparent !important; }
.iti input.form__input:focus::-moz-placeholder,
.iti input.form__input:not(:placeholder-shown)::-moz-placeholder { color: transparent !important; opacity: 0 !important; }
.iti input.form__input:focus:-ms-input-placeholder,
.iti input.form__input:not(:placeholder-shown):-ms-input-placeholder { color: transparent !important; }
.iti input.form__input:focus:-moz-placeholder,
.iti input.form__input:not(:placeholder-shown):-moz-placeholder { color: transparent !important; opacity: 0 !important; }

.iti__dropdown-content { z-index: 1050 !important; } /* Forzar z-index alto */

/* ===================================
   Ajustes IntlTelInput - CORRECCIÓN DEFINITIVA Clic y Label
   =================================== */

/* Contenedor principal */
.iti { display: block; position: relative; width: 100%; }

/* Input DENTRO del .iti */
.iti__tel-input.form__input {
  padding-left: 95px !important; /* Mantenemos tu valor */
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  font-size: 0.85rem;
  width: 100%; 
  position: relative; 
  background-color: transparent !important; 
  z-index: 5; /* Input por encima de label inactiva */
}

/* Label INACTIVA (hermana del input DENTRO del .form__group) */
/* Estilos base para TODAS las labels */
.form__group > .form__label {
  position: absolute;
  color: var(--text-light);
  pointer-events: none; /* << --- MUY IMPORTANTE: Label NUNCA debe bloquear clics */
  transition: all 0.2s ease-out; 
  top: 0.6rem; 
  font-size: 0.85rem;
  left: 1rem; /* Posición por defecto */
  z-index: 1; /* Detrás del input */
  max-width: calc(100% - 2rem); 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sobreescribimos 'left' INACTIVA SOLO para teléfono */
.form__group > label[for="hero-phone"],
.form__group > label[for="modal-phone"] {
  left: 95px !important; /* Tu valor */
  max-width: calc(100% - 105px); 
}

/* --- Label ACTIVA (flotando) vía CLASE JS --- */
.form__group.label-active > .form__label {
  transform: translateY(-1.1rem); /* AJUSTA Vertical si es necesario */
  font-size: 0.75rem; 
  color: var(--primary-color);
  background-color: var(--background-color); 
  padding: 0 5px;     
  top: 0 !important; 
  z-index: 10 !important; /* ENCIMA del input */
  max-width: fit-content !important; 
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
   /* pointer-events: none sigue aplicando desde la regla base, ¡bien! */
}

/* Sobreescribimos 'left' ACTIVA SOLO para teléfono */
.form__group.label-active > label[for="hero-phone"],
.form__group.label-active > label[for="modal-phone"] {
  left: 90px !important; /* Tu valor */
}


/* Ocultar Placeholder Nativo cuando la label está activa (vía clase JS) */
.form__group.label-active input::placeholder { color: transparent !important; }
.form__group.label-active input::-webkit-input-placeholder { color: transparent !important; }
.form__group.label-active input::-moz-placeholder { color: transparent !important; opacity: 0 !important; }
.form__group.label-active input:-ms-input-placeholder { color: transparent !important; }
.form__group.label-active input:-moz-placeholder { color: transparent !important; opacity: 0 !important; }


/* Contenedor de la bandera: ASEGURAR QUE SEA CLICKEABLE */
.iti__flag-container { 
    height: 100%; 
    top: 0; 
    /* z-index explícito para asegurar que esté sobre el input base */
    z-index: 6 !important; 
    cursor: pointer; /* Cursor indica que es clickeable */
    /* Quitamos cualquier pointer-events: none que pudiera haber heredado */
    pointer-events: auto !important; 
}
/* La bandera seleccionada (parte visual) */
.iti--separate-dial-code .iti__selected-flag { 
    background-color: transparent; 
    height: 100%; /* Ocupa altura del contenedor */
    display: flex; 
    align-items: center; 
    padding-left: 10px; 
    padding-right: 6px; 
     /* El borde podría estar en el contenedor o aquí, lo dejamos aquí por ahora */
     border-right: 1px solid var(--gray-medium); 
}
/* El código de país */
.iti--separate-dial-code .iti__selected-dial-code { 
    padding-left: 4px; 
}

/* Dropdown */
.iti__dropdown-content { z-index: 1050 !important; } /* Máxima prioridad */

.hero__video-container {
    /* width: 100%; */ /* <--- ELIMINAMOS ESTA LÍNEA */
    
    /* AÑADIDO: Define un ancho máximo. 
       Ajusta este valor si lo quieres más grande o pequeño. */
    max-width: 450px; 
    
    margin-top: 2rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    line-height: 0;
}

.hero__video {
    width: 100%;  /* Esto está bien (100% del contenedor de 450px) */
    height: auto; /* Esto mantiene la proporción correcta del video */
    display: block;
    
    /* max-height: 400px; */ /* <--- ELIMINAMOS ESTA LÍNEA */
}

/* ===================================
   Estilos Carrusel Flota (Swiper.js)
   =================================== */

/* Contenedor principal del carrusel */
.fleet-carousel {
    width: 100%;
    /* Añadimos padding inferior para los puntos de paginación */
    padding-bottom: 4rem; 
    overflow: hidden;
}

/* * Re-estilamos la tarjeta para que se parezca a tu diseño original,
 * pero ahora con espacio para la imagen.
*/
.fleet-slide__card {
    background-color: var(--background-color);
    border-radius: var(--border-radius-lg); /* 20px */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    
    /* Esto es clave para que todas las tarjetas tengan el mismo alto */
    display: flex;
    flex-direction: column;
    height: 100%; 
}

/* Mantenemos el efecto 'featured' */
.fleet-slide__card.featured {
    border: 3px solid var(--primary-color);
}
/* La insignia de "Más Popular" sigue funcionando */
.fleet-slide__card .featured__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10;
}


.fleet-slide__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Contenedor de la IMAGEN */
.fleet-slide__image {
    width: 100%;
    height: 220px; /* Altura fija para todas las imágenes */
    overflow: hidden;
    background-color: var(--gray-light); /* Color de fondo mientras carga */
}

.fleet-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para que llene el espacio sin deformarse */
}

.fleet-slide__content {
    padding: 2rem;
    flex-grow: 1; /* Ocupa el espacio restante */
    display: flex;
    flex-direction: column;
}

.fleet-slide__title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.fleet-slide__description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    flex-grow: 1; 
}

.fleet-carousel .swiper-button-next,
.fleet-carousel .swiper-button-prev {
    color: var(--primary-color);
}

.fleet-carousel .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

.hero__vimeo-banner-container {
    max-width: 450px; 
    margin-top: 2rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden; /* Clave para los bordes redondeados */
    box-shadow: var(--shadow-md);
    position: relative;
    width: 100%; /* 100% de su contenedor (max-width: 450px) */
    padding-top: 56.25%; /* Proporción 16:9 (9 / 16 = 0.5625) */
    background-color: #000; /* Fondo negro mientras carga */
}

.hero__vimeo-banner-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vimeo-unmute-btn {
    position: absolute;
    bottom: 15px; /* Ajusta esto a tu gusto */
    right: 15px;  /* Ajusta esto a tu gusto */
    z-index: 100; /* Por encima del video */
    
    /* Estilo del botón */
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    
    /* Centrado de ícono */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vimeo-unmute-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}