/* --- Variables de Diseño: Dark Luxury Real Estate --- */
:root {
    --bg-dark: #0f0f11; 
    --bg-card: #1c1c1f; 
    --text-main: #f5f5f7; 
    --text-muted: #a1a1a6; 
    --accent-start: #c5a059; 
    --accent-end: #e3c588; 
    --gradient-primary: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 100%);
    --font-family: 'Space Grotesk', sans-serif;
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* --- TEXTURA DE RUIDO LIGERA --- */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 99998; opacity: 0.02; /* Reducido al mínimo para no parecer arena */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- SCROLLBAR DE LUJO --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-start); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-end); }

/* --- Reset Básico y Tipografía --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-family); scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; cursor: none; }

/* --- PRELOADER --- */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-dark); z-index: 999999; display: flex; justify-content: center; align-items: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
.preloader.fade-out { opacity: 0; visibility: hidden; }
.preloader-logo { font-size: 48px; font-weight: 700; color: var(--text-main); animation: pulse 2s infinite alternate; }
.preloader-logo .logo-prefix { background: var(--gradient-primary); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes pulse { 0% { transform: scale(0.95); opacity: 0.7; filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.2)); } 100% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 20px rgba(197, 160, 89, 0.6)); } }

/* --- Clases Globales --- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 36px; margin-bottom: 15px; color: var(--text-main); font-weight: 700; }
.section-header p { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* --- SMART HEADER --- */
header { background: rgba(15, 15, 17, 0.7); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: var(--border-glass); box-shadow: 0 4px 20px rgba(0,0,0,0.3); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.logo-container { font-weight: 700; font-size: 20px; letter-spacing: -0.5px; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; }
.logo-prefix { background: var(--gradient-primary); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 28px; font-weight: 700; }
.logo-name { grid-column: 2; color: var(--text-main); }
.logo-subtitle { grid-column: 2; font-size: 11px; font-weight: 500; color: var(--accent-start); letter-spacing: 1px; text-transform: uppercase; }
nav ul { list-style: none; display: flex; gap: 30px; }
nav a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 13px; letter-spacing: 1px; transition: 0.3s; cursor: none; }
nav a:hover { color: var(--accent-start); }

/* --- Sección Hero y Fondo Aurora Boreal --- */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; position: relative; overflow: hidden; background-color: var(--bg-dark); }
.aurora-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; filter: blur(80px); opacity: 0.4; }
.aurora-blob { position: absolute; border-radius: 50%; animation: drift 20s infinite alternate ease-in-out; }
.aurora-1 { width: 60vw; height: 60vw; background: rgba(197, 160, 89, 0.3); top: -20%; left: -10%; }
.aurora-2 { width: 50vw; height: 50vw; background: rgba(227, 197, 136, 0.15); bottom: -10%; right: -10%; animation-delay: -5s; animation-duration: 25s; }
.aurora-3 { width: 40vw; height: 40vw; background: rgba(255, 255, 255, 0.05); top: 30%; left: 40%; animation-delay: -10s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10%, 15%) scale(1.2); } }

.hero-content { max-width: 800px; z-index: 1; position: relative; }
.led-title { font-size: 56px; font-weight: 700; line-height: 1.1; margin-bottom: 25px; color: #ffffff; letter-spacing: -1px; }

/* EFECTO TYPEWRITER CSS */
.dynamic-text { background: var(--gradient-primary); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; transition: opacity 0.5s ease, transform 0.5s ease; }
.dynamic-text.fade-out { opacity: 0; transform: translateY(10px); }
.dynamic-text.fade-in { opacity: 1; transform: translateY(0); }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; font-weight: 300; }

/* BOTÓN MAGNÉTICO */
.button-wrapper { display: inline-block; padding: 20px; }
.btn { display: inline-block; padding: 16px 35px; text-decoration: none; border-radius: 4px; font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease; border: none; will-change: transform; cursor: none; }
.btn-primary { background: var(--gradient-primary); color: #121214; box-shadow: 0 8px 20px rgba(197, 160, 89, 0.15); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(197, 160, 89, 0.4); color: #000; }

/* --- CINTA INFINITA (MARQUEE) --- */
.marquee-container { width: 100%; overflow: hidden; background: var(--bg-card); padding: 20px 0; border-top: var(--border-glass); border-bottom: var(--border-glass); white-space: nowrap; display: flex; align-items: center; }
.marquee-content { display: inline-block; animation: marquee 25s linear infinite; color: var(--text-muted); font-weight: 500; letter-spacing: 2px; font-size: 14px; }
.marquee-content span { margin: 0 20px; }
.marquee-content .separator { color: var(--accent-start); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Sección de Estadísticas --- */
.stats { display: flex; justify-content: center; gap: 80px; padding: 60px 5%; background: var(--bg-dark); }
.stat-box { text-align: center; }
.stat-number-wrapper { display: flex; justify-content: center; align-items: center; font-size: 56px; font-weight: 700; margin-bottom: 5px; }
.counter { background: var(--gradient-primary); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.plus { color: var(--accent-start); margin-left: 5px; }
.stat-box p { color: var(--text-muted); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; }

/* =========================================
   DISEÑO ESTILO APPLE: BENTO GRID
   ========================================= */
.services-section { padding: 100px 5%; background: var(--bg-dark); }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-item {
    background: rgba(28, 28, 31, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px; /* Esquinas muy redondeadas estilo Apple */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: left;
    box-shadow: var(--shadow-soft);
}

.bento-large { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-small { grid-column: span 1; }

.bento-item::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(197, 160, 89, 0.15) 0%, transparent 50%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 0;
}
.bento-item:hover::before { opacity: 1; }
.bento-item:hover { border-color: rgba(197, 160, 89, 0.3); box-shadow: var(--shadow-hover); }

.bento-item > * { position: relative; z-index: 1; }
.bento-item .icon { margin-bottom: 20px; display: inline-flex; transform: translateZ(30px); }
.bento-item .icon svg { transition: all 0.3s ease; width: 48px; height: 48px; }
.bento-item:hover .icon svg { transform: scale(1.1) translateZ(40px); filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.5)); }
.bento-item h3 { font-size: 24px; margin-bottom: 12px; color: var(--text-main); transform: translateZ(20px); font-weight: 700; letter-spacing: -0.5px;}
.bento-item p { color: var(--text-muted); font-size: 15px; font-weight: 300; transform: translateZ(10px); }


/* --- Sección de Proceso --- */
.process-section { padding: 100px 5%; background: var(--bg-dark); }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.process-step { padding: 30px; position: relative; border-left: 2px solid rgba(197, 160, 89, 0.2); transition: 0.3s; }
.process-step:hover { border-left-color: var(--accent-start); background: linear-gradient(90deg, rgba(197, 160, 89, 0.05) 0%, transparent 100%); }
.step-number { font-size: 48px; font-weight: 700; color: rgba(197, 160, 89, 0.1); margin-bottom: 10px; line-height: 1; }
.process-step h3 { font-size: 18px; color: var(--text-main); margin-bottom: 15px; }
.process-step p { color: var(--text-muted); font-size: 14px; font-weight: 300; }

/* --- Cuadrícula de Propiedades --- */
.featured-properties { padding: 100px 5%; background: var(--bg-card); border-top: var(--border-glass); border-bottom: var(--border-glass); }
.property-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.property-card { background: var(--bg-dark); border: var(--border-glass); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); position: relative; transform-style: preserve-3d; }
.property-card:hover { box-shadow: var(--shadow-hover); border-color: rgba(197, 160, 89, 0.2); }

/* Spotlight para propiedades */
.property-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(197, 160, 89, 0.15) 0%, transparent 50%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 0;
}
.property-card:hover::before { opacity: 1; }
.property-card > * { position: relative; z-index: 1; }

.property-placeholder { background: #252529; height: 220px; display: flex; align-items: center; justify-content: center; font-size: 40px; position: relative; border-bottom: var(--border-glass); transform: translateZ(10px); }
.type-tag { position: absolute; bottom: 15px; right: 15px; font-size: 11px; text-transform: uppercase; background: rgba(18, 18, 20, 0.9); padding: 6px 12px; border-radius: 4px; color: var(--accent-start); font-weight: 700; border: 1px solid rgba(197, 160, 89, 0.3); }
.card-details { padding: 30px; transform: translateZ(20px); }
.property-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-main); }
.specs { font-size: 14px; color: var(--text-muted); margin-bottom: 25px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: var(--border-glass); padding-top: 20px; transform: translateZ(30px); }
.UF-price { font-size: 20px; font-weight: 700; color: var(--accent-start); }
.btn-sm { text-decoration: none; font-size: 12px; color: var(--text-main); background: #2a2a2e; border: var(--border-glass); padding: 10px 18px; border-radius: 4px; font-weight: 500; display: inline-block; transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, background 0.3s ease; cursor: none; }
.btn-glow-sm:hover { background: var(--gradient-primary); color: #121214; border-color: transparent; box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2); }

/* --- Sección Testimonios --- */
.testimonials { padding: 100px 5%; background: var(--bg-dark); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.testi-card { background: var(--bg-card); border: var(--border-glass); padding: 40px 30px; border-radius: 12px; position: relative; box-shadow: var(--shadow-soft); transform-style: preserve-3d; }
.testi-card:hover { border-color: rgba(197, 160, 89, 0.3); box-shadow: var(--shadow-hover); }
.testi-card::before { content: '"'; position: absolute; top: 10px; left: 20px; font-size: 80px; color: rgba(197, 160, 89, 0.1); font-family: serif; transform: translateZ(10px); }
.stars { color: var(--accent-start); font-size: 18px; margin-bottom: 15px; transform: translateZ(20px); }
.testi-card p { color: var(--text-muted); font-size: 15px; font-style: italic; margin-bottom: 20px; position: relative; z-index: 2; transform: translateZ(30px); }
.testi-card h4 { color: var(--text-main); font-size: 14px; font-weight: 700; transform: translateZ(20px); }

/* --- FAQ --- */
.faq-section { padding: 100px 5%; background: var(--bg-card); border-top: var(--border-glass); border-bottom: var(--border-glass); }
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--bg-dark); border: var(--border-glass); border-radius: 12px; overflow: hidden; transition: 0.3s; box-shadow: var(--shadow-soft); }
.faq-glow:hover { border-color: rgba(197, 160, 89, 0.3); }
.faq-question { width: 100%; background: transparent; border: none; padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); font-size: 16px; font-weight: 500; cursor: none; text-align: left; outline: none; }
.faq-icon { font-size: 24px; color: var(--accent-start); transition: transform 0.3s ease; font-weight: 300; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--accent-end); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #18181b; }
.faq-answer p { padding: 0 25px 25px 25px; color: var(--text-muted); font-size: 14px; font-weight: 300; line-height: 1.6; }

/* --- Contacto --- */
.contact { padding: 100px 5%; display: flex; justify-content: center; background: var(--bg-dark); }
.contact-box { background: rgba(28, 28, 31, 0.6); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: var(--border-glass); padding: 60px; border-radius: 24px; max-width: 700px; width: 100%; text-align: center; box-shadow: var(--shadow-hover); position: relative; z-index: 1;}
.contact-box h2 { font-size: 32px; margin-bottom: 10px; color: var(--text-main); }
.contact-box p { color: var(--text-muted); margin-bottom: 40px; }
form { display: flex; flex-direction: column; gap: 20px; }
.input-group { display: flex; gap: 20px; }
input, textarea, select { width: 100%; padding: 15px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: var(--text-main); font-size: 14px; transition: 0.3s; appearance: none; cursor: none; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-start); background: rgba(0,0,0,0.4); box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.15); }
.service-select { background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23c5a059%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 12px auto; }
select option { background-color: var(--bg-card); color: var(--text-main); padding: 10px; }
.btn-form { background: var(--gradient-primary); color: #121214; font-size: 16px; padding: 18px; border-radius: 8px; font-weight: bold; border: none; transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease; will-change: transform; cursor: none; }
.btn-glow-form:hover:not(:disabled) { box-shadow: 0 12px 30px rgba(197, 160, 89, 0.35); }
.btn-glow-form:disabled { background: #333; color: #666; box-shadow: none; transform: none !important; }

/* Mensaje Éxito */
.hidden { display: none !important; }
.success-message { background: rgba(16, 185, 129, 0.05); border: 1px solid rgba(16, 185, 129, 0.3); padding: 40px 30px; border-radius: 8px; margin-bottom: 20px; animation: fadeIn 0.6s ease-out forwards; }
.success-icon { margin-bottom: 15px; animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.success-icon svg { stroke: var(--accent-start); }
.success-message h3 { color: var(--accent-start); font-size: 24px; margin-bottom: 10px; }
.success-message p { color: var(--text-main); font-size: 15px; margin-bottom: 0; }

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25d366; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 99999; animation: pulse-wa 2s infinite; transition: transform 0.3s ease; cursor: none; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* --- REVEAL --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- CURSOR MAGNÉTICO --- */
.custom-cursor { position: fixed; width: 24px; height: 24px; border: 2px solid var(--accent-start); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, border-color 0.3s ease; z-index: 999999; mix-blend-mode: difference; display: block; }
.cursor-grow { width: 60px; height: 60px; background-color: rgba(197, 160, 89, 0.15); border-color: rgba(197, 160, 89, 0.8); backdrop-filter: blur(2px); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }

/* --- Footer --- */
footer { background: #080809; color: #fff; border-top: 1px solid rgba(255,255,255,0.02); }
.footer-bottom { padding: 30px 5%; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); }
.developer-credit { margin-top: 10px; font-size: 13px; }
.developer-credit a { color: var(--accent-start); text-decoration: none; font-weight: 700; transition: all 0.3s ease; cursor: none; }
.developer-credit a:hover { color: var(--text-main); }

/* --- Responsive --- */
@media (max-width: 768px) {
    body, a, button, select, input, textarea, .faq-question { cursor: auto !important; } 
    .custom-cursor { display: none !important; }
    .tilt-card { transform: none !important; } 
    .tilt-card::before { display: none !important; }
    .magnetic-btn { transform: none !important; } 
    
    /* Bento Grid a 1 columna en móvil */
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-tall, .bento-small { grid-column: span 1; grid-row: span 1; }

    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .whatsapp-float svg { width: 25px; height: 25px; }
    .led-title { font-size: 36px; }
    header { padding: 15px 20px; flex-direction: column; gap: 15px; position: relative; transform: none !important; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .input-group { flex-direction: column; gap: 20px; }
    .contact-box { padding: 30px; }
    .stats { flex-direction: column; gap: 40px; }
    .section-header h2 { font-size: 28px; }
    .faq-question { font-size: 14px; padding: 15px 20px; }
    .aurora-bg { filter: blur(50px); opacity: 0.2; } 
}