:root {
    --primary-color: #111111; /* Negro */
    --secondary-color: #d4af37; /* Dorado */
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --gray: #777;
    --border-radius: 4px; /* Un poco más cuadrado para un look más serio */
    --shadow: 0 4px 6px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Header */
.main-header {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    padding: 10px 0;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 60px;
    border-radius: 50%; /* Si el logo es cuadrado, esto lo hace redondo, opcional */
}

/* Ajuste específico para texto al lado del logo si hiciera falta, pero usamos img */

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh; /* Un poco menos de altura para ser más compacto */
    overflow: hidden;
    margin-top: 0px;
}

.carousel {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-track {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.search-container {
    background: rgba(17, 17, 17, 0.6); /* Fondo oscuro transparente */
    padding: 40px;
    border-radius: 0; /* Bordes rectos */
    border: 1px solid var(--secondary-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 900px;
    text-align: center;
}

.search-container h2 {
    margin-bottom: 30px;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 2px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    cursor: pointer;
    background: rgba(10, 10, 10, 0.9) !important; /* Fondo negro casi opaco */
    padding: 30px !important; /* ORIGINAL padding */
    max-width: 1100px !important;
}

.form-group {
    flex: 1 1 200px;
    cursor: pointer;
}

.search-form select, 
.search-form input {
    width: 100%;
    padding: 15px; /* ORIGINAL padding */
    height: auto;
    border: 1px solid #444;
    background-color: #222;
    color: #fff;
    border-radius: 0;
    font-size: 1rem; /* ORIGINAL fontSize */
    cursor: pointer;
}

.search-form select:focus, 
.search-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-search {
    background-color: var(--secondary-color);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    flex: 0 0 auto;
}

.btn-search:hover {
    background-color: #fff;
    color: #000;
}

/* Properties Grid */
.recent-properties {
    background-color: var(--white);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

@media (min-width: 992px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.property-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.card-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

/* Efecto Hover Overlay */
.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.7); /* Oscuro elegante */
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.card-image::after {
    content: 'VER DETALLES';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid var(--secondary-color);
    padding: 10px 20px;
    text-transform: uppercase;
    opacity: 0;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    z-index: 2;
}

.property-card:hover .card-image::before {
    opacity: 1;
}

.property-card:hover .card-image::after {
    opacity: 1;
    transform: translate(-50%, -50%); /* Pequeño movimiento hacia el centro exacto */
    background: rgba(0,0,0,0.5);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover .card-image img {
    transform: scale(1.1);
}

.tag {
    position: absolute;
    top: 20px;
    right: 20px; /* Cambiado a la derecha */
    left: auto;
    padding: 8px 15px;
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag.sale {
    background-color: var(--secondary-color);
}

.tag.rent {
    background-color: var(--white);
    border: 1px solid #000;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 400;
}

.card-content .location {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card-content .price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color); /* Precio en negro */
    margin-bottom: 20px;
    display: block;
}

.features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 0.95rem;
    color: #555;
}

.features span i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* Info Sections - Rediseño */
.info-sections-wrapper {
    background-color: #fff;
}

.info-section.light-bg {
    background-color: #f4f4f4;
}

.info-section.dark-bg {
    background-color: var(--primary-color);
    color: var(--white);
}

.info-section {
    padding: 80px 0;
}

.info-section .section-title {
    margin-bottom: 60px;
}

.dark-bg .section-title {
    color: var(--secondary-color);
}

.text-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #444;
}

.dark-bg .text-content p {
    color: #ccc;
}

.styled-list {
    margin: 30px 0;
    padding-left: 20px;
    border-left: 3px solid var(--secondary-color);
}

.styled-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.highlight-text {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-align: center;
    margin-top: 30px;
    border: 1px solid var(--secondary-color);
    padding: 20px;
    display: inline-block;
}

/* Valor y Estrategia - Nuevo formato Grid */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.strategy-card {
    background: #fff;
    padding: 40px 30px;
    border-bottom: 4px solid var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.strategy-card:hover {
    transform: translateY(-10px);
}

.strategy-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.strategy-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Proceso - Timeline vertical */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.timeline-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.3); /* Dorado transparente */
    line-height: 1;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-content ul {
    list-style: circle; /* Usar 'circle' para la propiedad list-style-type */
    margin-left: 20px;
    color: #555;
}


/* Footer Contacto */
.footer-contact {
    background-color: #111;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    border-top: 5px solid var(--secondary-color);
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* --- Search Form Styles (Enhanced) --- */
.search-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 1000px; /* Wider for more inputs */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.search-main-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-main-row .form-group {
    flex: 1;
    min-width: 150px;
}

.search-main-row input, .search-main-row select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-search {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-search:hover {
    background-color: #b89628;
}

/* Advanced Toggle */
.advanced-toggle {
    text-align: center;
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    padding: 5px;
}

.advanced-toggle:hover {
    color: var(--secondary-color);
}

/* Advanced Panel */
.advanced-filters {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    text-align: left;
}

.filter-group-row {
    margin-bottom: 20px;
}

.filter-group-row h4, .filter-group-cols h4 {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.fg-inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.fg-inputs input, .fg-inputs select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.tiny-select { width: 80px; }
.fg-inputs input[type="number"] { width: auto; min-width: 100px; }

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.check-label {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: normal; /* Permitir salto de línea */
    line-height: leading-tight;
}

.hl-check {
    color: var(--secondary-color);
    font-weight: bold;
}

/* 3 Cols for checkboxes */
.filter-group-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.col-checks label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    cursor: pointer;
}

.col-checks label input {
    margin-right: 5px;
}

@media(max-width: 768px) {
    /* Existing basic resets */
    .search-main-row { flex-direction: column; }
    
    /* MODIFIED: 2 cols for advanced filters on mobile instead of 1 */
    .filter-group-cols { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }
    
    /* Make sure inputs dont overflow in grid-4 on mobile */
    .grid-4 { 
        grid-template-columns: repeat(2, 1fr); 
    } 

    /* 1. Hero Adjustments */
    .hero-section {
        min-height: auto !important; /* Allow natural height */
        padding-bottom: 20px;
        height: auto !important;
    }
    
    .hero-overlay {
        padding: 100px 15px 40px 15px; /* Reduce side paddings */
        min-height: auto; 
    }
    
    .hero-logo {
        width: 120px; /* Smaller logo */
        height: 120px;
        margin-bottom: 20px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem; /* Smaller title */
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    /* 2. Search Form Adjustments */
    .search-form {
        padding: 20px 15px !important;
        margin: 0 auto;
        width: 100% !important;
        border-radius: 4px; 
    }
    
    .search-main-row {
        align-items: stretch;
    }

    .search-main-row .form-group {
        min-width: 100%; /* Force inputs to stack full width */
        margin-bottom: 15px;
        flex: none;
    }
    
    .btn-search {
        width: 100%; /* Full width button */
        padding: 15px !important;
        margin-top: 10px;
    }
    
    /* 3. Properties Grid */
    #properties-container {
        grid-template-columns: 1fr; /* 1 card per row */
        gap: 20px;
        padding: 0 10px;
    }
    
    /* 4. General Layout */
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }

    .timeline-number {
        font-size: 2.5rem;
    }

    /* Navbar mobile tweaks (assuming .navbar exists) */
    .logo {
        font-size: 1.2rem;
    }
    
    /* 6. Header Mobile Specifics */
    .main-header h1 {
        display: none; /* Hide header text on mobile */
    }

    .mobile-menu-btn {
        display: block; /* Show hamburger */
    }

    .main-nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 70%;
        height: 100vh; /* Better coverage */
        background: rgba(10,10,10,0.98); /* Less transparent */
        border-left: 2px solid var(--secondary-color);
        transition: right 0.3s ease;
        padding: 40px 20px;
        z-index: 9999;
        display: flex !important; /* Force flex for column layout */
        flex-direction: column;
        visibility: hidden; /* Hide when closed */
    }

    .main-nav.active {
        right: 0;
        visibility: visible;
    }


    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .main-nav a {
        font-size: 1.2rem;
    }
}

/* --- FIX HERO & SEARCH --- */

/* Hero flexible para que crezca con el contenido */
.hero-section {
    height: auto !important;
    min-height: 100vh; /* M�nimo toda la pantalla */
    overflow: visible !important; /* Permitir que se vea todo */
    display: flex;
    flex-direction: column;
}

.hero-overlay {
    position: relative !important; /* Ya no absoluto para que empuje el contenido */
    min-height: 100vh;
    padding: 120px 20px 60px 20px; /* Padding arriba para compensar header fijo */
    height: auto !important;
    background: rgba(0,0,0,0.6); /* Oscuro sobre la foto */
}

/* Logo Hero Class */
.hero-logo {
    display: block;
    margin: 0 auto 30px auto;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* SEARCH FORM REDESIGN (DARK & CLEAN) */
.search-form {
    background: rgba(10, 10, 10, 0.9) !important; /* Fondo negro casi opaco */
    border: 1px solid #333;
    border-top: 4px solid var(--secondary-color);
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 30px !important;
    max-width: 1100px !important;
}

@media(max-width: 768px) {
    .search-form {
        padding: 20px 15px !important;
        width: 100% !important;
    }
    .search-form input, .search-form select {
        padding: 15px 10px !important;
        font-size: 1rem !important;
        height: 50px !important;
    }
    .hero-logo {
        width: 120px;
        height: 120px;
    }
    .search-container{
        padding: 20px;
        width: 100%;
    }
}


.search-main-row {
    justify-content: center; /* Centrar elementos */
}


/* Inputs High Contrast */
.search-form input, 
.search-form select {
    background-color: #ffffff !important; /* Fondo BLANCO puro */
    color: #111111 !important; /* Texto NEGRO puro */
    border: 2px solid #ccc !important;
    font-weight: 500;
}

.search-form input:focus, 
.search-form select:focus {
    border-color: var(--secondary-color) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.search-form ::placeholder {
    color: #666 !important;
    opacity: 1;
}

/* Bot�n Buscar */
.btn-search {
    background-color: var(--secondary-color) !important;
    color: #000 !important;
    font-size: 1.1rem !important;
    padding: 12px 40px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-search:hover {
    background-color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Advanced Toggle */
.advanced-toggle {
    color: var(--secondary-color) !important;
    font-size: 1rem !important;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    display: inline-block;
    border: 1px solid var(--secondary-color);
}

.advanced-toggle:hover {
    background: var(--secondary-color);
    color: #000 !important;
}

/* Advanced Filters Panel */
.advanced-filters {
    border-top: 1px solid #444 !important;
    margin-top: 20px;
    padding-top: 25px;
}

.filter-group-row h4, .filter-group-cols h4 {
    color: var(--secondary-color) !important;
    border-bottom: 1px solid #444 !important;
    text-align: left; /* T�tulos alineados a la izquierda para orden */
    font-size: 1rem;
    letter-spacing: 1px;
}

.fg-inputs {
    justify-content: flex-start; /* Inputs alineados inicio */
}

.fg-inputs span {
    color: #ddd;
    font-size: 0.9rem; 
    white-space: normal;
    font-weight: 500;
}

.check-label {
    color: #ddd; /* Texto claro legible */
    font-size: 0.95rem;
}

.col-checks label {
    color: #ddd;
    text-align: left;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.col-checks label:hover {
    color: var(--secondary-color);
}

/* Checkbox Style */
input[type="checkbox"] {
    accent-color: var(--secondary-color);
    width: 16px; 
    height: 16px;
    margin-right: 8px;
}

.hl-check {
    color: var(--secondary-color) !important;
    font-weight: bold;
    font-size: 1rem;
    padding: 5px 10px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 4px;
}
