/* CONFIGURACIÓN GENERAL Y SCROLL SUAVE */
html {
    scroll-behavior: smooth; /* Transición animada fluida entre menús */
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #fcf8f2;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Fredoka', sans-serif;
    color: #4A4A4A;
}

/* NAVBAR INTERACTIVA */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo span {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    color: #ff6b6b;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.btn-nav {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.azul { background-color: #4dadf7; }
.verde { background-color: #51cf66; }
.amarillo { background-color: #fcc419; color: #333; }
.rosa { background-color: #ff8787; }

.btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    filter: brightness(1.05);
}

/* SECCIÓN HERO CON FONDO DE IMAGEN */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
    padding: 0 5%;
    text-align: center;
    background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url('fondo-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #339af0;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #5c5f66;
    font-weight: 500;
}

.btn-principal {
    display: inline-block;
    text-decoration: none;
    background-color: #ff6b6b;
    color: white;
    padding: 15px 35px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    border-radius: 50px;
    box-shadow: 0 6px 0 #e03131;
    transition: all 0.2s ease;
}

.btn-principal:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #e03131;
}

/* SECCIONES ESTILIZADAS */
.seccion-actividades, .seccion-galeria {
    padding: 60px 5%;
    text-align: center;
}

.titulo-seccion {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.subtitulo-seccion {
    font-size: 1.1rem;
    color: #868e96;
    margin-bottom: 40px;
}

.titulo-seccion::after {
    content: '';
    display: block;
    width: 60%;
    height: 6px;
    background-color: #fcc419;
    border-radius: 10px;
    margin: 8px auto 0 auto;
}

/* TARJETAS DE ACTIVIDADES */
.tarjetas-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tarjeta {
    background-color: white;
    border-radius: 30px;
    padding: 20px;
    width: 220px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.tarjeta img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 15px;
}

.tarjeta h3 {
    font-size: 1.3rem;
    color: white;
    padding: 8px;
    border-radius: 15px;
}

.color-rosa h3 { background-color: #ff8787; }
.color-azul h3 { background-color: #4dadf7; }
.color-verde h3 { background-color: #51cf66; }
.color-amarillo h3 { background-color: #fcc419; color: #333;}

.tarjeta:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

/* SECCIÓN NUESTROS MOMENTOS CON LABELS INTERACTIVOS */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.foto-marco {
    background-color: white;
    padding: 12px;
    border-radius: 25px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.foto-marco img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.label-galeria {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 107, 107, 0.95);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
}

.foto-marco:hover {
    transform: scale(1.04) translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.foto-marco:hover .label-galeria {
    background-color: #ff4b4b;
}

/* NIVEL 1: MODALES DE GALERÍAS COMPLETA (6 FOTOS) */
.modal-galeria {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-contenido {
    background-color: white;
    padding: 35px;
    border-radius: 40px;
    max-width: 950px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: bounceIn 0.4s ease-out;
}

@keyframes bounceIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cerrar {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.8rem;
    font-weight: bold;
    color: #bbb;
    cursor: pointer;
    transition: color 0.2s;
}

.cerrar:hover {
    color: #ff6b6b;
}

.modal-contenido h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #339af0;
    text-align: center;
}

/* CUADRÍCULA DE 6 FOTOS REQUERIDA */
.grid-6-fotos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.grid-6-fotos img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    cursor: zoom-in; /* Lupa que indica expansión de foto */
    transition: transform 0.2s, filter 0.2s;
}

.grid-6-fotos img:hover {
    transform: scale(1.03);
    filter: brightness(0.9);
}

/* NIVEL 2: ZOOM / LIGHTBOX PANTALLA COMPLETA */
.modal-zoom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.modal-zoom img {
    max-width: 85%;
    max-height: 80vh;
    border: 6px solid white;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(255,255,255,0.25);
    animation: zoomUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

@keyframes zoomUp {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cerrar-zoom {
    position: absolute;
    top: 25px;
    right: 35px;
    color: rgba(255,255,255,0.7);
    font-size: 3.5rem;
    font-weight: bold;
    transition: color 0.2s;
}

.cerrar-zoom:hover {
    color: white;
}

/* PIE DE PÁGINA Y DETALLES DE CONTACTO */
.pie-pagina {
    background-color: #e7f5ff;
    padding: 60px 5% 30px 5%;
    text-align: center;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
}

.pie-pagina h2 {
    font-size: 2.2rem;
    color: #339af0;
    margin-bottom: 30px;
}

.contacto-contenedor {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.contacto-info {
    background-color: white;
    padding: 35px;
    border-radius: 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    text-align: left;
    max-width: 550px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacto-item {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #5c5f66;
}

.contacto-item strong {
    color: #2b2d31;
    font-weight: 700;
}

/* WHATSAPP INTERACTIVE BUTTONS */
.whatsapp-seccion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whatsapp-titulo {
    display: inline-block;
    margin-bottom: 5px;
}

.whatsapp-botones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: white !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    width: fit-content;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}

.copyright {
    font-size: 0.9rem;
    color: #adb5bd;
    margin-top: 30px;
}

/* SISTEMA RESPONSIVO */
@media (max-width: 850px) {
    .grid-6-fotos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content p { font-size: 1.2rem; }
    .nav-links { display: none; }
    .navbar { justify-content: center; }
}

@media (max-width: 520px) {
    .grid-6-fotos {
        grid-template-columns: 1fr;
    }
    .modal-contenido {
        padding: 20px;
    }
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
}