:root {
    --navy: #233c56;
    --cyan: #0ed6d6;
    --lime: #a4d93e;
    --glass: rgba(255,255,255,0.9);
    --shadow: 0 20px 60px rgba(0,0,0,0.2);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.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;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(35,60,86,0.7), rgba(14,214,214,0.5), rgba(164,217,62,0.5));
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background iframe {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    pointer-events: none;
}

/* SEARCH CONTAINER */
.search-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}

.glass-form {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

/* TABS DE BÚSQUEDA */
.search-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background: #e2e8f0;
    border-radius: 50px;
    padding: 5px;
}

.search-tabs .tab {
    flex: 1;
    padding: 15px 30px;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
    color: var(--navy);
    background: transparent;
    border: none;
    position: relative;
    user-select: none;
}

.search-tabs .tab:hover {
    background: rgba(14, 214, 214, 0.1);
}

.search-tabs .tab.active {
    background: linear-gradient(135deg, var(--cyan), var(--navy));
    color: white;
    box-shadow: 0 5px 15px rgba(14, 214, 214, 0.3);
}

.search-tabs input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* GRID DE BÚSQUEDA */
.search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group.full {
    grid-column: span 4;
}

.input-group.small {
    grid-column: span 1;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--cyan);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    background: white;
    color: var(--navy);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230ed6d6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(14, 214, 214, 0.1);
}

.input-group input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Sin icono en inputs simples */
.input-group:not(:has(i)) input,
.input-group:not(:has(i)) select {
    padding-left: 15px;
}

/* BOTÓN DE BÚSQUEDA */
.btn-search {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--cyan), var(--navy));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(14, 214, 214, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(14, 214, 214, 0.4);
}

.btn-search i {
    font-size: 1.2rem;
}

/* SECCIÓN DE PROPIEDADES */
.section-padding {
    padding: 80px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    color: var(--navy);
    margin-bottom: 60px;
}

.section-title .highlight {
    color: var(--cyan);
}

/* CAROUSEL */
.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.property-card {
    min-width: 320px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.4s;
    cursor: pointer;
    border-top: 3px solid transparent;
}

.property-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--cyan);
    box-shadow: 0 20px 40px rgba(14, 214, 214, 0.2);
}

.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.property-card:hover .card-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: white;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.badge.venta {
    background: linear-gradient(135deg, var(--cyan), #0ab4b4);
}

.badge.alquiler {
    background: linear-gradient(135deg, var(--lime), #8bc234);
    color: var(--navy);
}

.price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(35, 60, 86, 0.95);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card-details {
    padding: 25px;
}

.card-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
    min-height: 50px;
}

.features {
    display: flex;
    justify-content: space-around;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.features span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
}

.features i {
    color: var(--cyan);
    font-size: 1.8rem;
}

/* FEATURED SECTION */
.featured-section {
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
}

.featured-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.golden-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--navy);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.featured-info h2 {
    font-size: 2.5rem;
    color: var(--navy);
    font-weight: 900;
    margin-bottom: 20px;
}

.featured-price {
    font-size: 2.5rem;
    color: var(--cyan);
    font-weight: 900;
    margin-bottom: 25px;
}

.excerpt {
    font-size: 1.1rem;
    color: #718096;
    line-height: 1.8;
    margin-bottom: 35px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--cyan), var(--navy));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(14, 214, 214, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(14, 214, 214, 0.4);
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .featured-container {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .glass-form {
        padding: 25px;
    }
    
    .search-tabs .tab {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* GRID MÓVIL - 2 COLUMNAS */
    .search-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .input-group.full {
        grid-column: span 2;
    }
    
    .input-group.small {
        grid-column: span 1;
    }
    
    .input-group input,
    .input-group select {
        padding: 12px 12px 12px 38px;
        font-size: 0.85rem;
    }
    
    .input-group i {
        left: 12px;
        font-size: 0.95rem;
    }
    
    .input-group:not(:has(i)) input,
    .input-group:not(:has(i)) select {
        padding-left: 12px;
    }
    
    .input-group select {
        background-position: right 10px center;
        padding-right: 30px;
    }
    
    .btn-search {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .section-padding {
        padding: 50px 15px;
    }
    
    .property-card {
        min-width: 280px;
    }
    
    .featured-info h2 {
        font-size: 1.8rem;
    }
    
    .featured-price {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group.full,
    .input-group.small {
        grid-column: span 1;
    }
    
    .search-tabs {
        flex-direction: column;
        gap: 0;
        border-radius: 15px;
    }
    
    .search-tabs .tab {
        border-radius: 0;
        padding: 15px;
    }
    
    .search-tabs .tab:first-child {
        border-radius: 15px 15px 0 0;
    }
    
    .search-tabs .tab:last-child {
        border-radius: 0 0 15px 15px;
    }
}

/* SELECTOR DE UBICACIÓN MEJORADO */
.ubicacion-select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    background: white;
    color: var(--navy);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230ed6d6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
}

.ubicacion-select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(14, 214, 214, 0.1);
}

.ubicacion-select option {
    padding: 10px;
    font-weight: 600;
}

.ubicacion-select optgroup {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--navy);
    padding: 5px 0;
}

.ubicacion-select optgroup option {
    padding-left: 15px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .ubicacion-select {
        padding: 12px 30px 12px 38px;
        font-size: 0.85rem;
        background-position: right 10px center;
    }
}
