/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-attachment: fixed;
    width: 100%;
    overflow-x: hidden;
}

/* = HERO = */
.hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
    overflow: hidden;
    padding-top: 100px;
    /* Added space for fixed navbar */
}

/* Logo & subtítulo */
.logo-section {
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

.logo-section img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 30vh;
}

.logo {
    font-size: 65px;
    font-weight: bold;
    color: #333;
}

.logo span {
    color: #e30613;
}

.subtitle {
    font-size: 32px;
    color: #333;
    margin-top: 10px;
}

/* Botones estáticos */
.buttons {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.buttons a {
    display: block;
    width: 250px;
    text-align: center;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

/* .secondary-btn {
    background: #c4c4c4;
} */

.secondary-btn-shadow {
    /* Mantén los estilos originales de secondary-btn */
    display: inline-block;
    padding: 12px 20px;
    /* background-color: white; */
    background-color: #c4c4c4;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;

    /* Agrega una sombra sutil */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.secondary-btn-shadow:hover {
    /* Sombra ligeramente más pronunciada en hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.primary-btn {
    background: #e30613;
    z-index: 99;
}

/* = El coche = */
.car {
    position: absolute;
    right: -30px;
    left: 0;
    bottom: -70vh;
    margin: 0 auto;
    width: 105vh;
    will-change: transform, opacity;
    transform-origin: center center;
    z-index: 1;

    -webkit-mask-image: linear-gradient(to bottom,
            black 0%,
            black 70%,
            transparent 100%);
    mask-image: linear-gradient(to bottom,
            black 0%,
            black 70%,
            transparent 100%);

    mask-repeat: no-repeat;
    mask-mode: alpha;
}

/* = Sección oscura después del hero = */
.dark-section {
    position: relative;
    background: #1e2023;
    color: #fff;
    padding: 50px 0;
    overflow: hidden;
}

/* overlay degradado encima del dark-section */
.dark-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom,
            rgba(30, 32, 35, 0) 0%,
            rgba(30, 32, 35, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* eleva tu contenido para que quede encima del overlay */
.dark-section>* {
    position: relative;
    z-index: 2;
}

.tagline {
    text-align: center;
    font-size: 48px;
    margin: 20px 0;
}

.logo-florida {
    text-align: center;
    font-size: 85px;
    font-style: italic;
    color: #e30613;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-family: 'Nitro Chargers', sans-serif !important;
}

/* Grid de servicios */
/* .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 60px;
} */

/* Segunda fila con solo 2 columnas (6+6) */
/* .services-grid-two {
    grid-template-columns: repeat(2, 1fr);
} */

/* .service-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 250px;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    margin: 0;
    font-size: 28px;
} */

/* Grid de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

/* Segunda fila con solo 2 columnas (6+6) */
.services-grid-two {
    grid-template-columns: repeat(2, 1fr);
}

.service-card-index {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 250px;
}

.service-card-index img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-index h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    margin: 0;
    font-size: 28px;
}

/* CTA Section Styles */
.cta-section {
    background-color: #e30613;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #e30613;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
.site-footer {
    background-color: #1e2023;
    color: #fff;
    padding: 50px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #c4c4c4;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #e30613;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4:after,
.footer-contact h4:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #e30613;
    margin-top: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #c4c4c4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    color: #c4c4c4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #e30613;
}

.footer-button {
    display: inline-block;
    background-color: #e30613;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.footer-button:hover {
    background-color: #c50512;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* Special class for body to handle content visibility after animation */
body.car-animation-complete .dark-section {
    visibility: visible;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .services-grid-two {
        grid-template-columns: repeat(2, 1fr);
        /* Mantener 2 columnas en tablets */
    }

    .hero {
        overflow: visible;
        height: auto;
        min-height: 100vh;
    }

    .car {
        width: 450px;
        bottom: -150px;
    }

    .buttons {
        bottom: 50px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        top: 10px;
    }

    .navbar {
        padding: 10px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .logo-section {
        margin-top: 30px;
    }

    .logo-section img {
        max-height: 25vh;
    }

    .car {
        width: 120vh;
        bottom: -80vh;
    }

    .tagline {
        font-size: 36px;
    }

    .logo-florida {
        font-size: 60px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid-two {
        grid-template-columns: 1fr;
        /* Una columna en móviles */
    }

    .buttons {
        width: 100%;
        left: 0;
        padding: 0 20px;
    }

    .buttons a {
        width: 100%;
    }

    .cta-section h2 {
        font-size: 30px;
    }

    .cta-section p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero {
        position: relative;
        height: 100vh;
        overflow: hidden;
        min-height: 100vh;
        z-index: 10;
        /* Ensure hero stays above other content during animation */
    }

    .tagline {
        font-size: 28px;
    }

    .logo {
        font-size: 40px;
    }

    /* Ensure dark section is properly positioned and visible */
    .dark-section {
        position: relative;
        z-index: 5;
        visibility: visible;
        /* Make sure content is always visible */
    }

    /* Fix buttons positioning */
    .buttons {
        position: relative;
        margin-top: 250px;
        margin-bottom: 30px;
    }

    /* Additional fix for car positioning */
    .car {
        width: 600px;
        position: absolute;
        bottom: -80px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .cta-button,
    .footer-button {
        display: block;
        width: 100%;
        text-align: center;
    }

    .logo-section {
        margin-top: 20px;
    }

    .logo-section img {
        max-height: 20vh;
    }
}

/* Para móviles muy pequeños */
@media (max-width: 400px) {
    .navbar {
        padding: 8px 10px;
    }

    .nav-links {
        gap: 8px;
        font-size: 12px;
    }

    .quote-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .logo {
        font-size: 32px;
    }

    .subtitle {
        font-size: 20px;
    }

    .car {
        width: 68vh;
        bottom: -70px;
    }
}

/* ---------------------------
----------------------------- */
.comparison-container {
    max-width: 70%;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    height: 85vh;
    border: none;
    mask-image: linear-gradient(black 80%, transparent);
}

/* Añadir media queries para ajustar el tamaño en diferentes pantallas */
@media (max-width: 768px) {
    .comparison-container {
        max-width: 90%;
        /* Aumentado de 100% a 90% para dar más ancho */
        height: auto;
        /* Quitar altura fija */
        aspect-ratio: 16/9;
        /* Mantener aspect ratio */
    }
}

@media (max-width: 480px) {
    .comparison-container {
        max-width: 100%;
        /* Usar el 100% del ancho en móviles pequeños */
        aspect-ratio: 4/3;
        /* Cambiar a una proporción más cuadrada para móviles */
        height: auto;
        border-radius: 0;
        /* Opcional: quitar bordes redondeados en móvil */
    }
}

/* Mantén esto igual */
img-comparison-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}