/* Tráfico Inmobiliario - Estilos CSS con Dark Mode */

/* RESET & BASE */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background:#f8fafc;color:#1e293b;line-height:1.6;-webkit-font-smoothing:antialiased;transition:background .3s,color .3s}
html.dark body{background:#0f172a;color:#e2e8f0}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}
button,input,select,textarea{font-family:inherit;font-size:inherit;border:none;outline:none;background:none}
button{cursor:pointer}

/* VARIABLES */
:root{
--primary-50:#e8f0fe;--primary-100:#c5d9fc;--primary-500:#0f2b47;--primary-600:#0d253e;--primary-700:#0a1d33;--primary-800:#071527;--primary-900:#040d1a;
--secondary-50:#eff6ff;--secondary-100:#dbeafe;--secondary-400:#60a5fa;--secondary-500:#2563eb;--secondary-600:#1d4ed8;--secondary-700:#1e40af;
--accent-50:#fefce8;--accent-100:#fef9c3;--accent-300:#fde047;--accent-400:#facc15;--accent-500:#eab308;--accent-600:#ca8a04;--accent-700:#a16207;
--white:#fff;--gray-50:#f8fafc;--gray-100:#f1f5f9;--gray-200:#e2e8f0;--gray-300:#cbd5e1;--gray-400:#94a3b8;--gray-500:#64748b;--gray-600:#475569;--gray-700:#334155;--gray-800:#1e293b;--gray-900:#0f172a;
--green-500:#22c55e;--green-600:#16a34a;--red-500:#ef4444;--red-600:#dc2626;
--shadow-sm:0 1px 2px rgba(0,0,0,.05);--shadow-md:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--shadow-lg:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--shadow-xl:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);
--radius-sm:.375rem;--radius-md:.5rem;--radius-lg:.75rem;--radius-xl:1rem;--radius-full:9999px;--transition:.2s ease}

/* UTILIDADES */
.container{max-width:1280px;margin:0 auto;padding:0 1rem}
@media(min-width:640px){.container{padding:0 1.5rem}}
@media(min-width:1024px){.container{padding:0 2rem}}
.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}
.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}
.grid{display:grid}.grid-cols-1{grid-template-columns:repeat(1,1fr)}.grid-cols-2{grid-template-columns:repeat(2,1fr)}.grid-cols-3{grid-template-columns:repeat(3,1fr)}.grid-cols-4{grid-template-columns:repeat(4,1fr)}
@media(min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,1fr)}.md\:grid-cols-3{grid-template-columns:repeat(3,1fr)}.md\:grid-cols-4{grid-template-columns:repeat(4,1fr)}}
@media(min-width:1024px){.lg\:grid-cols-2{grid-template-columns:repeat(2,1fr)}.lg\:grid-cols-3{grid-template-columns:repeat(3,1fr)}}
.hidden{display:none}
@media(min-width:768px){.md\:flex{display:flex}.md\:hidden{display:none}}
.text-center{text-align:center}.text-sm{font-size:.875rem}.text-lg{font-size:1.125rem}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.text-3xl{font-size:1.875rem}.text-4xl{font-size:2.25rem}
@media(min-width:768px){.md\:text-3xl{font-size:1.875rem}.md\:text-5xl{font-size:3rem}}
.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.font-extrabold{font-weight:800}
.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.mx-auto{margin-left:auto;margin-right:auto}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}
.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}
.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-16{padding-top:4rem;padding-bottom:4rem}
.rounded-full{border-radius:var(--radius-full)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}
.shadow-md{box-shadow:var(--shadow-md)}.shadow-lg{box-shadow:var(--shadow-lg)}.shadow-xl{box-shadow:var(--shadow-xl)}
.overflow-hidden{overflow:hidden}.relative{position:relative}..absolute{position:absolute}.fixed{position:fixed}
.inset-0{top:0;right:0;bottom:0;left:0}.top-0{top:0}.left-0{left:0}.right-0{right:0}.bottom-0{bottom:0}.z-50{z-index:50}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.object-cover{object-fit:cover}

/* NAVBAR */
.navbar{position:fixed;top:0;left:0;right:0;z-index:50;background:var(--primary-500);box-shadow:var(--shadow-lg);height:64px;transition:background .3s}
html.dark .navbar{background:#0f172a}
.navbar-inner{max-width:1280px;margin:0 auto;padding:0 1rem;display:flex;align-items:center;justify-content:space-between;height:100%}
.nav-logo{display:flex;align-items:center}.nav-logo img{height:40px;width:auto;transition:transform var(--transition)}.nav-logo:hover img{transform:scale(1.05)}
.nav-links{display:none;align-items:center;gap:4px}@media(min-width:768px){.nav-links{display:flex}}
.nav-link{display:flex;align-items:center;gap:6px;padding:8px 16px;border-radius:var(--radius-lg);font-size:.875rem;font-weight:500;color:rgba(255,255,255,.8);transition:all var(--transition)}
.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.15);color:var(--white)}
.nav-actions{display:flex;align-items:center;gap:8px}
.dark-mode-toggle{padding:8px;border-radius:var(--radius-lg);color:rgba(255,255,255,.8);transition:all var(--transition);background:transparent;border:none;cursor:pointer;font-size:1.25rem}
.dark-mode-toggle:hover{background:rgba(255,255,255,.15);color:var(--white)}

/* HERO */
.hero{position:relative;min-height:90vh;display:flex;align-items:center;color:var(--white);overflow:hidden;padding-top:64px}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(4,13,26,.85),rgba(7,21,39,.8),rgba(4,13,26,.9))}
.hero-bottom-fade{position:absolute;bottom:0;left:0;right:0;height:6rem;background:linear-gradient(to top,#f8fafc,transparent)}
html.dark .hero-bottom-fade{background:linear-gradient(to top,#0f172a,transparent)}
.hero-content{position:relative;max-width:1280px;margin:0 auto;padding:80px 1rem;width:100%}
.hero-center{text-align:center;max-width:48rem;margin:0 auto}
.hero-logo{display:flex;justify-content:center;margin-bottom:24px}
.hero-logo img{height:192px;filter:drop-shadow(0 4px 12px rgba(0,0,0,.3))}
@media(max-width:767px){.hero-logo img{height:120px}}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(234,179,8,.2);color:var(--accent-300);padding:6px 16px;border-radius:var(--radius-full);font-size:.875rem;font-weight:500;margin-bottom:24px;border:1px solid rgba(234,179,8,.3)}
.hero h1{font-size:2.25rem;font-weight:800;margin-bottom:24px;line-height:1.15}
@media(min-width:768px){.hero h1{font-size:3rem}}
@media(min-width:1024px){.hero h1{font-size:3.75rem}}
@media(max-width:767px){.hero h1{font-size:1.75rem}}
.hero h1 .highlight{background:linear-gradient(to right,var(--accent-400),var(--accent-300));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-subtitle{font-size:1.125rem;color:rgba(255,255,255,.8);margin-bottom:32px;max-width:42rem;margin-left:auto;margin-right:auto}
@media(min-width:768px){.hero-subtitle{font-size:1.25rem}}
.hero-quick-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:24px}
.hero-quick-link{font-size:.875rem;color:rgba(255,255,255,.7);background:rgba(255,255,255,.1);padding:6px 16px;border-radius:var(--radius-full);transition:all var(--transition)}
.hero-quick-link:hover{color:var(--white);background:rgba(255,255,255,.2)}

/* SEARCH BAR */
.search-bar{display:flex;align-items:center;background:var(--white);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-lg);max-width:42rem;margin:0 auto 24px}
html.dark .search-bar{background:#1e293b}
.search-bar input{flex:1;padding:16px 20px;color:var(--gray-900);font-size:1rem}
html.dark .search-bar input{color:#e2e8f0}
.search-bar input::placeholder{color:var(--gray-400)}
.search-bar button{background:var(--secondary-500);color:var(--white);padding:16px 24px;font-weight:500;display:flex;align-items:center;gap:8px;transition:background var(--transition);white-space:nowrap}
.search-bar button:hover{background:var(--secondary-600)}

/* STATS SECTION */
.stats-section{padding:32px 0;background:var(--white);border-bottom:1px solid var(--gray-200);transition:background .3s,border-color .3s}
html.dark .stats-section{background:#1e293b;border-color:#334155}
.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
@media(min-width:768px){.stats-grid{grid-template-columns:repeat(4,1fr)}}
.stat-item{text-align:center}
.stat-icon{font-size:1.5rem;margin-bottom:4px}
.stat-value{font-size:1.875rem;font-weight:700;color:var(--primary-500)}
html.dark .stat-value{color:var(--white)}
.stat-label{font-size:.875rem;color:var(--gray-500)}
html.dark .stat-label{color:var(--gray-400)}

/* SECTIONS */
.section{padding:64px 0;transition:background .3s}
.section-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:32px;flex-wrap:wrap;gap:16px}
.section-header h2{font-size:1.5rem;font-weight:700;color:var(--primary-500)}
html.dark .section-header h2{color:var(--white)}
.section-header p{color:var(--gray-500);margin-top:4px}
html.dark .section-header p{color:var(--gray-400)}

/* PROPERTY CARDS */
.properties-grid{display:grid;grid-template-columns:repeat(1,1fr);gap:24px}
@media(min-width:768px){.properties-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.properties-grid{grid-template-columns:repeat(3,1fr)}}
.property-card{display:block;border-radius:var(--radius-xl);overflow:hidden;background:var(--white);box-shadow:var(--shadow-md);transition:all .3s ease}
html.dark .property-card{background:#1e293b}
.property-card:hover{box-shadow:var(--shadow-xl)}
.card-image{position:relative;overflow:hidden;height:200px}
.card-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.property-card:hover .card-image img{transform:scale(1.05)}
.card-image::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.4),transparent)}
.card-badges{position:absolute;top:8px;left:8px;display:flex;flex-wrap:wrap;gap:6px}
.badge{display:inline-flex;align-items:center;padding:2px 10px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600}
.badge-hot{background:var(--red-500);color:var(--white);animation:hotPulse 2s ease-in-out infinite}
.badge-type{background:rgba(15,43,71,.9);color:var(--white)}
.badge-status{background:var(--accent-500);color:var(--primary-900)}
.card-price-overlay{position:absolute;bottom:8px;left:8px}
.card-price-overlay .price{font-size:1.25rem;font-weight:700;color:var(--white);text-shadow:0 2px 4px rgba(0,0,0,.3)}
.card-price-overlay .period{font-size:.875rem;color:rgba(255,255,255,.8);margin-left:4px}
.card-body{padding:16px}
.card-title{font-weight:600;font-size:1.125rem;color:var(--gray-900);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color var(--transition)}
html.dark .card-title{color:var(--white)}
.property-card:hover .card-title{color:var(--secondary-500)}
.card-location{display:flex;align-items:center;gap:4px;margin-top:4px;font-size:.875rem;color:var(--gray-500)}
html.dark .card-location{color:var(--gray-400)}
.walk-score{display:flex;align-items:center;gap:2px;margin-left:auto;font-size:.875rem}
.walk-score .star{color:#fbbf24}
.card-specs{display:flex;align-items:center;gap:16px;margin-top:12px;padding-top:12px;border-top:1px solid var(--gray-100);font-size:.875rem;color:var(--gray-600)}
html.dark .card-specs{border-color:#334155;color:var(--gray-400)}
.card-price-m2{margin-top:8px;font-size:.75rem;color:var(--gray-400)}

/* FEATURE CARDS */
.features-grid{display:grid;grid-template-columns:repeat(1,1fr);gap:24px}
@media(min-width:768px){.features-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.features-grid{grid-template-columns:repeat(3,1fr)}}
.feature-card{padding:24px;border-radius:var(--radius-xl);background:var(--white);box-shadow:var(--shadow-md);border:2px solid transparent;transition:all .3s ease}
html.dark .feature-card{background:#1e293b}
.feature-card:hover{border-color:rgba(234,179,8,.5)}
.feature-card .icon{font-size:2.5rem;margin-bottom:16px}
.feature-card h3{font-size:1.125rem;font-weight:700;color:var(--primary-500);margin-bottom:8px;transition:color var(--transition)}
html.dark .feature-card h3{color:var(--white)}
.feature-card:hover h3{color:var(--accent-500)}
.feature-card p{font-size:.875rem;color:var(--gray-500)}
html.dark .feature-card p{color:var(--gray-400)}

/* CTA SECTION */
.cta-section{background:linear-gradient(to right,var(--primary-500),var(--primary-800));padding:64px 0;color:var(--white)}
html.dark .cta-section{background:linear-gradient(to right,#0f172a,#1e293b)}
.cta-icon{font-size:3rem;margin-bottom:16px}
.cta-section h2{font-size:1.875rem;font-weight:700;margin-bottom:16px}
.cta-section p{color:rgba(255,255,255,.8);font-size:1.125rem;margin-bottom:32px}
.cta-buttons{display:flex;flex-direction:column;gap:16px;justify-content:center}
@media(min-width:640px){.cta-buttons{flex-direction:row}}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border-radius:var(--radius-lg);font-weight:600;font-size:1rem;transition:all var(--transition);border:none;cursor:pointer}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--secondary-500);color:var(--white)}
.btn-primary:hover{background:var(--secondary-600);box-shadow:var(--shadow-lg)}
.btn-white{background:var(--white);color:var(--primary-500)}
.btn-white:hover{background:var(--gray-100)}
.btn-outline{background:transparent;color:var(--primary-500);border:2px solid var(--primary-500)}
html.dark .btn-outline{color:var(--white);border-color:var(--white)}
.btn-outline:hover{background:var(--primary-500);color:var(--white)}
.btn-outline-white{background:transparent;color:var(--white);border:2px solid var(--white)}
.btn-outline-white:hover{background:var(--white);color:var(--primary-500)}
.btn-sm{padding:8px 16px;font-size:.875rem}

/* FOOTER */
.footer{background:var(--primary-800);color:rgba(255,255,255,.7);padding:32px 0;transition:background .3s}
html.dark .footer{background:#0f172a}
.footer .container{max-width:1280px;margin:0 auto;padding:0 1rem}
.footer-content{display:flex;flex-direction:column;align-items:center;gap:16px}
@media(min-width:768px){.footer-content{flex-direction:row;justify-content:space-between}}
.footer-logo a{display:flex;align-items:center}
.footer-logo img{height:32px}
.footer-copy{font-size:.875rem;color:rgba(255,255,255,.5)}

/* ANIMATIONS */
@keyframes hotPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideUp{from{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}
.animate-fade-in{animation:fadeIn .5s ease-in-out}
.animate-slide-up{animation:slideUp .3s ease-out}

/* PRINT */
@media print{.navbar,.hero-quick-links,.cta-buttons{display:none}.hero{min-height:auto;padding:20px 0}}