/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background: #fff;
    color: #111;
}

.header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.header img{
    max-width: 50px;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #111;
    transition: 0.3s;
}

.nav a:hover {
    color: #888;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #111;
    margin: 4px 0;
    transition: 0.3s;
}

/* animación X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;

    /* estado oculto */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);

    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 28px;
    text-decoration: none;
    color: #111;
    transition: 0.3s;
}

.mobile-menu a:hover {
    color: #888;
}

/* BOTÓN CERRAR MENÚ */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;

    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #111;

    transition: 0.3s;
}

.close-menu:hover {
    transform: scale(1.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* TITULO */
h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 40px;
}

/* FILTROS */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filters button {
    padding: 10px 18px;
    border: none;
    background: #eee;
    cursor: pointer;
    border-radius: 20px;
    transition: 0.3s;
    font-size: 14px;
}

.filters button:hover {
    background: #ddd;
}

.filters button.active {
    background: #111;
    color: #fff;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CARD */
.card {
    background: #fff;
    padding: 10px;
    cursor: pointer;
    transition: 
        opacity 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;

    /* Estado inicial (scroll animation) */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

/* Cuando aparece en scroll */
.card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Hover */
.card:hover {
    background: #f5f5f5;
}

.card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
}

.card span {
    font-size: 12px;
    color: #777;
}

/* Animación de salida (filtro) */
.card.hide {
    opacity: 0;
    transform: scale(0.9);
}

/* Eliminación del flujo (CLAVE para reacomodo) */
.card.hidden {
    display: none;
}

/*lightbox*/
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    
    align-items: flex-start;

    overflow-y: auto;

    padding: 80px 20px;
    color: white;
    z-index: 9999;
}

.lightbox img {
    max-width: 100%;
    margin-bottom: 20px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    cursor: pointer;
    color: white;
}

.lightbox-content {
    background: white;
    color: black;

    padding: 30px;

    max-width: 800px;
    width: 100%;

    border-radius: 12px;

    /* IMPORTANTE */
    margin: auto 0;
}

body.lightbox-open {
    overflow: hidden;
}

.lb-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

#lb-gallery img {
    width: calc(50% - 6px);
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* TITULO */
#lb-title {
    font-family: 'Archivo Black', sans-serif;

    font-size: 40px;
    text-align: center;

    margin-bottom: 20px;
    line-height: 0.95;
}

/* DESCRIPCIÓN */
#lb-desc, #lb-tools {
    max-width: 60%;

    margin: 0 auto 30px;

    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;

    color: #777;
    font-weight: 300;
}

/*link*/
#lb-link {
    display: inline-block;

    margin: 0 auto 30px;
    padding: 12px 24px;

    background: #111;
    color: white;

    text-decoration: none;
    border-radius: 999px;

    transition: 0.3s;
}

#lb-link:hover {
    background: #333;
    cursor: pointer;
}

.lb-link-wrapper {
    text-align: center;
}

/* móvil */
@media (max-width: 768px) {
    #lb-gallery img {
        width: 100%;
    }
}


/*footer*/
.footer {
    background: #184f63;
    color: white;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
}

.social a {
    margin: 0 10px;
    color: white;
    text-decoration: none;
}

.whatsapp {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background: white;
    color: #0aa96c;
    border-radius: 20px;
    text-decoration: none;
}

/* =========================
   ABOUT
========================= */

.about-content {
    max-width: 800px;
    margin: auto;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

/* =========================
   CONTACTO
========================= */

.contact-content {
    max-width: 700px;
    margin: auto;
}

.contact-item {
    margin-bottom: 50px;
}

.contact-item h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.contact-item a {
    color: #111;
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-item a:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/*Archivos multimedia*/

#lb-media {
    margin: 30px 0;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

#lb-media audio,
#lb-media video {
    width: 100%;
    border-radius: 10px;
}

#lb-media video {
    background: black;
    max-height: 600px;
}