@font-face {
    font-family: 'Stopbuck';
    src: url('Stopbuck.otf') format('opentype');
}

body {
    margin: 0;
    padding: 0;
    font-family: Stopbuck, sans-serif;
    min-height: 100vh;
    color: white;
    position: relative;
    background: #C7D7FF url('fondo.jpg') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.27);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: auto;
    padding: 30px 40px;
    border-radius: 30px;
    background: #C7D7FF;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease;
}

.titulo {
    font-size: 60px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.13);
    animation: fadeInUp 1s ease forwards;
}

.presentacion,
.subtitulo,
h2 {
    font-size: 17px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.presentacion { animation-delay: 0.5s; }
.subtitulo { 
    margin-top: 30px;
    animation-delay: 0.8s;
}

h2 {
    font-size: 23px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    margin-top: 30px;
}

.galeria,
.galeriaalt {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
    margin: 30px;
}

.galeria img,
.galeriaalt img {
    width: 100%;
    max-width: 220px;
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.galeria img:hover,
.galeriaalt img:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.galeria a:nth-child(1) img { animation-delay: 0.5s; }
.galeria a:nth-child(2) img { animation-delay: 0.7s; }
.galeria a:nth-child(3) img { animation-delay: 0.9s; }
.galeria a:nth-child(4) img { animation-delay: 1.1s; }

footer.redes {
    background: #C7D7FF;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    margin: 20px auto;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease forwards;
}

footer.redes a {
    color: #ffffff;
    font-size: 28px;
    transition: color 0.3s, transform 0.3s;
}

footer.redes a:hover {
    transform: scale(1.2);
    color: #ffffff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .container {
        max-width: 100%;
        padding: 20px 15px;
        border-radius: 15px;
        box-shadow: none;
    }

    .titulo {
        font-size: 40px;
        padding: 12px;
        margin: 20px auto;
    }

    .presentacion,
    .subtitulo,
    h2 {
        font-size: 18px;
        margin-top: 15px;
    }

    .galeria,
    .galeriaalt {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .galeria img,
    .galeriaalt img {
        max-width: 100%;
    }

    footer.redes {
        padding: 10px;
        gap: 10px;
    }

    footer.redes a {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .titulo {
        font-size: 32px;
        padding: 10px;
    }

    .presentacion,
    .subtitulo,
    h2 {
        font-size: 16px;
    }

    footer.redes a {
        font-size: 20px;
    }
}
