@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200..900&display=swap');

/* --- Estilos Generales --- */
body {
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    margin-top: 20px;
    margin-left: 0px;
    margin-right: 0px;
    padding: 0;
    background-color: rgb(247, 242, 224);
}

header {
    text-align: center;
    padding: 20px 0;
    background-color: rgb(247, 242, 224);
    color: white;
}

h1, h2 {
    font-family: 'Unbounded', bold;
    color: rgb(128, 174, 232);
}
 
h5 {
    font-family: 'Quicksand', sans-serif;
    color: rgb(128, 174, 232);
}

h2 {
    font-family: 'Unbounded', regular;
    color: rgb(228, 245, 168);
}

h3 {
    font-family: 'Quicksand', regular;
    font-size: 1em;
}

/* --- Contenedor Principal --- */
#container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5em;
    align-items: start;
    background-color: rgb(228, 245, 168);
    padding: 100px;
    margin-left: 0px;
}

#container-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5em;
    align-items: start;
    background-color: rgb(128, 174, 232);
    padding: 100px;
}

/* --- Columna Izquierda: Intro --- */
.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: rgb(128, 174, 232);
}

.intro p {
    font-family: 'Quicksand', sans-serif;
    text-align: justify;
    line-height: 1.6;
}

.intro a {
    align-self: center;
    margin-top: 1em;
}

.intro button {
    font-family: 'Unbounded', sans-serif;
    font-size: 1em;
    padding: 15px 45px;
    margin-top: 30px;
    border: none;
    background-color: rgb(128, 174, 232);
    color: rgb(247, 242, 224);
    cursor: pointer;
    border-radius: 50px;
    
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.2s ease;
}

.intro button:hover {
    background: rgb(247, 242, 224);
    color: rgb(128, 174, 232);
    transform: translateY(-2px);
}

.intro button:hover::before {
    animation: brilloConstante 0.7s infinite linear;
}

.intro button:active {
    transform: translateY(0);
}


/* Columna Derecha: Proyectos */
.proyectos {
    display: flex;
    flex-direction: column;
}

/* --- Galería de Proyectos --- */
.galeria {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5em;
}

/* --- Tarjetas Individuales Originales --- */
.tarjeta {
    background-color: rgb(228, 245, 168);
    color: rgb(128, 174, 232);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tarjeta a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-in-out;
}

.tarjeta a:hover {
    filter: brightness(70%);
    transform: scale(1.05);
}

.tarjeta img {
    width: 100%;
    display: block;
}

.tarjeta h3 {
    text-align: center;
    padding: 0.5em 0;
    margin: 0;
}


/* --- Media Query para pantallas pequeñas --- */
@media (max-width: 900px) {
    body {
        margin: 20px;
        padding: 1em;
    }

    #container {
        grid-template-columns: 1fr;
    }

    .galeria {
        grid-template-columns: 1fr;
    }
} 

#container-3 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5em;
    align-items: start;
    background-color: rgb(228, 245, 168);
    padding: 100px;
}

/* --- Tarjeta Proyecto Original --- */
.tarjeta-proyecto {
    background-color: rgb(247, 242, 224);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: rgb(128, 174, 232);
    overflow: hidden;
    margin-bottom: 20px;
    grid-column: 2 / span 3;
}

.tarjeta-proyecto h3 {
    text-align: center;
    padding: 0.5em 0;
    margin: 0;
}

.tarjeta-proyecto img {
    width: 100%;
    display: block;
}

.tarjeta-proyecto a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-in-out;
}

.tarjeta-proyecto:hover {
    filter: brightness(70%);
    transform: scale(1.00);
}


/* --- Destello para el Botón --- */
.intro button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.75) 50%,
        transparent 70%
    );
    z-index: 2;
    pointer-events: none;
    transition: none;
}

/* --- Animación en Bucle para el Botón --- */
@keyframes brilloConstante {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}