:root {
    --primary-color: #0056A4;
    --secondary-color: #e54b1b;
    --text-color: #d8d8d8;
    --hover-claro: #a5a5a5;
    --background-hero: linear-gradient(to right, #0033ff, #6666ff);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container-galeria {
    display: flex;
    flex-direction: column;
}

.header-galeria {
    position: relative;
    height: 82vh;
    background: var(--background-hero);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5% 10%;
    overflow: hidden;
    z-index: 1;
    animation: gradientShift 10s ease infinite;
}

.header-galeria h1 {
    margin: 0;
    text-align: center;
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 80px;
    display: flex;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.8s forwards 0.5s;
    color: var(--text-color);
}

.header-galeria h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    max-width: 60%;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.8s forwards 0.8s;
}

.header-galeria p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 60%;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.8s forwards 0.8s;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    display: block;
}

.gallery-item .text-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    
}

.large-item {
    grid-column: span 2;
    height: 400px;
}

.full-width {
    grid-column: span 3;
    height: 500px;
}
.full-width img{
    height: 500px;
}



/* Responsividad */
@media screen and (max-width: 1024px) {
    .header-galeria h1 {
        font-size: 3rem;
    }
    
    .project-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .project-item {
        min-height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .header-galeria {
        padding: 5%;
        height: 80vh;
    }
    
    .header-galeria h1 {
        font-size: 2.5rem;
    }
    
    .header-galeria h2 {
        font-size: 1.5rem;
    }
    
    
    .project-intro h2 {
        font-size: 2rem;
    }
    
    .project-item h3 {
        font-size: 1.5rem;
    }
}

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }

    .large-item {
        grid-column: span 1;
    }

    .full-width {
        grid-column: span 2;
        height: 400px;
    }

    .full-width img,
    .gallery-item img {
        height: 300px;
    }

    .gallery-item .text-overlay {
        font-size: 1rem;
        bottom: 60px;
        left: 10px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
        height: auto;
    }

    .large-item,
    .full-width {
        grid-column: span 1;
        height: 250px;
    }

    .gallery-item img {
        height: 250px;
    }

    .gallery-item .text-overlay {
        font-size: 0.9rem;
        bottom: 5px;
        left: 5px;
    }
}

/***Seccion azul***/
.cotizar-blue-section {
    background-color: #0000FF;
    padding: 6rem 2rem;
    height: 400px;
}

.container-blue {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.section-title {
    color: white;
    font-size: 3.5rem;
    font-weight: bold;
    width: 60%;
}

.info-button {
    position: absolute;
    right: 0;
    top: 50%;
    background-color: var(--text-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 9999px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    text-decoration: none;
}

.info-button:hover {
    background-color: var(--hover-claro);
}

@media (max-width: 768px) {
    .cotizar-blue-section{
        height: auto;
    }
    .container-blue{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
        width: 100%;
    }

    .info-button {
        position: static;
        transform: none;
    }

    
}