/*=============================================================================*/
/* PROYECTOS.CSS - HOJA DE ESTILOS 100% INDEPENDIENTE Y COMPLETA               */
/* Mantiene la esencia de empresa.css con secciones propias de proyectos       */
/*=============================================================================*/

:root {
    --clr-dark: #111112;          /* Negro mate arquitectónico */
    --clr-light: #F7F7F9;         /* Blanco humo suave */
    --clr-white: #FFFFFF;
    --clr-accent: #969591;        /* Color Gris/Plata corporativo */
    --clr-accent-hover: #77686c;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= RESET GENERAL ================= */
body {
    font-family: var(--font-body);
    color: #4a4a4e;
    background-color: var(--clr-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-dark);
    font-weight: 700;
}

.section-padding { padding: 100px 0; }
.max-w-custom { max-width: 650px; }
.text-accent { color: var(--clr-accent) !important; }

@media (max-width: 767px) {
    .section-padding { padding: 60px 0; }
}

.section-tag {
    color: var(--clr-accent);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
}
.tag-light { color: var(--clr-white); opacity: 0.6; }

.section-title {
    font-size: 32px;
    letter-spacing: -0.5px;
}
.section-desc {
    font-size: 16px;
    line-height: 1.8;
}

/* ================= NAVEGACIÓN ================= */
.modern-navbar {
    background-color: transparent;
    padding: 25px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-navbar.scrolled {
    background-color: rgba(17, 17, 18, 0.98);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom-color: transparent;
}

.navbar-logo {
    max-height: 80px;
    width: auto;
    transition: var(--transition);
}

@media (max-width: 767px) {
    .navbar-logo { max-height: 35px; }
}

.modern-navbar .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px !important;
    transition: var(--transition);
}
.modern-navbar .nav-link:hover, .modern-navbar .nav-link.active {
    color: var(--clr-white) !important;
}

.nav-cta-btn {
    background-color: var(--clr-accent);
    color: var(--clr-white) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}
.nav-cta-btn:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ================= CABECERA (HERO) DE PROYECTOS ================= */
.proyectos-hero {
    position: relative;
    padding: 180px 0 100px 0;
    background: linear-gradient(rgba(17, 17, 18, 0.85), rgba(17, 17, 18, 0.95)), url('../images/img19.png') no-repeat center center;
    background-size: cover;
    text-align: center;
    color: var(--clr-white);
}

@media (min-width: 992px) {
    /* Efecto parallax solo en escritorio para evitar saltos en móvil */
    .proyectos-hero { background-attachment: fixed; }
}

.proyectos-hero h1 {
    color: var(--clr-white);
}

/* ================= FILTROS DE LA GALERÍA ================= */
.filtros-proyectos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.filtro-btn {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--clr-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filtro-btn:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.filtro-btn.active {
    background-color: var(--clr-dark);
    border-color: var(--clr-dark);
    color: var(--clr-white);
}

/* ================= TARJETAS DE PROYECTO ================= */
.proyecto-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 360px;
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.08);
    cursor: pointer;
}

.proyecto-card img,
.proyecto-card .proyecto-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.proyecto-card:hover img,
.proyecto-card:hover .proyecto-video {
    transform: scale(1.08);
}

.proyecto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 17, 18, 0.92) 0%, rgba(17, 17, 18, 0.35) 45%, rgba(17, 17, 18, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition);
}

.proyecto-card:hover .proyecto-overlay {
    background: linear-gradient(to top, rgba(17, 17, 18, 0.95) 0%, rgba(17, 17, 18, 0.55) 55%, rgba(17, 17, 18, 0.15) 100%);
}

.proyecto-cat {
    color: var(--clr-accent);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.proyecto-card h4 {
    color: var(--clr-white);
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.proyecto-card p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition);
}

.proyecto-card:hover p {
    max-height: 80px;
    opacity: 1;
    margin-top: 4px;
}

.proyecto-item.is-hidden { display: none; }

/* ================= CONTADOR DE LOGROS ================= */
.stats-section {
    background-color: var(--clr-dark);
    color: var(--clr-white);
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-box h3 {
    color: var(--clr-white);
    font-size: 3rem;
    margin-bottom: 8px;
}

.stat-box .stat-accent {
    color: var(--clr-accent);
}

.stat-box span {
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    font-weight: 600;
}

/* ================= CTA FINAL ================= */
.cta-proyectos {
    background-color: var(--clr-light);
    border-radius: 1.5rem;
    padding: 70px 40px;
    text-align: center;
}

.cta-proyectos .nav-cta-btn { font-size: 15px; padding: 16px 36px; }

/* ================= FOOTER ================= */
.footer-dark {
    background-color: var(--clr-dark);
    color: rgba(255,255,255,0.5);
    padding: 40px 0;
}

.footer-logo-img {
    max-height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.footer-socials a { transition: var(--transition); text-decoration: none; }
.footer-socials a:hover { color: var(--clr-accent) !important; }
.footer-bottom-text { font-size: 13px; }
