
:root {
    --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --base-font-size: 16px;
    --p1: #1c4f8a;
    --p2: #c8a96e;
    --nav: #0f2744;
    --primary: #1c4f8a;
    --primary-light: #1c4f8a20;
    --primary-dark: #1c4f8acc;
    --secondary: #c8a96e;
    --text-dark: #1a2a3a;
    --text-gray: #6c757d;
    --bg-light: #f7f9fc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

body {
    background-color: #fcfcfd;
    overflow-x: hidden;
    font-family: var(--font-body);
    line-height: 1.6;
}

body, p, span, li, button, input, textarea {
    font-family: var(--font-body);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   ANIMACIONES REVEAL
============================================ */
.reveal-item, .reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-item {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-up {
    transform: translateY(30px);
}

.visible {
    opacity: 1 !important;
    transform: translate(0) !important;
}

.img-hover:hover {
    transform: scale(1.1);
}

.btn-ver:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    filter: brightness(1.1);
}

/* ============================================
   EDIFICIOS SHOWCASE (HERO)
============================================ */
.edificios-showcase {
    display: flex;
    height: 90vh;
    min-height: 650px;
    max-height: 950px;
    width: 100%;
}

.edificio-panel {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,.08);
    transition: flex 0.65s cubic-bezier(0.4,0,0.2,1);
}

.edificio-panel:last-child {
    border-right: none;
}

.edificio-panel .ep-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .65s ease, filter .65s ease;
    filter: brightness(.55);
    z-index: 0;
}

.edificios-showcase:hover .edificio-panel {
    flex: 0.4;
}

.edificios-showcase:hover .edificio-panel:hover {
    flex: 5;
}

.edificios-showcase:hover .edificio-panel:not(:hover) .ep-img {
    filter: brightness(.2);
}

.edificios-showcase:hover .edificio-panel:hover .ep-img {
    filter: brightness(.6);
    transform: scale(1.04);
}

.ep-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity .6s;
}

.edificio-panel:hover .ep-video {
    opacity: 1;
}

.ep-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,rgba(0,0,0,.88),rgba(0,0,0,.15) 50%,transparent);
    z-index: 2;
}

.ep-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    z-index: 3;
}

.ep-num {
    font-family: var(--font-heading);
    font-size: clamp(28px,5vw,56px);
    font-weight: 900;
    color: rgba(255,255,255,.35);
    line-height: 1;
    margin-bottom: 6px;
    transition: all .5s;
    letter-spacing: -1px;
}

.edificio-panel:hover .ep-num {
    color: rgba(255,255,255,.1);
    font-size: clamp(40px,7vw,80px);
}

.ep-titulo {
    font-family: var(--font-heading);
    font-size: clamp(11px,1.5vw,15px);
    font-weight: 700;
    color: rgba(255,255,255,.9);
    text-transform: uppercase;
    letter-spacing: .14em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    margin-bottom: 6px;
    transition: all .4s;
}

.edificio-panel:hover .ep-titulo {
    writing-mode: horizontal-tb;
    transform: rotate(0);
    font-size: clamp(16px,2vw,22px);
    letter-spacing: .06em;
    color: #fff;
}

.ep-sub {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,.6);
    opacity: 0;
    transform: translateY(8px);
    transition: all .35s .1s;
    margin-bottom: 14px;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edificio-panel:hover .ep-sub {
    opacity: 1;
    transform: translateY(0);
}

.ep-estado {
    font-family: var(--font-body);
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .1em;
    z-index: 4;
    opacity: 0;
    transition: opacity .3s;
}

.edificio-panel:hover .ep-estado {
    opacity: 1;
}

/* ============================================
   MODERN PROJECTS GRID
============================================ */
.modern-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.modern-project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.modern-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 39, 68, 0.12);
    border-color: var(--primary);
}

.mpc-image-wrap {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--primary);
}

.mpc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-project-card:hover .mpc-image {
    transform: scale(1.08);
}

.mpc-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255,255,255,0.3);
}

.mpc-type-badge,
.mpc-status-badge {
    position: absolute;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.mpc-type-badge {
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.75);
    color: white;
    backdrop-filter: blur(8px);
}

.mpc-status-badge {
    top: 16px;
    right: 16px;
    color: white;
}

.mpc-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.4) 60%, transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    z-index: 1;
}

.mpc-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.mpc-body {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mpc-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
}

.mpc-meta i {
    color: var(--p2);
    font-size: 16px;
}

.mpc-summary {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
    border-left: 3px solid var(--p2);
}

.mpc-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.mpc-price-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mpc-price-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #9ca3af;
}

.mpc-price-value {
    font-size: 22px;
    font-weight: 800;
}

.mpc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mpc-btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.mpc-btn-primary {
    color: white;
}

.mpc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

.mpc-btn-secondary {
    background: #f3f4f6;
    color: var(--primary);
}

.mpc-btn-secondary:hover {
    background: #e5e7eb;
}

/* Empty state */
.empty-grid-state {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}

.empty-grid-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-grid-state p {
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
}

/* ============================================
   BANNER POPUP
============================================ */
.banner-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.banner-popup-inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: #0a0a0a;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,.6);
    animation: bannerSlideUp .45s cubic-bezier(0.34,1.2,0.64,1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.banner-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 30;
    background: rgba(0,0,0,.7);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all .2s;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.banner-close:hover {
    background: rgba(0,0,0,.95);
    transform: scale(1.08);
}

.banner-image-container {
    width: 100%;
    height: 65vh;
    min-height: 400px;
    overflow: hidden;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #0a0a0a;
}

.banner-text-container {
    background: #0a0a0a;
    padding: 35px 40px 45px;
    text-align: center;
}

.banner-titulo {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: var(--p2);
}

.banner-subtitulo {
    font-family: var(--font-heading);
    font-size: clamp(28px,5vw,48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.banner-descripcion {
    font-family: var(--font-body);
    font-size: 16px;
    color: rgba(255,255,255,.75);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.banner-boton {
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--p2);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .3s;
    text-decoration: none;
}

.banner-boton:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,.4);
}

@keyframes bannerSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   QUIÉNES SOMOS
============================================ */
.qs-section {
    background: #fff;
    padding: 100px 0;
}

.qs-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.qs-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.qs-anios {
    background: #f8f9fb;
    padding: 30px 35px;
    border-left: 4px solid var(--p2);
}

/* ============================================
   POR QUÉ ELEGIRNOS
============================================ */
.porque-section {
    background: #fff;
    padding: 100px 0;
}

.porque-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}

.porque-header {
    text-align: center;
    margin-bottom: 60px;
}

.porque-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.porque-imagen-wrap {
    flex: 3;
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    background: #fff;
    position: relative;
}

.porque-main-img {
    width: 100%;
    min-height: 700px;
    object-fit: cover;
    display: block;
    transition: opacity .2s;
}

.porque-thumbs {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.porque-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all .2s;
}

.porque-thumb.active {
    border-color: #fff;
}

.porque-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.porque-items {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.porque-item {
    background: #fff;
    border-radius: 20px;
    padding: 28px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: all .3s ease-in-out;
    cursor: pointer;
}

.porque-item:hover {
    transform: translateX(8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.porque-item-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.porque-item-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.porque-item-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--p1);
    margin: 0;
    line-height: 1.3;
}

.porque-item-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 0 70px;
}

.porque-item-line {
    width: 40px;
    height: 2px;
    background: var(--p2);
    border-radius: 2px;
    margin-top: 15px;
    margin-left: 70px;
    transition: width .3s;
}

.porque-item:hover .porque-item-line {
    width: 60px;
}

.porque-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 30px;
}

.porque-grid-item {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: transform .3s;
}

.porque-grid-item:hover {
    transform: translateY(-5px);
}

/* ============================================
   CONTACTO
============================================ */
.index-contacto-wrap {
    padding: 60px 28px;
    background: #f0f2f5;
}

.contact-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 24px;
    padding: 2rem;
    color: white;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0.5rem 0;
    line-height: 1.2;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.detail-icon {
    font-size: 1rem;
    width: 32px;
    text-align: center;
}

.detail-title {
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    opacity: 0.8;
}

.detail-description {
    font-size: 0.85rem;
    font-weight: 500;
}

.form-panel {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-input,
.textarea-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #e9ecef;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.text-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.textarea-input {
    resize: vertical;
    min-height: 80px;
}

.submit-button {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (hover: none) {
    .edificios-showcase:hover .edificio-panel {
        flex: 1;
    }

    .edificio-panel .ep-img {
        filter: brightness(.4);
    }

    .ep-titulo {
        writing-mode: horizontal-tb !important;
        transform: rotate(0) !important;
        font-size: 15px !important;
    }

    .ep-sub, .ep-ver, .ep-estado {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 1024px) {
    .modern-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .banner-image-container {
        height: 55vh !important;
    }

    .porque-main-img {
        min-height: 500px !important;
    }
}

@media (max-width: 768px) {
    .edificios-showcase {
        flex-direction: column;
        height: auto;
    }

    .edificio-panel {
        height: 220px;
        flex: unset !important;
    }

    .edificio-panel .ep-img {
        filter: brightness(.4);
    }

    .ep-titulo {
        writing-mode: horizontal-tb !important;
        transform: rotate(0) !important;
        font-size: 15px !important;
    }

    .ep-sub, .ep-ver, .ep-estado {
        opacity: 1 !important;
        transform: none !important;
    }

    .ep-num {
        font-size: 32px;
    }

    .modern-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mpc-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .mpc-actions {
        width: 100%;
    }

    .mpc-btn {
        flex: 1;
        justify-content: center;
    }

    .banner-popup-inner {
        max-width: 95%;
        max-height: 92vh;
    }

    .banner-image-container {
        height: 40vh;
        min-height: 220px;
    }

    .banner-text-container {
        padding: 25px 25px 35px;
    }

    .banner-subtitulo {
        font-size: clamp(24px,6vw,36px);
        margin-bottom: 15px;
    }

    .banner-descripcion {
        font-size: 14px;
        margin-bottom: 22px;
        max-width: 95%;
    }

    .banner-boton {
        padding: 11px 28px;
        font-size: 13px;
    }

    .banner-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .qs-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .porque-layout {
        flex-direction: column;
    }

    .porque-imagen-wrap {
        flex: 1;
    }

    .porque-main-img {
        min-height: 400px !important;
    }

    .index-contacto-wrap {
        padding: 40px 16px;
    }

    .contact-section {
        padding: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .banner-image-container {
        height: 30vh;
        min-height: 180px;
    }

    .banner-text-container {
        padding: 20px 18px 28px;
    }

    .banner-subtitulo {
        font-size: clamp(22px,5vw,28px);
    }

    .banner-descripcion {
        font-size: 12px;
    }

    .banner-boton {
        padding: 10px 22px;
        font-size: 12px;
    }

    .banner-close {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .contact-section {
        padding: 1.25rem;
    }

    .detail-card {
        width: 100%;
    }

    .form-panel {
        padding: 1rem;
    }

    .text-input,
    .textarea-input {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .submit-button {
        padding: 0.7rem;
        font-size: 0.8rem;
    }
}