/* =========================================
   AURA | LIQUID LUXURY STYLE (FINAL)
   ========================================= */

:root {
    --bg-dark: #0f1014;   /* Carbón Profundo */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: #a1a1aa;
    
    /* El Degradado AURA (Dorado a Violeta Sutil) */
    --gradient: linear-gradient(135deg, #d4af37, #a855f7); 
    --gold: #d4af37;

    --font-head: 'Cinzel', serif;
    --font-body: 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; /* Lenis maneja el scroll */ }

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- OPTIMIZACIÓN GPU --- */
.hero, .glass-nav, .holo-card, .glass-panel {
    transform: translate3d(0, 0, 0); 
}

/* --- FONDO AMBIENTAL --- */
.ambient-light {
    position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: -2;
    overflow: hidden; pointer-events: none; will-change: transform;
}
.light-orb {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4;
    animation: floatOrb 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.orb-1 { width: 600px; height: 600px; background: #4c1d95; top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: #b45309; bottom: -100px; right: -100px; animation-delay: -5s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

#particles-js {
    position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: -1;
    opacity: 0.6; pointer-events: none;
}

/* --- PRELOADER --- */
.preloader {
    position: fixed; inset: 0; background: var(--bg-dark); z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.8s ease;
}
.loader-logo { font-family: var(--font-head); font-size: 3rem; letter-spacing: 5px; color: var(--gold); margin-bottom: 20px; }
.loader-line {
    width: 0; height: 2px; background: var(--gradient);
    animation: loadLine 1.5s ease-in-out forwards;
}
@keyframes loadLine { to { width: 150px; } }
.preloader.fade-out { opacity: 0; pointer-events: none; }

/* --- TYPOGRAPHY & LAYOUT --- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; }
a { text-decoration: none; color: white; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

.text-gradient {
    background: var(--gradient); 
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* --- NAVBAR CRISTAL --- */
.glass-nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1200px; z-index: 1000;
    background: rgba(15, 16, 20, 0.6); 
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 50px;
    padding: 15px 30px; transition: 0.4s;
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 2px; }
.gold-dot { color: var(--gold); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); }
.nav-links a:hover { color: white; }

.btn-glow {
    background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border);
    padding: 8px 20px; border-radius: 30px; color: white; transition: 0.3s;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0);
}
.btn-glow:hover {
    background: var(--gradient); border-color: transparent;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); color: white;
}
.menu-trigger { display: none; font-size: 1.8rem; cursor: pointer; }

/* --- HERO --- */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding-top: 80px; content-visibility: auto;
}
.pill-label {
    display: inline-block; padding: 6px 16px; border: 1px solid var(--glass-border);
    border-radius: 20px; font-size: 0.75rem; letter-spacing: 2px; color: var(--gold);
    margin-bottom: 25px; background: rgba(255,255,255,0.02);
}
.hero h1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.1; margin-bottom: 30px; }
.hero p { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto 50px; }

/* ANIMACIONES */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards; will-change: transform, opacity; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* BUSCADOR CRISTAL */
.glass-search {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 50px; padding: 8px;
    display: inline-flex; align-items: center; gap: 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.search-group { display: flex; align-items: center; gap: 10px; padding: 0 15px; }
.search-group i { color: var(--gold); }
.search-group input, .search-group select {
    background: transparent; border: none; outline: none; color: white; font-family: var(--font-body);
    font-size: 1rem; width: 180px;
}
.search-group select option { background: var(--bg-dark); color: white; }
.divider { width: 1px; height: 30px; background: var(--glass-border); }
.btn-search {
    width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--gradient);
    color: white; font-size: 1.2rem; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.btn-search:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }

/* --- PROPIEDADES (HOLOGRAPHIC) --- */
.section-spacer { padding: 100px 0; content-visibility: auto; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; }
.link-arrow { color: var(--gold); display: flex; align-items: center; gap: 5px; }

.holo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }

.holo-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 20px; overflow: hidden; transition: 0.4s;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    will-change: transform;
}
.holo-card:hover {
    transform: translateY(-10px); border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.card-image { position: relative; height: 280px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.holo-card:hover img { transform: scale(1.1); }
.price-tag {
    position: absolute; bottom: 15px; right: 15px; background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 5px 15px; border-radius: 20px; font-weight: 700;
}

.card-content { padding: 25px; }
.card-content h3 { font-size: 1.3rem; margin-bottom: 5px; }
.location { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.specs {
    border-top: 1px solid var(--glass-border); padding-top: 15px; margin-bottom: 20px;
    font-size: 0.85rem; color: #ccc;
}
.btn-card {
    display: block; text-align: center; border: 1px solid var(--glass-border);
    padding: 10px; border-radius: 10px; font-size: 0.9rem; transition: 0.3s;
}
.btn-card:hover { background: white; color: black; }

/* --- STATS --- */
.stats-section { border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); padding: 60px 0; }
.stats-grid { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; gap: 30px; }
.gradient-num {
    font-size: 3rem; font-family: var(--font-head); font-weight: 700;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* --- CONTACTO --- */
.contact-container { display: flex; justify-content: center; }
.glass-panel {
    width: 100%; max-width: 900px; background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border); border-radius: 30px;
    padding: 60px; display: grid; grid-template-columns: 2fr 1fr; gap: 50px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.panel-text h2 { font-size: 2.5rem; margin-bottom: 15px; }
.panel-text p { color: var(--text-muted); margin-bottom: 30px; }

.aura-form { display: flex; flex-direction: column; gap: 15px; }
.aura-form input {
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    padding: 15px; border-radius: 10px; color: white; outline: none; font-family: var(--font-body);
}
.aura-form input:focus { border-color: var(--gold); }

.btn-glow-full {
    background: var(--gradient); border: none; padding: 15px; border-radius: 10px;
    color: white; font-weight: 700; cursor: pointer; transition: 0.3s; margin-top: 10px;
}
.btn-glow-full:hover { box-shadow: 0 0 30px rgba(168, 85, 247, 0.4); }

.panel-social {
    display: flex; flex-direction: column; gap: 20px; justify-content: center; align-items: center;
    border-left: 1px solid var(--glass-border);
}
.panel-social a {
    font-size: 1.8rem; color: var(--text-muted); transition: 0.3s;
}
.panel-social a:hover { color: var(--gold); transform: scale(1.2); }

/* FOOTER */
footer { text-align: center; padding: 40px 0; font-size: 0.8rem; color: var(--text-muted); letter-spacing: 2px; }
.footer-flex { display: flex; justify-content: space-between; }

/* --- MENÚ MÓVIL ESTILOS --- */
.mobile-menu-overlay {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: rgba(15, 16, 20, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: right 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}
.mobile-menu-overlay.active { right: 0; }
.close-menu {
    position: absolute; top: 30px; right: 30px;
    background: none; border: none; color: white;
    font-size: 2.5rem; cursor: pointer; transition: 0.3s;
}
.close-menu:hover { transform: rotate(90deg); color: var(--gold); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 30px; text-align: center; }
.menu-label { font-size: 0.8rem; letter-spacing: 4px; color: var(--gold); margin-bottom: 20px; }
.m-link { font-family: var(--font-head); font-size: 2.5rem; color: white; transition: 0.3s; opacity: 0.7; }
.m-link:hover { opacity: 1; color: var(--gold); transform: translateX(10px); }
.mobile-footer { position: absolute; bottom: 40px; font-size: 0.8rem; letter-spacing: 2px; color: var(--text-muted); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .glass-nav { width: 100%; top: 0; border-radius: 0; border: none; border-bottom: 1px solid var(--glass-border); padding: 15px 20px; }
    .nav-links { display: none; }
    .menu-trigger { display: block; }
    
    .hero h1 { font-size: 3rem; }
    
    .glass-search { flex-direction: column; width: 100%; border-radius: 20px; padding: 20px; display: flex; }
    .search-group { width: 100%; border-bottom: 1px solid var(--glass-border); padding: 10px 0; }
    .search-group input { width: 100%; }
    .divider { display: none; }
    .btn-search { width: 100%; border-radius: 10px; margin-top: 10px; }
    
    .glass-panel { grid-template-columns: 1fr; padding: 30px; }
    .panel-social { flex-direction: row; border-left: none; border-top: 1px solid var(--glass-border); padding-top: 20px; }
}