/* ============================================================
   PROYECTOS PAGE — Grupo OPA
   Theme accent: Orange (#fba919), matching Grupo OPA main brand.
   Motivo diferenciador: retícula tipo plano arquitectónico en el hero,
   tarjeta editorial para el proyecto destacado y badges de estado.
   ============================================================ */

:root {
    --proy-accent: #fba919;
    --proy-accent-hover: #ffb833;
    --proy-dark: #0a0e17;
    --proy-darker: #06080d;
    --proy-rust: #b0521f;
    --proy-green: #2ea86c;
}

/* ── HERO ── */
/* Fondo: la foto "proyectos.png" muestra el plano de una vivienda a la
   izquierda y su render terminado a la derecha — encaja directo con el
   titular "Del plano a tu próximo hogar". */
.proy-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 0 60px;
    background:
        linear-gradient(100deg, rgba(10,14,23,0.95) 0%, rgba(10,14,23,0.82) 32%, rgba(10,14,23,0.4) 62%, rgba(10,14,23,0.15) 100%),
        url('../img/proyectos.png') center 42% / cover no-repeat;
    overflow: hidden;
}

.proy-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(251,169,25,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251,169,25,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 40%, transparent 68%);
    mask-image: linear-gradient(100deg, #000 0%, #000 40%, transparent 68%);
    pointer-events: none;
}

.proy-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to top, var(--proy-darker), transparent);
    pointer-events: none;
}

.proy-hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding-top: 130px;
    padding-bottom: 70px;
}

.proy-tag {
    display: inline-block;
    color: var(--proy-accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.proy-hero-content h1 {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 22px;
    color: #ffffff;
}

.proy-hero-content .lead {
    font-size: 1.1rem;
    color: #cbd0d6;
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 44px;
}

.proy-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 28px;
}

.proy-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proy-hero-stat .num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--proy-accent);
    line-height: 1;
}

.proy-hero-stat .label {
    font-size: 0.82rem;
    color: #a0aab2;
    letter-spacing: 0.3px;
}

/* ── SECCIONES DE CATEGORÍA ── */
.proy-section {
    background-color: var(--proy-darker);
    padding: 90px 60px;
}

.proy-section-alt {
    background-color: #0f1420;
}

.proy-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.proy-cat-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 44px;
}

.proy-cat-index {
    font-size: 2.4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(251,169,25,0.5);
    line-height: 1;
    flex-shrink: 0;
}

.proy-cat-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.proy-cat-header p {
    color: #a0aab2;
    font-size: 0.98rem;
}

/* ── TARJETA DESTACADA (proyecto en ejecución) ── */
.proy-feature-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background-color: #10151f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    overflow: hidden;
}

.proy-feature-img {
    position: relative;
    min-height: 380px;
}

.proy-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proy-status {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10,14,23,0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 8px 16px;
    border-radius: 50px;
}

.proy-status i { font-size: 0.5rem; }

.proy-status-activo i {
    color: var(--proy-green);
    animation: proyPulse 1.8s ease-in-out infinite;
}

@keyframes proyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.proy-feature-body {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proy-feature-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--proy-accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.proy-feature-body h3 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
}

.proy-feature-body > p {
    color: #b7bcc4;
    line-height: 1.7;
    margin-bottom: 28px;
}

.proy-feature-facts {
    display: flex;
    gap: 28px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.proy-fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.proy-fact-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
}

.proy-fact-label {
    font-size: 0.78rem;
    color: #8b929c;
}

.proy-feature-body .btn-solid {
    align-self: flex-start;
}

/* ── ESTADO VACÍO (proyectos realizados) ── */
.proy-empty-state {
    background-color: #10151f;
    border: 1px dashed rgba(251,169,25,0.35);
    border-radius: 18px;
    padding: 60px 40px;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.proy-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(251,169,25,0.1);
    color: var(--proy-accent);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proy-empty-state h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.proy-empty-state p {
    color: #a0aab2;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── CTA BANNER (mismo patrón que Nosotros) ── */
.cta-banner-section {
    background: linear-gradient(135deg, var(--proy-accent) 0%, #d89200 100%);
    padding: 60px;
}

.cta-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta-banner-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--proy-dark);
    margin-bottom: 6px;
}

.cta-banner-text p {
    font-size: 1rem;
    color: rgba(10,14,23,0.7);
}

.cta-banner-btn {
    background-color: var(--proy-dark) !important;
    color: #ffffff !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-banner-btn:hover {
    background-color: #1a2030 !important;
    transform: translateY(-2px);
}

/* ── SCROLL REVEAL (mismo patrón que las demás páginas) ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .proy-hero-content h1 { font-size: 2.6rem; }

    .proy-feature-card {
        grid-template-columns: 1fr;
    }

    .proy-feature-img { min-height: 280px; }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .proy-hero {
        padding: 0 24px;
        min-height: 60vh;
    }

    .proy-hero-content {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .proy-hero-content h1 { font-size: 2rem; }
    .proy-hero-content .lead { font-size: 1rem; }

    .proy-hero-stats { gap: 24px; }

    .proy-section {
        padding: 60px 24px;
    }

    .proy-cat-header {
        flex-direction: column;
        gap: 10px;
    }

    .proy-cat-header h2 { font-size: 1.5rem; }

    .proy-feature-body {
        padding: 28px 24px;
    }

    .proy-feature-body h3 { font-size: 1.5rem; }

    .proy-feature-facts { gap: 20px; }

    .cta-banner-section { padding: 40px 24px; }
}
