/* =========================================
   DESIGN SYSTEM - BONANZA HOUSE
   Theme: Dark Luxury & Electric Blue
   ========================================= */

:root {
    /* Colors */
    --primary-color: #0047BA;
    /* Intense Blue - Bonanza House */
    --primary-light: #4C8BF5;
    --primary-dark: #003380;
    --accent-silver: #C0C0C0;
    /* Silver/Gray */

    /* Light Theme Backgrounds */
    --bg-dark: #FFFFFF;
    /* White */
    --bg-darker: #F3F4F6;
    /* Light Silver/Gray */
    --bg-card: rgba(255, 255, 255, 0.82);
    /* White Glass */

    /* Text Colors (Adapted for Light Background) */
    --text-light: #111827;
    /* Dark Gray (Main Text) */
    --text-dim: #4B5563;
    /* Medium Gray (Secondary Text) */
    --accent-success: #22C55E;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-glow: radial-gradient(circle, rgba(0, 71, 186, 0.15) 0%, rgba(0, 0, 0, 0) 70%);

    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 100px;
    /* Increased for larger logo */
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

p,
.body-text,
.section-subtitle,
.feature-list li,
.specs li,
.caption {
    color: var(--text-dim);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mt-2 {
    margin-top: 2rem;
}

/* =========================================
   COMPONENTES GLOBALES
   ========================================= */

/* --- BOTONES (CTA) --- */
/* Estilos para botones primarios y secundarios */
.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary-color);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 10px 28px;
    border-radius: 50px;
    border: 1px solid var(--primary-color);
    /* Primary Color Border */
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.glow-primary {
    box-shadow: 0 0 15px rgba(0, 71, 186, 0.4);
    /* Updated to match new primary */
}

.glow-text {
    text-shadow: 0 0 10px rgba(0, 71, 186, 0.5);
    /* Updated to match new primary */
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle dark border */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 2rem;
    color: var(--text-light);
}

.glass-card h3 {
    color: var(--primary-color);
}

.glass-card p {
    color: var(--text-dim);
}

/* =========================================
   BARRA DE NAVEGACIÓN (Header)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    /* White Nav */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle dark border */
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    color: var(--text-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    font-size: 1.4rem;
    /* Slightly larger text */
    letter-spacing: 1px;
}

.logo-img {
    height: 80px;
    /* Increased from 40px */
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--primary-light);
    text-shadow: 0 0 8px var(--primary-color);
    /* Added glow for visibility */
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
}

/* =========================================
   SECCIÓN HÉROE (Portada Principal)
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Ensure full opacity before overlay */
    animation: zoomSlow 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Much Darker overlay for better text contrast - requested by user */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: white !important;
    /* Force white text */
}

.hero-tag {
    display: inline-block;
    background: #0047BA;
    /* Solid Intense Blue */
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1rem;
    color: white !important;
    margin-bottom: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white !important;
    /* Force white text over dark overlay */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* =========================================
   HERO POPUPS — 6 Propuestas de Valor
   ========================================= */

/* Fix: hero-v2-btn como <button> hereda layout de <a> */
button.hero-v2-btn {
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
    background: rgba(0, 55, 160, 0.38);
}

/* --- Overlay --- */
.hero-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 10, 40, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: heroPopupFadeIn 0.3s ease;
}

@keyframes heroPopupFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* --- Modal --- */
.hero-popup-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0,0,0,0.05);
    position: relative;
    animation: heroPopupSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.hero-popup-modal::-webkit-scrollbar { width: 5px; }
.hero-popup-modal::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 10px; }
.hero-popup-modal::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }

@keyframes heroPopupSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Botón cierre --- */
.hero-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    background: rgba(0,0,0,0.08);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.2s, transform 0.2s;
}
.hero-popup-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* --- Header --- */
.hero-popup-header {
    background: var(--gradient-primary);
    padding: 0.75rem 1.25rem 0.65rem;
    border-radius: 20px 20px 0 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.hero-popup-eyebrow {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 0;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}
.hero-popup-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.2;
    flex: 1;
}
.hero-popup-lead {
    font-style: italic;
    color: rgba(255,255,255,0.82);
    font-size: 0.75rem;
    margin: 0;
    width: 100%;
    padding-top: 0.1rem;
    line-height: 1.3;
}

/* --- Cuerpo: galería + descripción --- */
.hero-popup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* --- Galería --- */
.hero-popup-gallery {
    border-right: 1px solid rgba(0,0,0,0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f8f9fb;
}
.hpg-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    max-height: 210px;
}
.hpg-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}
.hpg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
}
.hpg-nav:hover { background: var(--primary-color); color: white; transform: translateY(-50%) scale(1.1); }
.hpg-nav.prev { left: 10px; }
.hpg-nav.next { right: 10px; }
.hpg-counter {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 5;
}
.hpg-thumbstrip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.hpg-thumb {
    width: 52px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: opacity 0.2s, border-color 0.2s, transform 0.15s;
}
.hpg-thumb:hover { opacity: 1; transform: scale(1.05); }
.hpg-thumb.active { border-color: var(--primary-color); opacity: 1; }

/* --- Descripción --- */
.hero-popup-desc {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.hero-popup-desc p {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0;
}
.hero-popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hero-popup-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-light);
}
.hero-popup-list li i {
    color: var(--primary-color);
    font-size: 0.75rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.hero-popup-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}
.hero-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,71,186,0.35);
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .hero-popup-body { grid-template-columns: 1fr; }
    .hero-popup-gallery { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.08); }
    .hero-popup-title { font-size: 1.35rem; }
    .hpg-nav { display: none; }
}
@media (max-width: 480px) {
    .hero-popup-modal { border-radius: 16px; }
    .hero-popup-header { padding: 1.5rem 1.25rem 1rem; }
    .hero-popup-gallery, .hero-popup-desc { padding: 1rem; }
}

/* --- Botón Ver Más --- */
.hpg-ver-mas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin: 0 auto;
    transition: color 0.2s, transform 0.2s;
    font-family: inherit;
}
.hpg-ver-mas:hover {
    color: var(--primary-dark);
    transform: translateY(2px);
}
.hpg-ver-mas i {
    animation: hpgBounce 1.2s infinite;
}
@keyframes hpgBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(4px); }
}

/* =========================================
   SMART HOME POPUP — Crecimiento Modular
   ========================================= */

/* Etiqueta de fase sobre la imagen principal */
.hpg-phase-label {
    position: absolute;
    bottom: 8px;
    left: 10px;
    background: rgba(0, 71, 186, 0.85);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    z-index: 6;
    backdrop-filter: blur(4px);
    letter-spacing: 0.02em;
}

/* Modal Smart Home: layout vertical completo (galería arriba, desc abajo) */
.smarthome-modal {
    max-width: 760px;
}

.smarthome-gallery {
    border-right: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: #f0f4fb !important;
    padding: 1.25rem !important;
}

/* Imagen principal del Smart Home: ocupa el máximo posible
   dejando solo el thumbstrip + VER MÁS visibles en el borde inferior */
.smarthome-gallery .hpg-main {
    aspect-ratio: unset;
    height: calc(90vh - 255px);
    max-height: 520px;
    min-height: 180px;
}

.smarthome-desc {
    padding: 1.5rem !important;
}

/* --- Fases del proceso (timeline vertical) --- */
.smarthome-phases {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f8f9fb;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0,71,186,0.1);
}

.smarthome-phase {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.smarthome-phase-arrow {
    text-align: center;
    color: var(--primary-light);
    font-size: 0.8rem;
    padding: 0.25rem 0;
    padding-left: 1.2rem; /* alinea con el centro del badge */
    opacity: 0.6;
}

.smarthome-phase-badge {
    flex-shrink: 0;
    min-width: 62px;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: white;
    margin-top: 2px;
}

.smarthome-phase-badge.phase-1 {
    background: linear-gradient(135deg, #0047BA, #003380);
}
.smarthome-phase-badge.phase-2 {
    background: linear-gradient(135deg, #0077CC, #005599);
}
.smarthome-phase-badge.phase-3 {
    background: linear-gradient(135deg, #C9930A, #8A6200);
}

.smarthome-phase-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.smarthome-phase-info strong {
    font-size: 0.88rem;
    color: var(--primary-dark);
}

.smarthome-phase-info span {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.smarthome-phase-info .phase-time {
    font-size: 0.72rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.1rem;
}

/* Layout: Smart Home es columna única (galería full + desc full) */
.smarthome-modal .hero-popup-body {
    display: block;
}

@media (max-width: 480px) {
    .smarthome-phases { padding: 0.75rem; }
    .smarthome-phase-badge { min-width: 52px; font-size: 0.65rem; }
}

/* =========================================
   HERO V2 — Diseño 6 CTAs (Javier Degollado)
   ========================================= */
.hero-v2 {
    height: auto;
    min-height: 100vh;
    align-items: stretch;
}

.hero-v2-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
    min-height: 100vh;
    box-sizing: border-box;
}

/* --- Titular principal --- */
.hero-v2-headline {
    text-align: center;
    max-width: 820px;
}

.hero-v2-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.hero-v2-title span {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 0.5rem;
    letter-spacing: 0;
}

/* --- Grid de 6 botones CTA --- */
.hero-v2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 900px;
}

.hero-v2-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.1rem 1.4rem;
    border-radius: 14px;
    background: rgba(0, 55, 160, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 30, 100, 0.3);
}

/* Línea de brillo izquierda */
.hero-v2-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, #4C8BF5, transparent);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Brillo sweep on hover */
.hero-v2-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
    transform: skewX(-15deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.hero-v2-btn:hover::after {
    left: 120%;
}

.hero-v2-btn:hover {
    background: rgba(0, 71, 186, 0.58);
    border-color: rgba(76, 139, 245, 0.7);
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 8px 30px rgba(0, 60, 180, 0.45), 0 0 0 1px rgba(76,139,245,0.3);
}

.hero-v2-btn:hover::before {
    opacity: 1;
}

.hero-v2-btn-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.3;
}

.hero-v2-btn-sub {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
}

/* --- Tagline inferior --- */
.hero-v2-tagline {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-style: italic;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    padding: 0.75rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* --- Responsive Hero V2 --- */
@media (max-width: 768px) {
    .hero-v2-title {
        font-size: 1.4rem;
    }
    .hero-v2-title span {
        font-size: 1rem;
    }
    .hero-v2-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .hero-v2-tagline {
        font-size: 0.82rem;
    }
    .hero-v2-btn-title {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .hero-v2-content {
        gap: 1.5rem;
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: 2rem;
    }
    .hero-v2-title {
        font-size: 1.2rem;
    }
}


/* =========================================
   INNER HERO SECTION
   ========================================= */
/* =========================================
   INNER HERO SECTION (Encabezado de Páginas Internas)
   ========================================= */
.section-inner-hero {
    background-color: #E5E7EB;
    /* Tono Intermedio (Gris Claro) para resaltar texto azul */
    padding-top: 150px;
    padding-bottom: 80px;
    color: var(--text-light);
    /* Texto Oscuro para contraste */
}

.section-inner-hero h1,
.section-inner-hero .hero-title {
    color: var(--primary-dark);
}

.section-inner-hero .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dim);
    /* Texto Gris Medio */
}

/* =========================================
   SECTIONS & GRIDS
   ========================================= */
.section {
    padding: 100px 0;
}

.section-dark {
    background-color: var(--bg-darker);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Comparison Chart */
.comparison-card {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.comparison-row {
    margin-bottom: 1.5rem;
}

.comparison-row .label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.comparison-row .label.highlight {
    color: var(--primary-light);
    font-weight: 600;
}

.bar-container {
    background: rgba(255, 255, 255, 0.1);
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.bar.traditional {
    background: #555;
    width: 0;
    animation: growBarTrad 1.5s ease-out forwards;
}

.bar.bonanza {
    background: var(--primary-color);
    width: 0;
    animation: growBarBon 1.5s ease-out 0.5s forwards;
}

@keyframes growBarTrad {
    to {
        width: 100%;
    }
}

@keyframes growBarBon {
    to {
        width: 8%;
    }
}

/* =========================================
   SLIDER EVOLUTIVO (Sección Modelos)
   ========================================= */
.evolution-slider-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.slider-btn {
    background: transparent;
    border: 1px solid rgba(0, 71, 186, 0.3);
    color: var(--text-dim);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.slider-btn.active,
.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.slide {
    display: none;
    animation: fadeIn 0.5s;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.slide.active {
    display: grid;
}

.slide-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slide-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.specs li {
    display: inline-block;
    margin-right: 15px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
    margin-top: 10px;
}

/* =========================================
   TARJETAS GIRATORIAS (Sección Características)
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.features-grid-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .features-grid-5 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .features-grid-5 {
        grid-template-columns: 1fr;
    }
}

.service-card-flip {
    background-color: transparent;
    height: 400px;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.service-card-front {
    background-color: #111;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.service-overlay h3 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.service-card-back {
    background-color: var(--bg-darker);
    color: var(--primary-dark);
    /* Changed to Dark Blue for visibility */
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.feature-tag {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-light);
    border: 1px solid var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* =========================================
   PIE DE PÁGINA (Footer)
   ========================================= */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-logo {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .slide {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .phase-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomSlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}


/* =========================================
   MORTGAGE CALCULATOR POPUP
   ========================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
    max-height: 90vh;
    /* Limits height to visible screen space */
    overflow-y: auto;
    /* Enables vertical scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth touch scrolling on mobile */
    scrollbar-width: thin;
    /* Firefox scrollbar */
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.05);
    /* Firefox scrollbar */
}

/* Custom Scrollbar for WebKit (Chrome, Safari, Edge) */
.popup-content::-webkit-scrollbar {
    width: 6px;
}

.popup-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 10px 0;
}

.popup-content::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--primary-color);
}

.popup-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.popup-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

.calculator-form input,
.calculator-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f9fafb;
}

.calculator-form input:focus,
.calculator-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.1);
}

.calculation-result {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 71, 186, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 71, 186, 0.1);
}

.calculation-result.hidden {
    display: none;
}

.calculation-result h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

.monthly-payment {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0.5rem 0;
    text-shadow: 0 0 15px rgba(0, 71, 186, 0.2);
}

.disclaimer {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
}

/* =========================================
   POPUP CONTROLLER (SKILL)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.05);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 10px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Navigation Buttons (Overlay Style) */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    color: #333;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-nav-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn.prev-btn {
    left: 15px;
}

.modal-nav-btn.next-btn {
    right: 15px;
}

/* Hide buttons on mobile (use swipe instead) */
@media (max-width: 768px) {
    .modal-nav-btn {
        display: none;
    }
}

/* =========================================
   DARK LUXURY AESTHETIC - MODELOS DE INVERSIÓN
   ========================================= */

.dark-luxury-page {
    background-color: #1a1f24;
    /* Slate Gray */
    color: #e2e8f0;
}

.dark-luxury-page .section-inner-hero {
    background-color: #0f1215;
    color: #f8fafc;
}

.dark-luxury-page .hero-title {
    color: #f8fafc;
}

.dark-luxury-page .text-gradient {
    background: linear-gradient(135deg, #00A2FF 0%, #0047BA 100%);
    /* Electric Blue to Bonanza Blue */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-luxury-page .hero-subtitle {
    color: #cbd5e1;
}

.dark-luxury-page .section-title {
    color: #f8fafc;
}

.dark-luxury-page .body-text {
    color: #94a3b8;
}

.dark-luxury-page .glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 24px 40px -8px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dark-luxury-page .glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -1px rgba(0, 0, 0, 0.6), 0 30px 50px -10px rgba(0, 162, 255, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
    /* Gold accent on hover */
}

/* Gold Accents & Utility Colors */
.text-gold {
    color: #D4AF37;
    /* Classic Gold */
}

.bg-gold {
    background-color: #D4AF37;
    color: #000;
}

.border-gold {
    border-color: #D4AF37;
}

.dark-luxury-page .btn-primary {
    background: linear-gradient(135deg, #00A2FF, #0047BA);
    color: white;
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.3);
}

.dark-luxury-page .btn-primary::before {
    background: linear-gradient(135deg, #33b5ff, #00A2FF);
}

.dark-luxury-page .btn-primary:hover {
    box-shadow: 0 10px 20px -10px #00A2FF;
}

.dark-luxury-page .btn-outline {
    border-color: #D4AF37;
    color: #D4AF37;
}

.dark-luxury-page .btn-outline:hover {
    background-color: #D4AF37;
    color: #000;
}

/* Investment Grid */
.investment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

@media (max-width: 768px) {
    .investment-grid {
        grid-template-columns: 1fr;
    }
}

.investment-card {
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.investment-card .card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.investment-card .card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.investment-card h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: var(--bg-darker);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Enhancing modal animation (zoom in) */
.modal-content {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.investment-card .content-tags {
    color: var(--primary-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.investment-card .value-prop {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.investment-card .highlight {
    background: rgba(0, 162, 255, 0.1);
    color: #00A2FF;
    padding: 10px 15px;
    border-left: 3px solid #00A2FF;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: auto;
}

.consulting-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.consulting-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-dim);
    background: rgba(0, 71, 186, 0.03);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 71, 186, 0.1);
}

.consulting-list li::before {
    content: "\f00c";
    /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
}

.speed-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 162, 255, 0.15);
    border: 1px solid rgba(0, 162, 255, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    color: #00A2FF;
    font-weight: 600;
    margin-top: 2rem;
}

.speed-indicator i {
    font-size: 1.2rem;
}

.cursor-pointer {
    cursor: pointer;
}

/* =========================================
   CONOCE TU CASA REDESIGN (Tech Authority)
   ========================================= */

.blueprint-bg {
    background-color: var(--primary-dark);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
    color: white;
    position: relative;
}

.blueprint-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--primary-dark) 100%);
    pointer-events: none;
    z-index: 1;
}

.blueprint-bg .container {
    position: relative;
    z-index: 2;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 162, 255, 0.4);
    border-color: rgba(0, 162, 255, 0.5);
}

.badge i {
    font-size: 1.5rem;
    color: #4C8BF5;
    /* primary-light */
}

.badge span {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

/* Tech Blocks */
.tech-block {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-block:hover {
    box-shadow: 0 10px 30px rgba(0, 71, 186, 0.1);
    transform: translateY(-3px);
}

.tech-block h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.tech-spec {
    font-family: monospace;
    background: rgba(0, 71, 186, 0.05);
    padding: 10px 15px;
    border-left: 3px solid var(--primary-color);
    margin: 1rem 0;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.tech-closing {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-toggle-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tech-toggle-btn:hover {
    background: var(--primary-color);
    color: white;
}

.tech-details {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.4s ease forwards;
}

.tech-details.active {
    display: block;
}

.tech-details p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.x-ray-render {
    width: 100%;
    border-radius: 12px;
    filter: sepia(100%) hue-rotate(190deg) saturate(300%) contrast(150%) brightness(80%);
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.2);
    border: 1px solid rgba(0, 162, 255, 0.3);
    transition: filter 0.5s ease;
}

.tech-block:hover .x-ray-render {
    filter: none;
}

/* Evolution Timeline/Slider */
.evolution-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-nav {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 4rem;
}

.timeline-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 71, 186, 0.2);
    z-index: 1;
    transform: translateY(-5px);
}

.timeline-step {
    position: relative;
    z-index: 2;
    background: var(--bg-dark);
    border: 3px solid rgba(0, 71, 186, 0.2);
    color: var(--text-dim);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 5px var(--bg-dark);
}

.timeline-step .step-label {
    position: absolute;
    top: calc(100% + 15px);
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.timeline-step.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 5px var(--bg-dark), 0 0 20px rgba(0, 71, 186, 0.4);
}

.timeline-step.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
}

.timeline-content-slider {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.timeline-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.timeline-slide.active {
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   INTERACTIVE BLUEPRINT (X-RAY EXPLORER)
   ========================================= */

.blueprint-explorer {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #0f172a;
    /* Dark sleek background */
    padding: 2rem;
    border: 1px solid rgba(0, 162, 255, 0.2);
}

.blueprint-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    position: relative;
}

/* Interactive Hotspots */
.hotspot-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0, 162, 255, 0.8);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.6);
    transition: all 0.3s ease;
}

.hotspot-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid #00A2FF;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(0, 162, 255, 0.7);
    }

    70% {
        transform: scale(1.5);
        box-shadow: 0 0 0 10px rgba(0, 162, 255, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(0, 162, 255, 0);
    }
}

.hotspot-btn:hover {
    background: #00A2FF;
    transform: translate(-50%, -50%) scale(1.1);
}

.hotspot-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(0, 162, 255, 0.5);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hotspot-btn:hover .hotspot-label {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

/* Specific Hotspot Positions (Adjustable percentage based on image layout) */
.hp-roof {
    top: 15%;
    left: 50%;
}

.hp-wall {
    top: 45%;
    left: 25%;
}

.hp-floor {
    top: 80%;
    left: 50%;
}

.hp-skeleton {
    top: 55%;
    left: 75%;
}

@media (max-width: 768px) {
    .hotspot-label {
        display: none;
    }

    /* Hide labels on mobile to save space */
    .blueprint-explorer {
        padding: 1rem;
    }
}

/* Modals & Tech Specifications for Popups */
.tech-popup-modal .modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 162, 255, 0.2);
    color: white;
    padding: 2rem;
    width: 95%;
    max-width: 800px;
}

.tech-popup-modal .popup-title {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.tech-popup-modal .close-modal {
    color: white;
    text-shadow: none;
    opacity: 0.8;
}

.tech-popup-modal .close-modal:hover {
    color: #00A2FF;
    opacity: 1;
}

.tech-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .tech-popup-grid {
        grid-template-columns: 1fr;
    }
}

.tech-gallery-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.tech-gallery-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.tech-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #00A2FF;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(5px);
}

.tech-popup-info {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.tech-highlight-box {
    background: rgba(0, 162, 255, 0.1);
    border-left: 4px solid #00A2FF;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
}

/* =========================================
   SCROLL DOWN INDICATOR
   ========================================= */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 71, 186, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 50;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    animation: bounceDown 2.5s infinite;
}

/* Forcing specific positioning if needed (esquina inferior derecha) */
.scroll-down-indicator {
    left: auto;
    right: 30px;
    transform: none;
}

.scroll-down-indicator i {
    font-size: 1.2rem;
}

.scroll-down-indicator:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 71, 186, 0.4);
    animation-play-state: paused;
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

    .scroll-down-indicator i {
        font-size: 1rem;
    }
}

/* =========================================
   CASAS BONANZA — CATÁLOGO DE MODELOS
   ========================================= */

/* Sección general */
.casas-bonanza-section {
    background: #f4f6f9;
    color: #1a2744;
}

.casas-bonanza-section .section-title {
    color: #1a2744;
}

.casas-bonanza-section .section-subtitle {
    color: #4a5568;
}

.bonanza-catalog-eyebrow {
    display: inline-block;
    background: linear-gradient(135deg, #0047BA, #00A2FF);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* Grid del catálogo: 3 columnas */
.bonanza-catalog-grid {
    display: grid;
    grid-template-columns: 1fr 1.45fr 1fr;
    gap: 28px;
    align-items: stretch;
    margin-top: 3rem;
}

/* ── CARD BASE ── */
.bonanza-model-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0,0,0,0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ── PLACEHOLDER CARD ── */
.bonanza-model-placeholder {
    background: linear-gradient(145deg, #e8ecf5, #dde3ef);
    border: 2px dashed #b3bed6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.placeholder-inner {
    text-align: center;
    padding: 2rem;
}

.placeholder-icon {
    font-size: 3.5rem;
    color: #8fa0c5;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.placeholder-badge {
    display: inline-block;
    background: rgba(0, 71, 186, 0.12);
    color: #0047BA;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 0.8rem;
}

.placeholder-label {
    color: #7a90b5;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── FEATURED CARD (ficha técnica) ── */
.bonanza-model-featured {
    cursor: pointer;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border: 1px solid #d6dff0;
    position: relative;
}

.bonanza-model-featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 71, 186, 0.18);
}

.bonanza-model-featured:focus {
    outline: 3px solid #00A2FF;
    outline-offset: 3px;
}

/* ── HEADER DE FICHA ── */
.ficha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    border-bottom: 1px solid #e8edf5;
    background: #fff;
}

.ficha-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ficha-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
}

.ficha-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ficha-brand-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1a2744;
    letter-spacing: 0.5px;
}

.ficha-brand-tagline {
    font-size: 0.68rem;
    color: #6b7a9c;
    font-style: italic;
}

.ficha-modelo-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0047BA;
    color: #fff;
    border-radius: 8px;
    padding: 4px 12px;
    line-height: 1.2;
}

.ficha-modelo-label {
    font-size: 0.55rem;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.85;
}

.ficha-modelo-code {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ── CUERPO ── */
.ficha-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

/* ── VISUALS: imagen principal + plano ── */
.ficha-main-visuals {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 0;
    height: 195px;
    border-bottom: 1px solid #e8edf5;
}

.ficha-foto-principal {
    position: relative;
    overflow: hidden;
}

.ficha-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bonanza-model-featured:hover .ficha-img-main {
    transform: scale(1.05);
}

.ficha-foto-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 71, 186, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.35s ease;
    opacity: 0;
}

.ficha-foto-overlay i {
    font-size: 1.6rem;
}

.bonanza-model-featured:hover .ficha-foto-overlay {
    background: rgba(0, 71, 186, 0.45);
    opacity: 1;
}

.ficha-plano-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: #f8faff;
    border-left: 1px solid #e8edf5;
    gap: 5px;
}

.ficha-plano-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #6b7a9c;
    text-transform: uppercase;
}

.ficha-img-plano {
    width: 100%;
    flex: 1;
    object-fit: contain;
    border-radius: 6px;
}

/* ── MINIATURAS ── */
.ficha-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid #e8edf5;
}

.ficha-thumb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-right: 1px solid #e8edf5;
    height: 80px;
}

.ficha-thumb-item:last-child {
    border-right: none;
}

.ficha-thumb-item img {
    width: 100%;
    height: 58px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.bonanza-model-featured:hover .ficha-thumb-item img {
    transform: scale(1.08);
}

.ficha-thumb-item span {
    font-size: 0.6rem;
    font-weight: 600;
    color: #6b7a9c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 0;
    background: #f4f6f9;
    width: 100%;
    text-align: center;
}

/* ── SPECS ── */
.ficha-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #e8edf5;
    flex: 1;
}

.ficha-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-right: 1px solid #e8edf5;
    border-bottom: 1px solid #e8edf5;
}

.ficha-spec-item:nth-child(even) {
    border-right: none;
}

.ficha-spec-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.ficha-spec-item > i {
    font-size: 1.1rem;
    color: #0047BA;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.ficha-spec-item div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.spec-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a2744;
}

.spec-label {
    font-size: 0.65rem;
    color: #8fa0c5;
}

/* ── FOOTER ÍCONOS ── */
.ficha-footer-icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 9px 8px;
    background: #1a2744;
    gap: 4px;
}

.ficha-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.75);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-align: center;
    flex: 1;
}

.ficha-icon-item i {
    font-size: 1.1rem;
    color: #00A2FF;
}

/* =========================================
   POPUP GALERÍA — CASA MODELO
   ========================================= */
.casa-gallery-modal {
    z-index: 2100;
}

.casa-gallery-content {
    max-width: 960px !important;
    width: 95% !important;
    max-height: 92vh !important;
    background: #0f1823 !important;
    color: #e2e8f0;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 !important;
}

/* Close button */
.casa-gallery-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: background 0.2s;
}

.casa-gallery-close:hover {
    background: rgba(255,255,255,0.2);
}

/* Header popup */
.casa-gallery-header {
    padding: 14px 20px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: #0f1823;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.casa-gallery-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.popup-model-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.popup-model-code {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #00A2FF;
    font-weight: 700;
    text-transform: uppercase;
}

.casa-gallery-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.casa-gallery-specs-row span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 6px;
}

.casa-gallery-specs-row i {
    color: #00A2FF;
}

/* Stage */
.casa-gallery-stage {
    position: relative;
    flex: 1;
    background: #060d14;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    overflow: hidden;
}

.casa-gallery-main-img {
    max-width: 100%;
    max-height: 62vh;
    object-fit: contain;
    display: block;
    border-radius: 0;
    transition: opacity 0.25s ease;
}

.casa-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 30px 20px 14px;
    text-align: center;
    pointer-events: none;
}

.casa-gallery-counter {
    position: absolute;
    top: 12px;
    left: 16px;
    background: rgba(0,0,0,0.55);
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* Thumbstrip navegación rápida */
.casa-gallery-thumbstrip {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #0f1823;
    border-top: 1px solid rgba(255,255,255,0.07);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #00A2FF rgba(255,255,255,0.05);
}

.casa-gallery-thumbstrip::-webkit-scrollbar {
    height: 4px;
}
.casa-gallery-thumbstrip::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
}
.casa-gallery-thumbstrip::-webkit-scrollbar-thumb {
    background: #0047BA;
    border-radius: 10px;
}

.thumbstrip-item {
    flex-shrink: 0;
    width: 72px;
    height: 52px;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    scroll-snap-align: start;
}

.thumbstrip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.thumbstrip-item:hover img,
.thumbstrip-item.active img {
    opacity: 1;
}

.thumbstrip-item.active {
    border-color: #00A2FF;
    transform: scale(1.05);
}

/* =========================================
   RESPONSIVE — CASAS BONANZA
   ========================================= */
@media (max-width: 1024px) {
    .bonanza-catalog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bonanza-model-placeholder {
        min-height: 160px;
    }

    .bonanza-model-featured {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .ficha-main-visuals {
        height: 160px;
    }

    .casa-gallery-content {
        border-radius: 14px !important;
    }

    .casa-gallery-stage {
        min-height: 240px;
    }

    .ficha-specs {
        grid-template-columns: 1fr;
    }

    .ficha-spec-item {
        border-right: none;
    }

    .ficha-spec-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #e8edf5;
    }

    .ficha-spec-item:last-child {
        border-bottom: none;
    }
}