/* ======================================= */
/* === 1. Variables y Estilos Generales === */
/* ======================================= */

:root {
    --color-primary: #FF4136;
    /* Rojo intenso para llamados a la acción */
    --color-secondary: #0074D9;
    /* Azul fuerte para acentos */
    --color-dark: #2C3E50;
    /* Azul oscuro para texto principal y fondo */
    --color-light: #ECF0F1;
    /* Gris claro para fondos de sección */
    --color-white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

/* Títulos de sección */
.section {
    padding: 80px 5%;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1em;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto 40px;
}

.highlight-text {
    color: var(--color-primary);
    font-weight: 700;
}

/* Cartas y Contenedores */
.card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ====================================== */
/* === 2. Estilos de Botones (CTA) === */
/* ====================================== */

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* === Botón Principal: El más llamativo === */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 1.1em;
    /* Efecto para hacerlo sobresalir */
    animation: pulse 2s infinite;
    margin-bottom: 50px;
}

.btn-primary:hover {
    background-color: #CC372D;
    /* Tono más oscuro al pasar el ratón */
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 65, 54, 0.6);
}

.btn-hero {
    font-size: 1.25em;
    /* Más grande en el hero */
    padding: 18px 40px;
}

/* Keyframes para el efecto 'pulse' */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 65, 54, 0.4);
    }

    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 10px rgba(255, 65, 54, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 65, 54, 0);
    }
}

/* === Botón Secundario === */
.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    margin-top: 20px;
    font-size: 1em;
}

.btn-secondary:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 116, 217, 0.4);
}


/* =========================== */
/* === 3. Estilos Específicos === */
/* =========================== */

/* === 3.1. Header / Hero === */
.hero {
    background: url('fondo.png') center/cover no-repeat;
    /* Asegúrate de tener una imagen */
    height: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    /* Oscurece la imagen para que el texto resalte */
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 20px;
}

.hero-content img {
    max-width: 350px;
    height: auto;
    margin: 80px auto 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 30px;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* === 3.2. WhatsApp Flotante === */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* === 3.3. Galería (Carrusel) === */
.gallery {
    background-color: var(--color-light);
}

.vzlz-auto-carousel {
    overflow: hidden;
    padding: 20px 0;
    white-space: nowrap;
    position: relative;
    margin: 30px auto;
    max-width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
}

.vzlz-auto-track {
    display: inline-block;
    animation: scroll-vzlz 30s linear infinite;
}

.vzlz-auto-track img {
    height: 250px;
    /* Tamaño de las imágenes del carrusel */
    width: auto;
    object-fit: cover;
    margin: 0 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@keyframes scroll-vzlz {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* === 3.4. Sobre Nosotros / Características === */
.about {
    background-color: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.icon-feature {
    font-size: 3em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 600;
}

/* === 3.5. Servicios === */
.services {
    background-color: var(--color-light);
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    height: 100%;
    /* Asegura que las tarjetas tengan la misma altura */
}

.icon-card {
    font-size: 2.5em;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
}

/* === 3.6. Proceso de Trabajo === */
.process {
    background-color: var(--color-white);
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.step {
    flex: 1;
    max-width: 250px;
    text-align: center;
    padding: 20px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 40px;
    right: -10px;
    font-size: 2em;
    color: #bdc3c7;
    z-index: 5;
    transform: translateX(100%);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.step h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.process-subtitle {
    margin-top: 30px;
    font-style: italic;
    color: var(--color-primary);
    font-weight: 600;
}

/* === 3.7. Beneficios === */
.benefits {
    background-color: var(--color-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: var(--color-white);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.icon-benefit {
    font-size: 2.2em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.benefit-card h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 5px;
}

/* === 3.8. Testimonios === */
.testimonials {
    background-color: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: gold;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    flex-grow: 1;
}

.client-name {
    font-weight: 700;
    color: var(--color-secondary);
}

/* === 3.9. Cotización (Punto Clave) === */
.cotizacion-section {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 60px 5%;
}

.cotizacion-container {
    max-width: 900px;
    margin: 0 auto;
}

.cotizacion-text .section-title {
    color: var(--color-white);
    margin-bottom: 30px;
}

.ejemplos-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ejemplo {
    width: 200px;
    text-align: center;
}

.ejemplo img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 3px solid var(--color-primary);
}

.etiqueta {
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.reparable {
    background-color: #2ECC40;
    /* Verde para positivo */
    color: var(--color-white);
}

.no-reparable {
    background-color: var(--color-primary);
    /* Rojo para negativo */
    color: var(--color-white);
}

.cotizacion-subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* === Botón de WhatsApp para Cotizar (Destacado) === */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: var(--color-white);
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:hover {
    background-color: #1FAF59;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.8);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    filter: invert(100%);
    /* Hace el logo blanco */
}

/* === 4. Footer === */
.footer {
    background-color: var(--color-dark);
    color: #bdc3c7;
    padding: 40px 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.copyright {
    margin-bottom: 20px;
    font-size: 0.9em;
}

.social-links a {
    color: var(--color-white);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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


/* =========================== */
/* === 5. Media Queries (Responsividad) === */
/* =========================== */

@media (max-width: 1024px) {
    .step:not(:last-child)::after {
        content: none;
        /* Ocultar flecha en tablet/mobile */
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
        padding: 20px 0;
        border-bottom: 1px dashed #ccc;
    }

    .step:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 2em;
    }

    .hero {
        height: auto;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .btn-hero {
        font-size: 1.1em;
        padding: 15px 30px;
    }

    .mobile-hidden {
        display: none;
        /* Oculta el tercer testimonio en mobile */
    }

    .whatsapp-btn {
        font-size: 1.2em;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
        line-height: 50px;
    }

    .ejemplo {
        width: 150px;
    }

    .ejemplo img {
        height: 120px;
    }

    .vzlz-auto-track img {
        height: 180px;
    }
}

/* ========================================= */
/* === 3.10. Ubicación / Mapa === */
/* ========================================= */

.location {
    background-color: var(--color-white);
    padding-bottom: 50px;
    /* Reducir padding inferior si el footer está cerca */
}

.map-container {
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    /* Asegura que el iframe respete el border-radius */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    display: block;
    /* Elimina el espacio extra debajo del iframe */
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 1000px;
    flex-wrap: wrap;
}

.info-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.icon-contact {
    font-size: 2.2em;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.info-item h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-item p {
    margin: 0;
}

.info-item a {
    color: var(--color-dark);
    /* Color oscuro para el número de teléfono */
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

    .info-item {
        min-width: 100%;
        border-bottom: 1px solid #eee;
    }
}




.cotizacion-formulario {
    margin-top: 30px;
    text-align: center;
    color: #f5f5f5;
    font-family: "Poppins", sans-serif;
}

.cotizacion-formulario h3 {
    color: #00aaff;
    font-size: 1.5em;
}

.cotizacion-formulario p {
    margin-bottom: 10px;
}

.pregunta {
    margin: 20px auto;
    display: none;
    max-width: 400px;
}

.opciones button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    background: #222;
    color: #fff;
    border: 1px solid #00aaff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.opciones button:hover {
    background: #00aaff;
    color: #111;
}

#whatsappBtn {
    margin-top: 25px;
    padding: 14px 20px;
    background: gray;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: not-allowed;
    font-size: 16px;
    transition: all 0.3s;
}

#whatsappBtn.active {
    background: #25d366;
    cursor: pointer;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

#mensajeError {
    color: #ff5555;
    margin-top: 15px;
    display: none;
    font-size: 15px;
}