
:root {
    --primary-blue: #004a99;
    --accent-yellow: #ffcc00;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-main: #2d3748;
    --text-muted: #000000;
    --shadow: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


.hero-page {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-page__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 74, 153, 0.5));
}

.hero-page__content {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.hero-page__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-page__subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}


.proyectos-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    cursor: pointer;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.filter-btn:hover, 
.filter-btn--active {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.3);
}


.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.proyecto-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.proyecto-card__image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.proyecto-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.proyecto-card:hover .proyecto-card__image img {
    transform: scale(1.1);
}

.proyecto-card__overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.proyecto-card__category {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
}

.proyecto-card__content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.proyecto-card__title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.proyecto-card__description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.proyecto-card__meta {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid #000000;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
}


.cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #002a5a 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta__description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn--light {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.btn--light:hover {
    background: var(--white);
    transform: scale(1.05);
}


.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 768px) {
    .hero-page__title { font-size: 2.5rem; }
    .proyectos-grid { grid-template-columns: 1fr; }
    .filter-btn { width: 100%; }
}

.proyectos-page__intro {
    text-align: center;      
    max-width: 900px;        
    margin: 0 auto 4rem;     
    padding: 0 1.5rem;       
}

.proyectos-page__intro .section__title {
    font-size: 3rem;        
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.proyectos-page__intro .section__description {
    font-size: 1.25rem;      
    color: #000000;         
    line-height: 1.8;        
}


@media (max-width: 768px) {
    .proyectos-page__intro .section__title {
        font-size: 2.2rem;   
    }
    
    .proyectos-page__intro .section__description {
        font-size: 1.1rem;
    }
}

.proyecto-card__description {
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}