/* ==========================================================================
   CONFIGURACIÓN PREMIUM VANT
   ========================================================================== */
:root {
    --vant-black-bg: #0A0B0D;
    --vant-card-bg: #111316;
    --vant-card-border: #23262B;
    --vant-cyan: #00E5FF;
    --vant-white-pure: #F8F9FA;
    --text-muted: #6C757D;
    --text-secondary: #ADB5BD;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto !important;
}

body {
    background-color: #141518;
    color: var(--vant-white-pure);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 140px;
    overscroll-behavior: none;
}

/* ==========================================================================
   CAPAS DE AMBIENTE
   ========================================================================== */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.glow-ambiance {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle 500px at 50% 20%, rgba(0, 229, 255, 0.03), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   BARRA SUPERIOR
   ========================================================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002 !important;
    background-color: rgba(20, 21, 24, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.7rem 0;
}

.top-bar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-prompt {
    color: var(--vant-cyan);
    font-weight: 700;
    font-size: 0.8rem;
    opacity: 0.6;
}

.top-bar-prompt-last {
    opacity: 0.9;
}

.top-bar-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: opacity 0.4s ease;
    margin-left: 0.3rem;
}

.top-bar-cta {
    color: var(--vant-cyan);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.8;
    cursor: pointer;
}

.top-bar-cta:hover {
    opacity: 1;
}

/* ==========================================================================
   HEADER CON LOGO
   ========================================================================== */
.site-header {
    position: fixed;
    top: 44px;
    left: 0;
    width: 100%;
    z-index: 1001 !important;
    padding: 1.2rem 2rem;
    background: transparent !important;
    pointer-events: none;
    transition: padding 0.4s ease;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-title {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: clamp(4.5rem, 14vw, 10rem);
    font-weight: 480;
    letter-spacing: -0.02em;
    line-height: 0.95;
    color: var(--vant-white-pure);
    text-align: center;
    opacity: 0.95;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: -140px;
    left: 50%;
    width: 100vw;
    height: calc(100% + 140px);
    transform: translateX(-50%);
    background-size: cover;
    background-position: center 30%;
    filter: grayscale(100%) contrast(1.1);
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,5,7,0.35) 0%, rgba(4,5,7,0.8) 78%, rgba(4,5,7,0.95) 100%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.hero-content {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background: transparent;
    color: var(--vant-white-pure);
    border: 1px solid var(--vant-cyan);
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--vant-cyan);
    color: var(--vant-black-bg);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--vant-card-border);
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--vant-white-pure);
}

.hero-footer-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cyan-text {
    color: var(--vant-cyan);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================================================
   SECCIONES GENERALES Y MAQUETACIÓN
   ========================================================================== */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    background-color: #141518;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.section-number {
    color: var(--vant-cyan);
}

.section-line {
    width: 30px;
    height: 1px;
    background-color: var(--vant-card-border);
}

.section-label {
    color: var(--text-muted);
}

.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* HORIZONTAL STRIPE STEPS */
.steps-horizontal-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    margin-top: 1.5rem;
}

.steps-horizontal-box::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--vant-card-border);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
}

.step-num-badge {
    width: 36px;
    height: 36px;
    background-color: var(--vant-black-bg);
    border: 1px solid var(--vant-card-border);
    color: var(--vant-cyan);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.step-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* GRID DE CONFIANZA / FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background-color: var(--vant-card-bg);
    border: 1px solid var(--vant-card-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--vant-white-pure);
}

.faq-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   FORMULARIO DE BAJA FRICCIÓN (Estilo Apple / Linear)
   ========================================================================== */
.form-section-padding {
    padding-bottom: 7rem;
}

.form-wrapper {
    border-radius: 12px;
    padding: 3.5rem;
    width: 100%;
    max-width: 580px;
    margin: 1.5rem auto 0;
    background-color: var(--vant-black-bg);
    border: 1px solid var(--vant-card-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.form-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.input-group input {
    background-color: #0c0d10;
    border: 1px solid var(--vant-card-border);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    color: var(--vant-white-pure);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    transition: all 0.25s ease;
}

.input-group input:focus {
    border-color: rgba(0, 229, 255, 0.4);
    background-color: #111316;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.05);
}

.btn-submit {
    width: 100%;
    background: var(--vant-white-pure);
    color: var(--vant-black-bg);
    border: none;
    padding: 1.1rem;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit:hover {
    background-color: var(--vant-cyan);
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.3);
}

.form-bottom-footnote {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1.25rem;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   SIMULADOR OPERATIVO
   ========================================================================== */
.simulador-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem 2rem;
    position: relative;
    z-index: 2;
    display: none;
    background-color: #141518;
    min-height: 80vh;
}

.simulador-section.active {
    display: block;
}

.simulador-container {
    background: var(--vant-card-bg);
    border: 1px solid var(--vant-card-border);
    border-radius: 16px;
    overflow: hidden;
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(10, 11, 13, 0.6);
    border-bottom: 1px solid var(--vant-card-border);
}

.sim-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sim-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pulse-dot { background: #00E676; }
.filter-dot { background: #FFD600; }
.analysis-dot { background: #00E5FF; }

.sim-badge {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--vant-cyan);
    background: rgba(0, 229, 255, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.sim-body { padding: 1.5rem; }
.sim-step { display: none; }
.sim-step.active { display: block; }

.sim-search-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.sim-stat {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--vant-card-border);
    border-radius: 8px;
    padding: 1rem;
}

.sim-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.sim-progress-container {
    width: 100%;
    height: 4px;
    background: var(--vant-card-border);
    margin-bottom: 1.5rem;
}

.sim-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--vant-cyan);
    transition: width 0.1s linear;
}

.sim-properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sim-property-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--vant-card-border);
    padding: 1rem;
    border-radius: 8px;
}

.sim-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sim-filter-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--vant-card-border);
    padding: 1rem;
    border-radius: 8px;
}

.sim-filter-card.rejected { opacity: 0.25; }

.sim-analysis-grid, .sim-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sim-analysis-card, .sim-compare-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--vant-card-border);
    padding: 1.25rem;
    border-radius: 8px;
}

.sim-winner-card, .sim-detail-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--vant-cyan);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.sim-final-message {
    padding: 4rem;
    text-align: center;
}

.sim-controls {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-top: 1px solid var(--vant-card-border);
}

/* ==========================================================================
   RUPTURA EDITORIAL
   ========================================================================== */
.editorial-break {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background-color: #141518;
    padding: 4rem 0;
}

.break-content { max-width: 1300px; margin: 0 auto; padding: 0 2.5rem; width: 100%; }
.break-eyebrow { font-size: 0.7rem; color: #00E5FF; letter-spacing: 0.12em; margin-bottom: 1.5rem; }
.break-lines .line { font-size: clamp(1.6rem, 4vw, 3.1rem); color: rgba(247, 248, 248, 0.35); }
.break-lines .line.is-emphasis { color: #F8F9FA; }
.highlight-cyan { color: #00E5FF; font-style: italic; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-container {
    border-top: 1px solid var(--vant-card-border);
    background-color: #07080a;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: rgba(255, 255, 255, 0.3); text-decoration: none; }
.footer-links a:hover { color: var(--vant-white-pure); }

/* ==========================================================================
   PRESERVACIÓN DE LECTURA DE CONTENIDOS (Cero Desvanecimiento en el Centro)
   ========================================================================== */
.hero-content, 
#simulador, 
#proceso, 
#faq, 
#lista-espera {
    will-change: opacity;
    opacity: 1 !important;
}

/* ==========================================================================
   RESPONSIVE MODIFIERS
   ========================================================================== */
@media (max-width: 1024px) {
    .steps-horizontal-box, .faq-grid { grid-template-columns: repeat(2, 1fr); }
    .sim-search-stats, .sim-properties-grid, .sim-filter-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    body { padding-top: 120px; }
    .steps-horizontal-box, .faq-grid, .sim-search-stats, .sim-properties-grid, .sim-filter-grid, .sim-analysis-grid, .sim-compare-grid { grid-template-columns: 1fr; }
    .form-wrapper { padding: 2rem 1.5rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { text-align: center; width: 100%; }
}