/* --- 1. CONFIGURACIÓN GENERAL --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    padding-top: 60px;
}

/* --- 2. BARRA DE NAVEGACIÓN --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1e3c72;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-contenido {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #FFDD00;
}

/* --- 3. HERO SECTION (PORTADA) --- */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 20px;
    padding-bottom: 60px;
    margin-top: -60px;
}

.logo-hero {
    width: 280px; /* Logo GRANDE en computadora */
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.5)); 
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.texto-celeste {
    color: #89CFF0;
}

.eslogan {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

.descripcion {
    font-size: 1.1rem;
    max-width: 600px;
    opacity: 0.8;
}

/* Animación del Mouse */
.scroll-indicador {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.rueda {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: moverRueda 1.5s infinite;
}

@keyframes moverRueda {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* --- 4. CONTENIDO PRINCIPAL --- */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Sección Nosotros */
.seccion-nosotros {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contenido-nosotros {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.titulo-izquierda {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.texto-nosotros p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Galería de fotos */
.galeria-local {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.galeria-local img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.galeria-local img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Títulos y Tarjetas (Servicios) */
.titulo-seccion {
    text-align: center;
    color: #1e3c72;
    font-size: 2rem;
    margin: 60px 0 40px;
    font-weight: 700;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tarjeta {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid #1e3c72;
    transition: transform 0.3s ease;
    text-align: center;
}

.tarjeta:hover {
    transform: translateY(-10px);
}

.icono-tarjeta {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.tarjeta h3 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.tarjeta p {
    color: #666;
    font-size: 0.95rem;
}

/* Sección Marcos */
.seccion-marcos {
    margin-top: 80px;
    background-color: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 8px solid #1e3c72;
}

.seccion-marcos h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 2rem;
}

.seccion-marcos ul {
    list-style: none;
}

.seccion-marcos li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #444;
}

/* --- MÉTODOS DE PAGO --- */
.seccion-pagos {
    margin-top: 80px;
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.titulo-pagos {
    color: #1e3c72;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.iconos-pagos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.pago-item {
    text-align: center;
}

.pago-item i {
    font-size: 3rem;
    color: #004aad;
    margin-bottom: 10px;
}

.pago-item p {
    font-weight: 500;
    color: #555;
}

/* --- FORMULARIO DE CONTACTO --- */
.seccion-formulario {
    margin-top: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.campo {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.campo label {
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 8px;
}

.campo input, 
.campo textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.campo input:focus, 
.campo textarea:focus {
    border-color: #004aad;
    outline: none;
}

.boton-enviar {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.boton-enviar:hover {
    background-color: #20bd5a;
    transform: scale(1.02);
}

/* --- 5. FOOTER, MAPA Y REDES --- */
footer {
    text-align: center;
    padding: 60px 20px;
    background-color: #eef2f5;
    margin-top: 80px;
    border-top: 1px solid #ddd;
}

.mapa-container {
    max-width: 900px;
    margin: 0 auto 50px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mapa-container h3 {
    margin-bottom: 15px;
    color: #1e3c72;
    font-size: 1.5rem;
}

.footer-contenido {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0 auto 40px auto;
    max-width: 900px;
    text-align: center;
}

.footer-contenido div {
    flex: 1;
    min-width: 220px;
}

.footer-contenido h3 {
    color: #1e3c72;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-contenido p {
    color: #1e3c72;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.redes-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.boton-red {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.boton-red:hover {
    transform: translateY(-3px);
}

.social-fb {
    background-color: #1877F2;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
}

.social-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.3);
}

.boton-whatsapp {
    background-color: #25d366;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: inline-block;
}

.boton-whatsapp:hover {
    transform: scale(1.05);
    background-color: #20bd5a;
}

/* --- ESTILOS BOTÓN WHATSAPP FLOTANTE (ESQUINA) --- */
.btn-wsp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.btn-wsp-flotante:hover {
    background-color: #20bd5a;
    transform: scale(1.1);
}

/* --- ESTILOS DEL VISOR (LIGHTBOX) --- */
.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;
}

.modal-contenido {
    max-width: 85%;
    max-height: 85%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.cerrar-modal:hover {
    color: #bbb;
}

/* Estilos de las flechas (Lightbox) */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 2001;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* --- VERSIÓN MÓVIL (CELULARES) - ARREGLO DEL MENÚ --- */
@media (max-width: 768px) {
    /* Hacemos que la barra sea flexible */
    .navbar {
        padding: 10px 0;
        height: auto;
    }

    /* Columna: Logo arriba, menú abajo */
    .nav-contenido {
        flex-direction: column;
        gap: 10px;
    }

    /* Acomodamos los botones del menú para que no se corten */
    .nav-menu {
        flex-wrap: wrap; /* Permite que bajen de línea si no entran */
        justify-content: center;
        gap: 8px; /* Menos espacio entre botones */
        width: 100%;
    }

    .nav-menu a {
        font-size: 0.85rem; 
        padding: 5px;
        display: inline-block;
    }
    
    /* Ajustes para el Hero en celular */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .logo-hero {
        width: 200px; /* Logo un poco más chico en el celular */
    }
}