/* css/styles.css - Estilos Profesionales para Inmobiliaria Digital */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ff6b35;
    --bg-color: #f8f9fa;
}

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

/* ========== NAVBAR ========== */
.navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    padding: 12px 0;
    transition: all 0.3s;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s;
}

.navbar .nav-link:hover {
    color: var(--accent-color) !important;
}

/* ========== HERO CARRUSEL ========== */
.hero-carousel {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 0;
}

#heroCarousel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 8s ease;
}

.carousel-item.active .carousel-bg {
    transform: scale(1.05);
}

.carousel-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.carousel-content h1,
.carousel-content h2 {
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.carousel-content .lead {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.carousel-content .input-group {
    animation: fadeInUp 1.2s ease;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin: 0 6px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.carousel-indicators button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== TARJETAS DE PROPIEDADES ========== */
.propiedad-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background: white;
    height: 100%;
}

.propiedad-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.propiedad-card .card-img-top {
    transition: transform 0.6s ease;
    height: 220px;
    object-fit: cover;
}

.propiedad-card:hover .card-img-top {
    transform: scale(1.05);
}

.propiedad-card .card-body {
    padding: 1.25rem;
}

.propiedad-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.propiedad-card .precio {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.propiedad-card .badge {
    font-weight: 500;
    padding: 6px 12px;
}

.propiedad-card .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 10px;
    transition: all 0.3s;
}

.propiedad-card .btn:hover {
    transform: scale(1.02);
}

/* ========== TARJETAS DESTACADAS ========== */
.card-destacada {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.card-destacada:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.card-destacada img {
    transition: transform 0.6s ease;
}

.card-destacada:hover img {
    transform: scale(1.05);
}

/* ========== BOTONES ========== */
.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-success {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.3);
}

.btn-outline-primary {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* ========== FOOTER ========== */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 25px 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .carousel-item {
        height: 80vh;
        min-height: 500px;
    }
    .carousel-content h1 {
        font-size: 2.5rem;
    }
    .carousel-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    .carousel-item {
        height: 70vh;
        min-height: 400px;
    }
    .carousel-content h1 {
        font-size: 2rem;
    }
    .carousel-content h2 {
        font-size: 1.6rem;
    }
    .carousel-content .lead {
        font-size: 0.95rem;
    }
    .propiedad-card .card-img-top {
        height: 180px;
    }
    .propiedad-card .precio {
        font-size: 1.05rem;
    }
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .input-group {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 60vh;
        min-height: 350px;
    }
    .carousel-content h1 {
        font-size: 1.6rem;
    }
    .carousel-content h2 {
        font-size: 1.3rem;
    }
    .carousel-content .lead {
        font-size: 0.85rem;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }
    .propiedad-card .card-img-top {
        height: 150px;
    }
    .propiedad-card .card-title {
        font-size: 0.95rem;
    }
    .filtrosContainer .btn {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}