:root {
    --kw-red: #B40101;
    --kw-red-glow: rgba(180, 1, 1, 0.1);
    --bg-light: #FFFFFF;
    --bg-soft: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #0A0A0A;
    --text-muted: #64748B;
    --accent: #E20101;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --radius-lg: 32px;
    --radius-md: 16px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 30px 60px rgba(0,0,0,0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

/* --- INNOVATIVE LIGHT BACKGROUND (Mesh Gradient) --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 10%, rgba(180, 1, 1, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(0, 0, 0, 0.02) 0%, transparent 40%),
                var(--bg-soft);
}

/* --- LOADER --- */
#loader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-logo {
    width: 120px;
    animation: zoomPulse 2s infinite ease-in-out;
}

@keyframes zoomPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* --- CLASSIC NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

nav.scrolled {
    padding: 15px 8%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.logo {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    opacity: 0.5;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--kw-red);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 8% 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(180, 1, 1, 0.05);
    color: var(--kw-red);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 30px;
    border: 1px solid rgba(180, 1, 1, 0.1);
}

.hero-title {
    font-size: clamp(50px, 10vw, 110px);
    line-height: 0.95;
    margin-bottom: 40px;
    letter-spacing: -3px;
    color: var(--text-main);
}

.hero-title span {
    color: var(--kw-red);
}

.hero-desc {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 50px;
    font-weight: 300;
}

.btn-group {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 20px 45px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.btn-main {
    background: var(--kw-red);
    color: white;
    box-shadow: 0 15px 40px var(--kw-red-glow);
}

.btn-main:hover {
    transform: translateY(-5px);
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.btn-outline:hover {
    background: var(--kw-red);
    color: #fff;
    border-color: var(--kw-red);
}

.premium-font { font-family: 'Playfair Display', serif; font-weight: 800; }

/* --- MODERN BENTO FILTER (Light) --- */
.filter-container {
    padding: 0 8%;
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

.filter-bento {
    background: white;
    padding: 35px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 30px;
    align-items: center;
    box-shadow: 0 50px 100px rgba(0,0,0,0.08);
    transition: var(--transition);
}

@media (max-width: 991px) {
    .filter-bento { grid-template-columns: repeat(2, 1fr); gap: 20px; border-radius: 30px; padding: 30px; }
    .filter-bento button { grid-column: span 2; width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
    .filter-container { margin-top: 30px; padding: 0 5%; }
    .filter-bento { grid-template-columns: 1fr; gap: 20px; padding: 25px; border-radius: 25px; }
    .filter-bento button { grid-column: auto; height: 60px; }
}

.filter-item label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.filter-input {
    width: 100%;
    background: #F8FAFC;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-main);
    padding: 15px 20px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.filter-input:focus {
    background: white;
    border-color: var(--kw-red);
    box-shadow: 0 10px 30px rgba(180, 1, 1, 0.05);
}

/* --- PROPERTY CARDS (Premium Light) --- */
.section-padding { padding: 180px 8%; }

.grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 60px;
}

.card-modern {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    box-shadow: 0 15px 45px rgba(0,0,0,0.02);
}

.card-modern:hover {
    transform: translateY(-20px);
    border-color: rgba(180, 1, 1, 0.2);
    box-shadow: var(--shadow-premium);
}

.card-media {
    height: 480px;
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-modern:hover .card-img {
    transform: scale(1.08);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px;
    background: linear-gradient(to top, white 20%, rgba(255,255,255,0.8) 60%, transparent);
}

.card-tag {
    background: var(--kw-red);
    color: white;
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 100px;
    margin-bottom: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-price {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.card-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.4;
}

.card-stats {
    display: flex;
    gap: 30px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 700;
}

.card-stats i { color: var(--kw-red); margin-right: 8px; }

/* --- AGENT SECTION (Full Modern Light) --- */
.agent-modern {
    background: var(--bg-soft);
    padding: 180px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}

.agent-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.agent-img {
    width: 100%;
    height: 850px;
    object-fit: cover;
}

.agent-info {
    max-width: 600px;
}

.agent-name {
    font-size: 90px;
    line-height: 0.9;
    margin-bottom: 40px;
    letter-spacing: -4px;
}

.agent-name span { color: var(--kw-red); }

.agent-desc {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-weight: 300;
}

.agent-stats {
    display: flex;
    gap: 80px;
}

.stat-item h3 { font-size: 56px; color: var(--kw-red); margin: 0; }
.stat-item p { font-size: 11px; text-transform: uppercase; letter-spacing: 3px; color: var(--text-muted); font-weight: 700; margin-top: 10px; }

/* --- FOOTER (Classic Dark) --- */
footer {
    padding: 100px 8% 40px;
    background: #0A0A0A;
    color: white;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 80px;
    margin-bottom: 80px;
}

.footer-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 18px;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 400;
}

.footer-link:hover { color: white; transform: translateX(8px); }

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .grid-modern { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    .agent-modern { grid-template-columns: 1fr; gap: 60px; }
    .hero-title { font-size: clamp(40px, 12vw, 70px); }
    nav { width: 100%; padding: 15px 5%; top: 0; }
    .nav-links { display: none; } 
    .agent-img { height: 500px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 50px; }
    
    .propiedades-layout { grid-template-columns: 1fr !important; gap: 40px !important; }
    .contacto-layout { grid-template-columns: 1fr !important; gap: 50px !important; }
    .contacto-form-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .nosotros-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
}

@media (max-width: 768px) {
    nav { justify-content: space-between; }
    .lang-wrapper { display: none; } /* Hide language on mobile header to save space */
    .btn-main { padding: 10px 20px !important; font-size: 10px !important; }
}

@media (max-width: 600px) {
    .hero { padding-top: 150px; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .btn-group { flex-direction: column; width: 100%; gap: 15px; }
    .btn { width: 100%; justify-content: center; }
    
    .grid-modern { grid-template-columns: 1fr; gap: 30px; }
    .section-padding { padding: 80px 5%; }
    
    .agent-name { font-size: 50px; }
    .agent-stats { gap: 40px; flex-direction: column; }
    .stat-item h3 { font-size: 40px; }
    
    .footer-main { grid-template-columns: 1fr; gap: 40px; text-align: left; }
    .footer-link:hover { transform: none; }
}

/* --- RESPONSIVE LAYOUT CLASSES --- */
.propiedades-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
}

.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.contacto-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* --- PREMIUM TRANSLATOR --- */
.lang-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    padding: 8px 15px;
    border-radius: 100px;
    color: var(--text-main);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--kw-red);
    color: white;
    border-color: var(--kw-red);
}

.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
    display: none !important;
}

#google_translate_element {
    display: none;
}
