/* =========================================
   1. CONFIGURACIÓN BASE Y TIPOGRAFÍA
   ========================================= */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #000000; 
    color: #e5e5e5; 
    overflow-x: hidden; 
    letter-spacing: 0.02em; 
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* Ajuste para que el scroll se detenga antes de la sección al usar links */
section { scroll-margin-top: 70px; } 

.number-accent { color: #10b981; font-weight: 700; }

/* =========================================
   2. NAVBAR Y CONTENEDORES
   ========================================= */
#main-nav {
    transition: all 0.4s ease;
}

.glass-container {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: visible !important; 
}

.map-dark {
    filter: contrast(1.08) saturate(1.05);
}

/* =========================================
   3. PLANO INTERACTIVO (Lotes y Caminos)
   ========================================= */
.lote { 
    transition: all 0.4s ease; 
    cursor: pointer; 
    fill: transparent !important; 
    stroke-width: 0.5;
}

/* Colores de las líneas iniciales (Wireframe) */
.lote.disponible { stroke: rgba(255, 255, 255, 0.55); }
.lote.vendido { stroke: rgba(220, 38, 38, 0.7); }
.lote.reservado { stroke: rgba(251, 191, 36, 0.7); }
.lote.tramite { stroke: rgba(6, 182, 212, 0.7); }

/* Estilo especial para el Camino */
.camino-interactivo { 
    fill: rgba(255, 255, 255, 0.05) !important; 
    stroke: rgba(255, 255, 255, 0.2); 
    pointer-events: auto;
    transition: all 0.4s ease;
}

/* EFECTOS HOVER: Relleno con transparencia (0.75) */
.lote:hover { 
    stroke-width: 1.5;
    stroke: #ffffff !important;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    z-index: 50;
}

.lote.disponible:hover { fill: rgba(255, 255, 255, 0.75) !important; }
.lote.vendido:hover { fill: rgba(220, 38, 38, 0.75) !important; stroke: #ff4d4d !important; }
.lote.reservado:hover { fill: rgba(251, 191, 36, 0.75) !important; stroke: #fbbf24 !important; }
.lote.tramite:hover { fill: rgba(6, 182, 212, 0.75) !important; stroke: #22d3ee !important; }

.camino-interactivo:hover {
    fill: rgba(255, 255, 255, 0.12) !important;
    stroke: rgba(255, 255, 255, 0.4);
}

/* =========================================
   4. IMAGEN SATELITAL (Fondo sutilmente más claro)
   ========================================= */
#satelital-bg {
    /* Difuminado de bordes */
    mask-image: radial-gradient(circle, black 40%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 95%);
    /* Opacidad y Brillo ajustados ligeramente al alza */
    opacity: 0.55; 
    filter: brightness(0.7) contrast(1.1);
}

/* =========================================
   5. TOOLTIP PREMIUM (Tarjeta informativa)
   ========================================= */
#lote-tooltip {
    position: fixed;
    display: none;
    background: rgba(0, 0, 0, 0.8);
    color: #f9fafb;
    padding: 24px;
    border-radius: 0px;
    font-size: 13px;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#lote-tooltip.lote-tooltip--touch {
    padding: 10px 14px;
    font-size: 10px;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%);
    min-width: 140px;
    max-width: 85vw;
}

/* =========================================
   6. MENÚ MÓVIL (Full Screen)
   ========================================= */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10001;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.active {
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu.active .mobile-menu__backdrop {
    opacity: 1;
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    padding: 100px 40px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.mobile-menu__link {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    display: block;
    padding: 8px 0;
    margin: 0;
    text-align: center;
    border-bottom: none;
    transition: color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    width: 100%;
    max-width: 260px;
}

.mobile-menu__link--active {
    color: #10b981;
}

.mobile-menu__link:hover {
    color: #10b981;
}

.mobile-menu__close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   7. MODAL DE ÉXITO FORMULARIO
   ========================================= */
#contact-success-modal {
    display: none;
}
#contact-success-modal.flex {
    display: flex;
}