/* ===================================================
   DESARROLLADORA METEPEC - ESTILOS BASE - QUANTUM TOV
   =================================================== */
:root {
    --color-primary: #8C1D18;
    --color-primary-hover: #6E130F;
    --color-dark: #2C221E;
    --color-text: #4A3E39;
    --color-light-bg: #FDFBF9;
    --color-card-bg: #FFFFFF;
    --color-border: #E8E2DC;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-light-bg);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   AJUSTE DE LOGO - COMPATIBLE CON PINEGROW
   ========================================== */

/* Tamaño Base para Móviles */
.brand-logo .logo-img,
.brand-logo img {
    height: 80px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block;
}

/* Tamaño para Pantallas Grandes (PC) */
@media (min-width: 768px) {
    .brand-logo .logo-img,
    .brand-logo img {
        width: 150px !important;
        height: auto !important;
    }
}

/* ==========================================
   MENÚ HAMBURGUESA Y NAVEGACIÓN
   ========================================== */

.menu-icon {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
}

.menu-icon span {
    width: 100%;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 2px;
}

/* Estado responsivo */
@media (max-width: 767px) {
    .menu-icon {
        display: flex;
    }

    .nav-menu {
        display: none; /* Oculto por defecto en móvil */
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #D2D2D2;
        padding: 1rem 0;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    /* Clase que activa el menú vía JavaScript */
    .nav-menu.is-active {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .nav-menu {
        display: block !important;
    }
    
    .nav-menu ul {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        list-style: none;
    }
}

/* ==========================================
   LAYOUT Y ESTRUCTURA DE FICHA DE PROPIEDAD
   ========================================== */

.property-container {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.property-title-section {
    margin-bottom: 1.5rem;
}

.property-title-section h1 {
    color: var(--color-dark);
    font-size: 2.2rem;
    font-weight: 700;
}

/* Layout a 3 Columnas */
.property-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 0.9fr;
    gap: 1.5rem;
}

.col-media,
.col-specs,
.col-cta {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Embed Rápido / Iframe Responsivo */
.responsive-iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 8px;
    margin-bottom: 1rem;
}

.responsive-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Ficha Técnica */
.specs-list {
    list-style: none;
}

.specs-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
}

.specs-list li:last-child {
    border-bottom: none;
}

/* Tarjeta CTA Sticky */
.sticky-cta {
    position: sticky;
    top: 90px;
}

.price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 0.9rem;
    border-radius: 8px;
    font-weight: 700;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

/* Secciones Inferiores */
.full-width-section {
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.section-heading {
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 0.3rem;
}

/* FAQ Acordeón */
.faq-item {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    padding: 1rem 1.2rem;
}

.faq-question {
    font-weight: 700;
    color: var(--color-dark);
}

.faq-answer {
    margin-top: 0.5rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

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

/* Adaptación para Tablets y Pantallas Medianas */
@media (max-width: 992px) {
    .property-grid {
        grid-template-columns: 1fr;
    }

    .sticky-cta {
        position: static;
    }
}

/* ===================================================
                QUANTUM TOV - ERIKA G
   =================================================== */