/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #00A8E8; /* Celeste vibrante del logo */
    --header-bg: #000000; /* Fondo negro para el logo */
    --accent-color: #25d366; /* Verde WhatsApp */
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f4f7f6;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('img/hero.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #fff; /* Texto blanco global */
    line-height: 1.6;
    padding-top: 100px; /* Aumentado para el nuevo header */
}

h2 {
    text-align: center;
    color: #fff; /* Títulos en blanco para mejor contraste */
}

.container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparente */
    backdrop-filter: blur(15px); /* Efecto cristal premium */
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 100px; /* Header más alto y elegante */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 168, 232, 0.3); /* Borde más fino y sutil */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Logo en Formato Texto */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    user-select: none;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-icon {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.snowflake {
    font-size: 3.5rem; /* Más grande y definido */
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 0 15px rgba(0, 168, 232, 0.4); /* Brillo sutil */
}

.wave {
    width: 120%;
    height: 5px;
    background: var(--primary-color);
    border-radius: 10px;
    margin-top: -8px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 168, 232, 0.3);
}

.wave::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 10px;
    opacity: 0.4;
}

.logo-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 0.8; /* Más compacto */
}

.logo-brand span {
    font-family: 'Arial Black', Gadget, sans-serif;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: -1px; /* Letras más juntas para look premium */
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 168, 232, 0.2);
}

.line-tu {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.line-tecnico {
    font-size: 2rem; /* Mucho más impacto */
}

.line-responde {
    font-size: 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.tagline-hero {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 120px 0 80px 0;
    background: transparent;
    color: white;
    position: relative;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff; /* Blanco para resaltar el título principal */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff; /* Volvemos al blanco para mejor legibilidad */
}

.coverage-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    background: rgba(0, 168, 232, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(0, 168, 232, 0.3);
}

/* Botón WhatsApp */
.btn-whatsapp {
    display: block;
    background-color: var(--primary-color); /* Cambiado a celeste */
    color: white;
    text-decoration: none;
    padding: 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #0086b8; /* Un celeste un poco más oscuro */
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.6);
    transform: translateY(-3px) scale(1.05);
    animation: none; /* Pausar pulso al interactuar */
}

.btn-whatsapp:active {
    transform: scale(0.98) translateY(0);
}

/* Features */
.features {
    padding: 120px 0; /* Mucho más aire al inicio y fin de la sección */
}

.features .container {
    display: flex;
    flex-direction: column;
    gap: 100px; /* AHORA SÍ: El gap se aplica a los bloques .feature dentro del container */
}

.feature {
    background: rgba(255, 255, 255, 0.03); /* Un poco más sutil */
    padding: 40px 25px; /* Reducido para que no sea tan gigante, manteniendo el aire vertical */
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0,0,0,0.3);
    border: 1px solid rgba(0, 168, 232, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    backdrop-filter: blur(10px); /* Más desenfoque para look premium */
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(0, 168, 232, 0.1);
    box-shadow: 0 15px 35px rgba(0, 168, 232, 0.2);
}

.feature span {
    font-size: 4rem; /* Icono un poco más grande para llenar el espacio */
    display: block;
    margin-bottom: 40px; /* Más aire entre icono y título */
    filter: drop-shadow(0 0 10px rgba(0, 168, 232, 0.3));
}

.feature h3 {
    margin-bottom: 25px; /* Más aire entre título y descripción */
    color: var(--primary-color);
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.feature p {
    color: #ccc; /* Gris claro para el cuerpo de texto */
    font-size: 0.95rem;
}

/* Services */
.services {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 50px 0;
    position: relative;
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #fff; /* Blanco para mejor contraste */
    font-size: 2rem;
}

.services-list {
    list-style: none;
    display: grid;
    gap: 25px; /* Más aire entre items de la lista */
}

.services-list li {
    background: rgba(255, 255, 255, 0.05);
    color: #fff; /* Blanco para legibilidad */
    padding: 20px 25px; /* Más aire interno vertical y horizontal */
    border-radius: 12px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.services-list li:hover {
    background: rgba(0, 168, 232, 0.2);
    transform: translateX(5px);
}

/* Gallery */
.gallery {
    padding: 50px 0;
    background-color: transparent;
    text-align: center;
}

.gallery h2 {
    color: #fff; /* Blanco para jerarquía */
    margin-bottom: 5px;
}

.gallery-subtitle {
    margin-bottom: 25px;
    color: var(--primary-color); /* Cambiado a celeste */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* Más espacio entre fotos */
    margin-bottom: 30px;
    padding: 0 10px; /* Margen lateral para que no pegue al borde en móviles muy chicos */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 180px; /* Un poco más alto para mejor UX */
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 168, 232, 0.7); /* Celeste con transparencia */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay span {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: 1px solid white;
    padding: 5px 10px;
    border-radius: 5px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

/* Videos Carrusel */
.videos {
    padding: 50px 0;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    text-align: center;
}

.videos h2 {
    color: #fff; /* Blanco para jerarquía */
    margin-bottom: 5px;
}

.video-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px; /* Ancho de un video vertical */
    margin: 0 auto;
}

.video-carousel {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.video-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 9/16;
    background: #000;
    cursor: pointer;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
}

.video-overlay span {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

@media (max-width: 600px) {
    header { height: 75px; } /* Un poco más alto en móvil para el logo de texto */
    body { padding-top: 75px; }
    .logo-container { transform: scale(0.7); } /* Escalamos el logo de texto */
    .hero { padding: 60px 0 40px 0; }
    .hero h2 { font-size: 1.6rem; }
    .carousel-btn.prev { left: 5px; }
    .carousel-btn.next { right: 5px; }
}

@media (max-width: 400px) {
    .carousel-btn.prev { left: -20px; }
    .carousel-btn.next { right: -20px; }
}

/* Reviews */
.reviews {
    padding: 50px 0;
    background-color: transparent;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 25px;
    border-left: 5px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.review-text {
    font-style: italic;
    margin-bottom: 10px;
    color: #fff; /* Blanco para el texto de la reseña */
}

.review-author {
    font-weight: bold;
    text-align: right;
    color: var(--primary-color); /* El autor queda en celeste como firma */
}

.more-reviews {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

/* CTA Final */
.cta-final {
    padding: 50px 0;
    background-color: transparent;
}

.cta-box {
    background: rgba(255, 255, 255, 0.05); /* Fondo traslúcido para coherencia */
    color: white;
    padding: 50px 30px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px); /* Efecto de desenfoque para el cristal */
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 800;
    color: #fff; /* Blanco para coherencia con otros títulos */
}

.cta-box p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #fff; /* Blanco para legibilidad */
}

.btn-whatsapp-large {
    display: inline-block;
    background-color: var(--primary-color); /* Cambiado a celeste */
    color: white;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp-large:hover {
    background-color: #0086b8;
    box-shadow: 0 10px 30px rgba(0, 168, 232, 0.7);
    transform: translateY(-5px) scale(1.05);
    animation: none;
}

.btn-whatsapp-large:active {
    transform: scale(0.95) translateY(0);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Asegurar que esté por encima de todo */
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 50px !important; /* Forzar tamaño para evitar bugs */
    height: 50px !important;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

/* Modal de Imágenes */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-container {
    position: relative;
    max-width: 90%;
    text-align: center;
}

.modal-content {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    margin-bottom: 15px;
}

#caption {
    color: white;
    font-size: 1.1rem;
    font-weight: 300;
    padding: 10px;
    background: rgba(0, 168, 232, 0.2);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--header-bg);
    color: #fff; /* Blanco para el footer */
    text-align: center;
    padding: 40px 0;
    border-top: 3px solid var(--primary-color);
}

footer span {
    color: var(--primary-color);
    font-weight: bold;
}

/* Animaciones para dar "vida" */
@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.btn-whatsapp, .btn-whatsapp-large {
    position: relative;
    overflow: hidden;
}

.btn-whatsapp, .btn-whatsapp-large, .whatsapp-float {
    animation: pulse-animation 2s infinite ease-in-out;
}

.btn-whatsapp::after, .btn-whatsapp-large::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    animation: shine 4s infinite;
}

/* ==========================================
   DESKTOP UX (Mejoras para Pantallas Grandes)
   ========================================== */
@media (min-width: 992px) {
    .container {
        max-width: 1100px;
    }

    /* Hero Desktop */
    .hero {
        padding: 180px 0 120px 0;
    }

    .hero h2 {
        font-size: 3.5rem;
        max-width: 800px;
        margin: 0 auto 25px auto;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .btn-whatsapp {
        display: inline-block;
        padding: 20px 50px;
    }

    /* Features Desktop: De lista vertical a grilla horizontal */
    .features .container {
        display: flex;
        flex-direction: row;
        gap: 30px;
        align-items: stretch;
    }

    .feature {
        flex: 1;
        padding: 50px 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Servicios en 2 columnas */
    .services-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* Galería en 4 columnas */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .gallery-item img {
        height: 250px;
    }

    /* Ajuste de Videos para Desktop */
    .video-carousel-container {
        max-width: 900px;
        margin: 0 auto;
    }

    .video-slide {
        min-width: 33.333%; /* Mostramos 3 videos a la vez en el track */
    }
    
    .video-slide video {
        height: 450px;
    }

    /* Reviews */
    .review-card {
        max-width: 800px;
        margin: 0 auto;
        padding: 40px;
    }
}
