/* 1. RESET TOTAL & VARIABLES */
:root {
    --primary-color: #000000;
    --secondary-color: #111111;
    --accent-cyan: #00FFFF;
    --accent-orange: #FF8C00;
    --text-color: #dddddd;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-color);
    font-family: var(--font-body);
    width: 100%;
    color: var(--text-color);
}

/* --- ESTRATEGIA 1: ESCRITORIO (min-width: 769px) --- */
@media (min-width: 769px) {

    /* HERO WRAPPER */
    .hero-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        align-items: center;
    }

    /* 1. NAVEGACIÓN (Fixed Top) */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        z-index: 1000;
        padding: 15px 0;
        height: auto;
        display: block;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        /* Sombra para resaltar */
    }

    /* Compensar espacio del menú fijo */
    .hero-wrapper {
        padding-top: 60px;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        list-style: none;
        gap: 30px;
        background: transparent;
        padding: 0;
        border: none;
        margin: 0;
        flex-direction: row;
    }

    .nav-links li a {
        color: var(--white);
        text-decoration: none;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1rem;
        transition: color 0.3s;
    }

    .nav-links li a:hover {
        color: var(--accent-cyan);
    }

    .hamburger {
        display: none !important;
    }

    /* 2. CONTAINER BOXED */
    .desktop-container {
        max-width: 1100px;
        margin: 0 auto;
        width: 100%;
        background: var(--primary-color);
        position: relative;
        display: flex;
        flex-direction: column;
    }

    /* 3. IMAGEN */
    picture {
        width: 100%;
        display: block;
    }

    .responsive-img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: none;
    }

    /* 4. TEXTO */
    .text-overlay {
        position: relative;
        width: 100%;
        background: var(--secondary-color);
        padding: 20px 0;
        text-align: center;
        bottom: auto;
        left: auto;
        margin-top: -1px;
    }

    .text-overlay h1 {
        font-family: var(--font-heading);
        font-weight: 700;
        color: var(--white);
        font-size: 2.2rem;
        text-transform: uppercase;
        margin: 0;
    }
}

/* --- ESTRATEGIA 2: MÓVIL (max-width: 768px) --- */
@media (max-width: 768px) {

    .hero-wrapper {
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
    }

    .desktop-container {
        position: relative;
        width: 100%;
        line-height: 0;
        overflow: hidden;
        display: block;
        max-width: none;
        margin: 0;
    }

    .responsive-img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* HAMBURGUESA */
    .hamburger {
        display: block;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 20;
        background: rgba(0, 0, 0, 0.6);
        color: var(--white);
        border: none;
        font-size: 30px;
        padding: 5px 10px;
        border-radius: 5px;
        cursor: pointer;
        line-height: normal;
    }

    /* NAV OVERLAY */
    .mobile-nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 15;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 20px;
        text-align: center;
        border-bottom: 2px solid var(--accent-cyan);
        gap: 20px;
        margin-top: 55px;
    }

    .nav-links a {
        color: var(--white);
        text-decoration: none;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.5;
    }

    .nav-links.nav-active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* TEXTO OVERLAY */
    .text-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 10;
        padding: 8px 0;
        line-height: 1.5;
        margin-top: 0;
    }

    .text-overlay h1 {
        font-family: var(--font-heading);
        font-weight: 700;
        color: var(--white);
        text-align: center;
        text-transform: uppercase;
        margin: 0;
        font-size: clamp(14px, 4vw, 1.2rem);
    }
}

/* --- MÓVILES PEQUEÑOS (max-width: 480px) --- */
@media (max-width: 480px) {
    .desktop-container {
        min-height: 0 !important;
        height: auto !important;
    }

    .hamburger {
        font-size: 20px;
        padding: 4px 8px;
        top: 5px;
        left: 5px;
    }

    .text-overlay h1 {
        font-size: 0.8rem;
    }
}

/* --- SECCIÓN SOBRE NOSOTROS --- */
.about-section {
    background-color: var(--secondary-color);
    padding: 60px 20px;
    width: 100%;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

/* COLUMNA IMAGEN */
.about-image {
    flex: 1;
    height: 100%;
    min-height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    display: block;
}

/* COLUMNA TEXTO */
.about-text {
    flex: 1;
    padding: 20px;
    color: var(--text-color);
}

.about-text h2 {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-cyan);
    margin-top: 5px;
}

.about-text h3 {
    color: var(--accent-orange);
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.about-list {
    list-style: none;
    margin-top: 20px;
}

.about-list li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--white);
}

/* BOTÓN CTA */
.btn-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    border-radius: 5px;
    background: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-cta:hover {
    background-color: var(--accent-orange);
    color: var(--primary-color);
}

.icon-wa {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* --- SECCIÓN SERVICIOS --- */
.services-section {
    background-color: #050505;
    padding: 60px 20px;
    width: 100%;
}

.services-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-cyan);
    margin: 10px auto 0;
}

/* GRID DE TARJETAS */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.service-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

/* IMAGEN DE TARJETA */
.card-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: var(--primary-color);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

/* CONTENIDO DE TARJETA */
.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.service-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-list li {
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* RESPONSIVE: MÓVIL (Columna única) */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        min-height: 300px;
    }

    .about-image img {
        min-height: 300px;
    }

    .about-text {
        width: 100%;
        padding: 20px 0;
        text-align: left;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .card-image {
        height: 400px;
    }
}

/* --- SECCIÓN CONTACTO --- */
.contact-section {
    background: linear-gradient(to bottom, #000000, #111111);
    padding: 60px 20px;
    width: 100%;
    color: var(--white);
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

/* COLUMNA 1: TEXTO */
.contact-text {
    flex: 1;
}

.contact-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-text h3 {
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-text p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* BOTÓN GIGANTE WHATSAPP */
.btn-whatsapp-giant {
    display: block;
    width: fit-content;
    background-color: #25D366;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.btn-whatsapp-giant:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* COLUMNA 2: MAPA DARK MODE */
.contact-map {
    flex: 1;
    width: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(110%);
}

/* --- SECCIÓN GALERÍA DE VIDEOS --- */
/* --- BIO VIDEOS GRID (En Sección Nosotros) --- */
.bio-videos-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.bio-card {
    max-width: 320px !important;
    /* Un poco más anchos */
    width: 100%;
}

/* --- SECCIÓN TECNOLOGÍA Y EQUIPAMIENTO --- */
.equipment-section {
    background-color: #000;
    padding: 60px 20px;
    border-top: 1px solid #111;
}

.equipment-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* .equipment-card {
    Hereda estilos de .video-card
} */

.equipment-image-card {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    flex-grow: 1;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.equipment-image-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.equipment-image-card img {
    width: 100%;
    height: 500px;
    /* Misma altura que videos verticales */
    object-fit: cover;
    display: block;
}

.equipment-text {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: var(--font-body);
}

.video-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.video-card {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    /* Ancho fijo ideal para verticales/mixtos */
    flex-grow: 1;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.video-card video {
    width: 100%;
    height: 500px;
    /* Altura para videos verticales de WhatsApp */
    object-fit: cover;
    /* Cover para que llene el espacio, o contain si se quiere ver todo */
    background: black;
    display: block;
}

/* Permitir que el usuario controle el fit si es necesario, o usar contain por defecto para no cortar info */
/* .video-card video { object-fit: contain; } */

.video-caption {
    padding: 15px;
    text-align: center;
    background-color: var(--secondary-color);
}

.video-caption h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
    color: var(--accent-cyan);
}

.gallery-note {
    color: #666;
    margin-top: 30px;
    font-style: italic;
}

/* --- SECCIÓN TESTIMONIOS --- */
.testimonials-section {
    background-color: #050505;
    padding: 60px 20px;
}

.testimonials-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-card {
    background-color: var(--secondary-color);
    border: 1px solid #333;
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: left;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: #333;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-color);
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.testimonial-author {
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- SECCIÓN FAQ (ACORDEÓN) --- */
.faq-section {
    background-color: var(--primary-color);
    padding: 60px 20px;
    border-top: 1px solid var(--secondary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq-accordion {
    text-align: left;
    margin-top: 40px;
}

details {
    margin-bottom: 15px;
    border-bottom: 1px solid #222;
}

summary {
    background-color: #151515;
    padding: 20px;
    color: var(--white);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    transition: background 0.3s;
}

summary:hover {
    background-color: #222;
}

summary::after {
    content: '+';
    color: var(--accent-cyan);
    font-weight: bold;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: rotate(45deg);
}

summary::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 20px;
    color: #ccc;
    line-height: 1.6;
    font-family: var(--font-body);
    border-left: 3px solid var(--accent-orange);
    background-color: #0a0a0a;
    margin: 0;
}

/* --- FOOTER FINAL --- */
.main-footer {
    background-color: var(--primary-color);
    color: #888;
    text-align: center;
    padding: 40px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-top: 1px solid var(--accent-cyan);
}

.footer-content h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.copyright {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: #888;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

/* --- NUEVAS MEJORAS --- */

/* Removed .float-wa styles as they are replaced by .float-btn */

/* BOTÓN FLOTANTE EXPANDIBLE (FAB) */
.fab-container {
    position: fixed;
    bottom: 5px;
    /* Más abajo como pidió el usuario */
    right: 20px;
    display: flex;
    flex-direction: column;
    /* Opciones arriba, botón abajo */
    align-items: flex-end;
    gap: 15px;
    z-index: 1000;
}

/* 1. Botón Principal (WhatsApp) */
.fab-main {
    width: 65px;
    height: 65px;
    background-color: #25d366;
    border-radius: 50%;
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s;
    position: relative;
    z-index: 10;
}

.fab-main:hover {
    transform: scale(1.05);
}

.fab-main svg {
    transition: opacity 0.3s, transform 0.3s;
}

.close-icon {
    position: absolute;
    font-size: 2.5rem;
    line-height: 0;
    opacity: 0;
    transform: rotate(-90deg);
    transition: opacity 0.3s, transform 0.3s;
    font-family: var(--font-heading);
}

/* Estado Activo (Abierto) */
.fab-container.active .fab-main {
    background-color: #1a1a1a;
    /* Dark gray when open */
}

.fab-container.active .fab-main svg {
    opacity: 0;
    transform: rotate(90deg);
}

.fab-container.active .close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* 2. Opciones (Fan Out) */
.fab-options {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 5px;
}

.fab-option {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Icono de la opción */
.fab-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s;
}

.option-auto .fab-icon {
    background-color: #444;
    border: 2px solid #25d366;
}

.option-moto .fab-icon {
    background-color: #444;
    border: 2px solid #128c7e;
}

.fab-option:hover .fab-icon {
    background-color: var(--accent-cyan);
    color: black;
    border-color: var(--accent-cyan);
}

/* Etiqueta de Texto */
.fab-label {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* Animación de Entrada */
.fab-container.active .fab-option {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Staggered delay (retraso en cascada) */
.fab-container.active .option-moto {
    transition-delay: 0.05s;
}

.fab-container.active .option-auto {
    transition-delay: 0.1s;
}


/* RESPONSIVE ADD-ONS */
@media (max-width: 768px) {
    .testimonials-grid {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        width: 100%;
        max-width: none;
    }

    .fab-container {
        bottom: 15px;
        right: 15px;
    }

    /* Mobile Contact Layout */
    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-text {
        width: 100%;
        margin-bottom: 30px;
    }

    .contact-map {
        width: 75%;
        margin: 0 auto;
    }
}

/* Scroll-to-Top Button Style (GLOBAL) */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* Izquierda abajo para no tapar WhatsApp */
    z-index: 999;
    background-color: var(--accent-cyan);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#scrollToTopBtn:hover {
    transform: translateY(-5px);
    background-color: var(--white);
}

/* FIX: Sticky Hamburger on Mobile */
@media (max-width: 768px) {
    .hamburger {
        position: fixed;
        top: 20px;
        left: 20px;
        /* Cambiado a izquierda como pidió el usuario */
        right: auto;
        /* Resetear right */
        z-index: 1100;
        /* Encima de todo */
        background-color: rgba(0, 0, 0, 0.8);
        border-radius: 5px;
        padding: 5px 10px;
    }
}