/* Variables de Color */
:root {
    --color-principal: #0A192F; /* Azul Marino Oscuro */
    --color-acento: #00C4CC;   /* Turquesa Brillante */
    --color-texto: #FFFFFF;    /* Blanco Puro */
    --color-fondo-suave: rgba(10, 25, 47, 0.9); /* Azul Suave Semi-transparente */
}

/* Base y Tipografía */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-principal);
    background-color: var(--color-texto);
    line-height: 1.6;
}

h2 {
    font-size: 2.5em;
    color: var(--color-principal);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

/* --- HEADER Y NAVEGACIÓN --- */
.header {
    background-color: var(--color-principal);
    color: var(--color-texto);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-acento);
}

.nav-menu a {
    color: var(--color-texto);
    text-decoration: none;
    padding: 8px 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--color-acento);
}

/* Menú Hamburguesa (Desktop oculto) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-texto);
    transition: all 0.3s ease-in-out;
}

/* --- SECCIÓN HERO (PORTADA) --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6); /* Oscurecer imagen */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: var(--color-texto);
    max-width: 800px;
    padding: 20px;
    margin-top: 320px !important;
}

.hero-title {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-acento);
    color: var(--color-principal); /* Texto oscuro para contraste */
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #009aa3; /* Tonalidad más oscura de turquesa */
    transform: translateY(-2px);
}

/* --- SECCIONES GENERALES --- */
.section {
    padding: 80px 5%;
    text-align: center;
}

/* Animaciones de entrada para secciones */
section, .servicio-card, .galeria-item, .comentario-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
}
section.visible, .servicio-card.visible, .galeria-item.visible, .comentario-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- SECCIÓN SERVICIOS --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.servicio-card {
    background-color: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.servicio-card i {
    font-size: 3em;
    color: var(--color-acento);
    margin-bottom: 15px;
}

.servicio-card h3 {
    color: var(--color-principal);
    margin-bottom: 10px;
}

/* --- SECCIÓN GALERÍA --- */
.galeria-section {
    background-color: #f9f9f9;
}

.imagenes-grid, .videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.galeria-item, .video-item iframe {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.galeria-section h3 {
    margin-top: 50px;
    color: var(--color-principal);
    font-size: 2em;
}

/* Efecto de zoom en galería */
.galeria-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 32px #2196f3, 0 0 8px #1565c0;
    z-index: 2;
}

/* --- SECCIÓN HORARIOS --- */
.horarios-section {
    background-color: var(--color-principal);
    color: var(--color-texto);
}

.horarios-section h2 {
    color: var(--color-texto);
}

.horarios-table {
    width: 60%;
    margin: 30px auto;
    border-collapse: collapse;
    font-size: 1.1em;
}

.horarios-table th, .horarios-table td {
    padding: 15px;
    border: 1px solid #33445c;
}

.horarios-table th {
    background-color: var(--color-acento);
    color: var(--color-principal);
    font-weight: 700;
}

.horario-accent {
    color: var(--color-acento);
    font-weight: 600;
}

/* --- SECCIÓN UBICACIÓN --- */
.ubicacion-section {
    background-color: var(--color-texto);
}

.mapa-container {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.direccion-texto {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--color-principal);
}

/* --- SECCIÓN CONTACTO (FORMULARIO) --- */
.contacto-section {
    background-color: #f9f9f9;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--color-texto);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
}

.cta-whatsapp-form {
    background-color: var(--color-acento);
    color: var(--color-principal);
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    padding: 15px;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-whatsapp-form:hover {
    background-color: #009aa3;
    transform: translateY(-2px);
}

/* --- SECCIÓN COMENTARIOS --- */
.comentarios-section {
    background-color: var(--color-principal);
    color: var(--color-texto);
}

.comentarios-section h2 {
    color: var(--color-texto);
}

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

.comentario-card {
    background-color: #1a2c4a; /* Tono de azul más claro */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.comentario-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid var(--color-acento);
    object-fit: cover;
}

.comentario-card p {
    font-style: italic;
    margin-bottom: 10px;
}

.comentario-card h4 {
    color: var(--color-acento);
}

/* --- FOOTER --- */
footer {
    background-color: #000;
    color: #999;
    padding: 20px 5%;
    text-align: center;
    font-size: 0.9em;
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: var(--color-texto);
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    line-height: 50px;
    z-index: 1000;
    box-shadow: 2px 2px 3px #999;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =================================== */
/* III. RESPONSIVE Y MENÚ HAMBURGUESA */
/* =================================== */

@media (max-width: 768px) {
    /* Ocultar menú normal y mostrar hamburguesa */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-fondo-suave); /* Fondo azul suave semi-transparente */
        justify-content: center; /* Centrar verticalmente */
        align-items: center;     /* Centrar horizontalmente */
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        font-size: 0.95em;
        padding: 20px 0;
        text-align: center;
        width: 100%;
        color: var(--color-texto);
    }

    .hamburger {
        display: block;
        z-index: 1001; /* Asegurar que esté sobre el menú desplegable */
    }

    /* Animación X del menú hamburguesa */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Adaptación de contenido móvil */
    .hero {
        height: 80vh; /* Reducir altura del hero en móvil */
    }

    .hero-title {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .horarios-table {
        width: 100%;
    }
    
    .section {
        padding: 50px 5%; /* Menos padding vertical */
    }
}

/* Modal galería pantalla completa */
.galeria-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(33,150,243,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.galeria-modal.visible {
    display: flex !important;
}
.modal-content {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    max-width: 900px;
    width: 98vw;
    max-height: 98vh;
    box-shadow: 0 4px 32px #2196f3a0;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 2.2em;
    color: #2196f3;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
}
.modal-body img, .modal-body video {
    max-width: 100vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 24px #2196f3a0;
}
@media (max-width: 600px) {
    .modal-content {
        max-width: 100vw;
        padding: 8px;
    }
    .modal-body img, .modal-body video {
        max-width: 98vw;
        max-height: 70vh;
    }
}