/* static/style.css */
:root { 
    --nyc-blue: #003884; 
    --nyc-orange: #FF6B00; 
    --bg-light: #F4F7F9; 
    --text-dark: #2D3748; 
}

body { 
    font-family: 'Inter', -apple-system, sans-serif; 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    overflow-x: hidden; 
}

/* Sidebar Corporativo */
.sidebar {
    height: 100vh; background-color: #1a202c; color: #fff;
    position: fixed; top: 0; left: 0; width: 260px; padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 1050;
    transition: transform 0.3s ease;
}
.sidebar .brand { font-size: 1.2rem; font-weight: 700; padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; color: var(--nyc-orange); }
.sidebar .nav-link { color: #a0aec0; padding: 12px 20px; font-weight: 500; transition: all 0.3s; cursor: pointer; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background-color: rgba(255,255,255,0.05); color: #fff; border-left: 4px solid var(--nyc-orange); }
.sidebar .nav-link i { margin-right: 12px; font-size: 1.1rem; }

/* Contenido Principal */
.main-content { margin-left: 260px; padding: 30px 40px; min-height: 100vh; transition: margin 0.3s ease; }

/* Tarjetas (Cards) */
.card-custom { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px rgba(0,0,0,0.02); margin-bottom: 25px; padding: 25px; }
.section-title { font-size: 1.1rem; font-weight: 600; color: #1a202c; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f1f5f9; }

/* Inputs y Botones */
.form-label { font-weight: 600; color: #4a5568; font-size: 0.85rem; }
.form-control, .form-select { border-radius: 8px; border: 1px solid #cbd5e1; font-size: 0.95rem; }
.form-control:focus, .form-select:focus { border-color: var(--nyc-orange); box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.25); }
.btn-primary-custom { background: linear-gradient(135deg, var(--nyc-orange) 0%, #E65100 100%) !important; border: none !important; color: white !important; font-weight: 600; padding: 10px 25px; border-radius: 8px; }
.btn-primary-custom:hover { box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3); color: white; transform: translateY(-1px); }
.btn-secondary-custom { background-color: white; border: 1px solid #cbd5e1; color: #4a5568; font-weight: 600; border-radius: 8px; }

/* Acordeones */
.accordion-button { font-weight: 600; color: var(--nyc-blue); background-color: #f8fafc; }
.accordion-button:not(.collapsed) { background-color: #edf2f7; color: var(--nyc-blue); box-shadow: inset 0 -1px 0 rgba(0,0,0,.125); }

/* Ocultar Pestañas Inactivas */
.tab-content-view { display: none; animation: fadeIn 0.3s; }
.tab-content-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Métricas (Property Lookup) */
.metric-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; text-align: left; height: 100%; }
.metric-label { font-size: 0.8rem; color: #718096; text-transform: uppercase; font-weight: 700; margin-bottom: 5px; }
.metric-value { font-size: 1.2rem; font-weight: 600; color: #1a202c; margin: 0; }

/* Overlay para celulares */
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 1040; }

/* RESPONSIVE DESIGN (Móviles y Tablets) */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .main-content { margin-left: 0; padding: 15px 20px; }
    
    /* En celulares, el header principal de métricas necesita espacio */
    .metric-box { margin-bottom: 10px; }
}

/* Logo tamaño base - Desktop */
.navbar-logo,
.navbar-brand img {
    height: 150px;
    width: auto;
}

/* Botones del navbar - visibles en todas las pantallas */
.navbar .container > div {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* --- INDEX PAGE STYLES --- */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('/static/hero-bg.webp');
    background-size: cover; 
    background-position: center;
    min-height: 100vh; /* Cambiado de height a min-height */
    display: flex; 
    align-items: center; 
    color: white;
    padding-top: 120px; /* Da espacio a la barra de navegación en móviles */
    padding-bottom: 50px;
}
.search-container {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(15px);
    padding: 30px; 
    border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.2);
}
.nav-pills .nav-link { color: #4a5568; font-weight: 600; border-radius: 10px; background-color: #e2e8f0; }
.nav-pills .nav-link.active { background-color: var(--nyc-orange) !important; color: white !important; }
.nav-pills .nav-link:not(.active):hover { background-color: #cbd5e1; color: #1a202c; }
.btn-fire { background-color: var(--nyc-orange); border: none; font-weight: 700; color: white; padding: 12px 30px; }
.btn-fire:hover { background-color: #E65100; color: white; }
.results-card { background: white; border-radius: 15px; color: #333; margin-top: 20px; border-left: 5px solid var(--nyc-orange); }

/* Responsive adjustments para móviles - AJUSTE FINO FINAL */
@media (max-width: 991px) {
    /* 1. Ajustar el logo (un poco más grande: de 60px a 80px) */
    .navbar-brand img {
        height: 110px !important; 
    }
    .navbar .container {
        justify-content: center;
        flex-direction: column;
        gap: 5px; /* Reducir el gap entre logo y botones */
    }

    /* 2. Botones en fila centrada en móvil */
    .navbar .navbar-nav,
    .navbar .container > div {
        flex-direction: row;
        gap: 10px;
        margin-top: 5px;
        justify-content: center;
        width: 100%;
        flex-wrap: nowrap;
    }
    
    .navbar .nav-link,
    .btn-nav-login,
    .btn-fire.rounded-pill {
        padding: 8px 15px !important;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* 3. Reparar el Hero Section (Mantenemos la base, ajustamos padding-top) */
    .hero-section {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 220px; /* Espacio para logo 110px + botones en fila */
        padding-bottom: 50px;
    }

    /* 4. Ajustes de texto y espaciado */
    .hero-section .text-start {
        text-align: center !important;
        margin-bottom: 30px;
    }
    .hero-section h1 {
        font-size: 2.3rem; /* Ligeramente más pequeño el título */
    }
    .search-container {
        padding: 20px;
    }
}

/* Placeholder text - lighter to distinguish from real input */
.form-control::placeholder,
.form-select::placeholder {
    color: #b0bec5 !important;
    opacity: 1;
}

/* --- PRICING PAGE STYLES --- */
.pricing-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('/static/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    display: flex;
    align-items: center; 
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--nyc-orange);
}

.price-tag {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--nyc-orange);
}

.feature-list-glass {
    list-style: none;
    padding: 0;
    margin-bottom: auto; /* Empuja el botón hacia abajo */
}

.feature-list-glass li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-fire-pricing {
    background-color: var(--nyc-orange);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.btn-fire-pricing:hover {
    background-color: #E65100;
    color: white;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
}

.pro-label {
    background: var(--nyc-orange);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

/* Responsive adjustments para Pricing en móviles */
@media (max-width: 991px) {
    .pricing-hero {
        padding-top: 220px; /* Alineado con el espaciado de tu Index */
        align-items: flex-start; /* Para que no se aplaste el contenido */
        height: auto;
    }
    
    .pricing-hero h1.display-3 {
        font-size: 2.5rem; /* Título principal más pequeño */
    }
    
    .price-tag {
        font-size: 2.5rem; /* Precio más pequeño */
    }
    
    .glass-card {
        padding: 20px !important; /* Menos padding lateral en móvil */
        margin-bottom: 20px; /* Separación entre tarjetas */
    }
}
