/* ---------------------- RESET ---------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------------------- GLOBAL ---------------------- */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9fbfd;
    color: #2c2c2c;
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

p {
    margin-bottom: 1.2em;
}

a {
    color: #0077ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005fcc;
}

/* ---------------------- HEADER ---------------------- */
.header {
    background: linear-gradient(135deg, #2231ff, #1abcff);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1200px;
    margin: auto;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo img {
    height: 55px;
    width: 55px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    object-fit: cover;
}

.logo:hover {
    transform: scale(1.07);
}

/* NAVIGATION */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
    background: rgba(255,255,255,0.07);
}

.nav-link:hover {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    color: #ffe0b2;
}

.nav-link::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background: #ffe0b2;
    position: absolute;
    bottom: 5px;
    left: 25%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 50%;
}

/* ---------------------- HAMBURGER MENU ---------------------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Animación al activar */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------------------- MAIN ---------------------- */
.main-content {
    padding: 30px 20px;
    text-align: center;
}

/* ---------------------- GALLERY ---------------------- */
.gallery-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f0f4ff, #6ecce6); /* fondo más atractivo */
    border-top: 4px solid #2231ff;
    border-bottom: 4px solid #1abcff;
    margin-top: 30px;
}

.gallery-section h2 {
    font-size: 2.5rem;
    color: #2231ff;
    margin-bottom: 40px;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.15);
    position: relative;
}

.gallery-section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 12px auto 0 auto;
    background: linear-gradient(90deg, #2231ff, #1abcff);
    border-radius: 4px;
}

/* Galería moderna */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto 60px auto;
}

.galeria img,
.galeria video {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid rgba(34, 49, 255, 0.15);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Efecto hover */
.galeria img:hover,
.galeria video:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

/* ---------------------- RESPONSIVE ---------------------- */
@media (max-width: 768px) {
    /* Menú responsive */
    .nav-list {
        display: none;
        flex-direction: column;
        background: #2231ff;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 220px;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }

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

    .menu-toggle {
        display: flex;
    }

    .gallery-section h2 {
        font-size: 2rem;
    }

    .galeria {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .main-content {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .gallery-section h2 {
        font-size: 1.6rem;
    }

    .galeria {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }
}
