/* ========================================= */
/* ===== VARIABLES DE COLOR (del logo) ===== */
/* ========================================= */
:root {
    --azul-marino: #0F2742;
    --azul-petroleo: #1A6B8A;
    --cian-brillante: #4DB8D9;
    --gris-acero: #5A6B7C;
    --gris-claro: #F4F7F9;
    --blanco: #FFFFFF;
    --sombra-suave: 0 10px 30px rgba(0, 0, 0, 0.08);
    --sombra-fuerte: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transicion: all 0.3s ease;
}

/* ========================================= */
/* ===== RESET Y BASE ===== */
/* ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Compensa el header sticky */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gris-acero);
    line-height: 1.6;
    background-color: var(--blanco);
    overflow-x: hidden; /* Evita scroll horizontal */
}

h1, h2, h3 {
    color: var(--azul-marino);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transicion);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================= */
/* ===== COMPONENTES REUTILIZABLES ===== */
/* ========================================= */
.btn-cta {
    background-color: var(--cian-brillante);
    color: var(--azul-marino);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    transition: var(--transicion);
    display: inline-block;
    text-align: center;
}

.btn-cta:hover {
    background-color: var(--azul-petroleo);
    color: var(--blanco);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77, 184, 217, 0.4);
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gris-acero);
    margin-bottom: 2rem;
}

/* ========================================= */
/* ===== HEADER ===== */
/* ========================================= */
.main-header {
    background-color: var(--blanco);
    box-shadow: var(--sombra-suave);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 10px 0;
    transition: var(--transicion);
}

.logo-header {
    height: 60px;
    width: auto;
}

.nav-link {
    color: var(--azul-marino) !important;
    font-weight: 600;
    padding: 8px 15px !important;
    border-radius: 5px;
}

.nav-link:hover {
    color: var(--azul-petroleo) !important;
    background-color: var(--gris-claro);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================= */
/* ===== HERO SECTION ===== */
/* ========================================= */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--azul-marino);
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(15, 39, 66, 0.85) 0%, 
        rgba(26, 107, 138, 0.75) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    color: var(--blanco);
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #E0E0E0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ========================================= */
/* ===== SECCIÓN SERVICIOS ===== */
/* ========================================= */
.servicios {
    padding: 80px 0;
    background-color: var(--blanco);
}

.card-servicio {
    background-color: var(--gris-claro);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: var(--transicion);
    border: 2px solid transparent;
}

.card-servicio:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-fuerte);
    border-color: var(--cian-brillante);
}

.card-servicio i {
    font-size: 40px;
    color: var(--azul-petroleo);
    margin-bottom: 20px;
    transition: var(--transicion);
}

.card-servicio:hover i {
    color: var(--cian-brillante);
    transform: scale(1.1);
}

.card-servicio h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* ========================================= */
/* ===== SECCIÓN NOSOTROS ===== */
/* ========================================= */
.nosotros {
    padding: 80px 0;
    background-color: var(--gris-claro);
}

.nosotros-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========================================= */
/* ===== SECCIÓN VIDEO ===== */
/* ========================================= */
.seccion-video {
    padding: 80px 0;
    background-color: var(--blanco);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sombra-fuerte);
    background-color: var(--azul-marino);
    aspect-ratio: 16 / 9;
}

.video-scroll {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ========================================= */
/* ===== SECCIÓN CONFIANZA ===== */
/* ========================================= */
.confianza {
    padding: 80px 0;
    background-color: var(--azul-marino);
    color: var(--blanco);
}

.lista-confianza {
    list-style: none;
    padding: 0;
}

.lista-confianza li {
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--cian-brillante);
}

.lista-confianza i {
    color: var(--cian-brillante);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ========================================= */
/* ===== FOOTER ===== */
/* ========================================= */
.main-footer {
    background-color: #0A1C2E;
    color: #B0BEC5;
    padding: 60px 0 20px;
}

.footer-title {
    color: var(--blanco);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-contacto,
.footer-horarios {
    list-style: none;
    padding: 0;
}

.footer-contacto li,
.footer-horarios li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contacto a {
    color: var(--cian-brillante);
}

.footer-contacto a:hover {
    color: var(--blanco);
    text-decoration: underline;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 20px;
}

.footer-copy {
    font-size: 0.9rem;
    color: #78909C;
}

/* ========================================= */
/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
/* ========================================= */
.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: var(--blanco);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transicion);
    animation: pulse 2s infinite;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    color: var(--blanco);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========================================= */
/* ===== MEDIA QUERIES (RESPONSIVE) ===== */
/* ========================================= */

/* Tablets (max 991px) */
@media (max-width: 991px) {
    .hero {
        min-height: 75vh;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .logo-header {
        height: 50px;
    }
}

/* Móviles (max 767px) */
@media (max-width: 767px) {
    .hero {
        min-height: 80vh;
    }
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .hero-content {
        padding: 30px 20px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .servicios, 
    .nosotros, 
    .seccion-video, 
    .confianza {
        padding: 50px 0;
    }
    .card-servicio {
        padding: 20px;
    }
    .lista-confianza li {
        font-size: 1rem;
        padding: 12px;
    }
    .btn-whatsapp {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
    .footer-title {
        margin-top: 20px;
    }
    .video-wrapper {
        border-radius: 10px;
    }
}

/* Móviles pequeños (max 480px) */
@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .logo-header {
        height: 40px;
    }
    .btn-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================= */
/* ===== ACCESIBILIDAD: REDUCIR MOVIMIENTO ===== */
/* ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}