/* ============================================
   REALTORS MÉXICO - FRONTEND PÚBLICO
   Archivo: styles.css
   Para: index.html (página pública)
   ============================================ */

:root {
    /* Colores Oro */
    --gold-primary: #D4AF37;
    --gold-light: #F4E4B0;
    --gold-dark: #B8941E;
    --gold-hover: #FFD700;

    /* Grises */
    --gray-dark: #2C2C2C;
    --gray-medium: #666666;
    --gray-light: #E5E5E5;
    --gray-lighter: #F8F8F8;

    /* Negros */
    --black-primary: #1A1A1A;
    --black-soft: #333333;

    /* Sombras */
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* -------------------- RESET GENERAL -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gray-dark);
    background-color: #fff;
    line-height: 1.6;
}

/* -------------------- NAVBAR FRONTEND -------------------- */
.navbar {
    background: var(--black-primary) !important;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary) !important;
    transition: all 0.3s;
}

.navbar-brand:hover {
    color: var(--gold-hover) !important;
    transform: scale(1.05);
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: rotate(-5deg);
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold-primary) !important;
    border-bottom-color: var(--gold-primary);
}

/* -------------------- HERO SECTION -------------------- */
.hero-section {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-soft) 100%);
    color: #fff;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
            radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.hero-section .lead {
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 2rem;
}

/* -------------------- SEARCH BOX -------------------- */
.search-box {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border: 2px solid var(--gold-primary);
}

.search-box h3 {
    color: var(--black-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.search-box .form-label {
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-box .form-control,
.search-box .form-select {
    border: 2px solid var(--gray-light);
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* -------------------- BOTONES -------------------- */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--black-primary);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: var(--gold-hover);
    color: var(--black-primary);
}

.btn-outline-gold {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: var(--black-primary);
    transform: translateY(-2px);
}

/* -------------------- TARJETAS DE PROPIEDADES -------------------- */
.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 1px solid var(--gray-light);
    height: 100%;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

.property-img-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--gray-light);
}

.property-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover img {
    transform: scale(1.15);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold-primary);
    color: var(--black-primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.property-badge.renta {
    background: var(--black-primary);
    color: var(--gold-primary);
}

.property-body {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location {
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature i {
    color: var(--gold-primary);
}

/* -------------------- SECCIONES -------------------- */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black-primary);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--gray-medium);
    font-size: 1.1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-dark));
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* -------------------- ESTADÍSTICAS -------------------- */
.stats-section {
    background: var(--black-primary);
    color: #fff;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -------------------- CATEGORÍAS -------------------- */
.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 2px solid var(--gray-light);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.category-card h4 {
    color: var(--black-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-count {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* -------------------- FOOTER -------------------- */
.footer {
    background: var(--black-primary);
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--gray-dark);
    color: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gold-primary);
    color: var(--black-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-dark);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--gray-medium);
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .search-box {
        padding: 1.5rem;
        margin-top: -30px;
    }

    .property-card {
        margin-bottom: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600') center/cover;
    min-height: 500px;
    color: white;
    display: flex;
    align-items: center;
}
.search-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.card-inmueble {
    transition: transform 0.3s;
    height: 100%;
}
.card-inmueble:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.card-inmueble img {
    height: 220px;
    object-fit: cover;
}
.badge-operacion {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}
.precio {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold-primary);
}
.btn-primary{
    background-color: var(--gold-primary) !important;
    border: 1px solid var(--gold-dark) !important;
}
.btn-outline-primary{
    border: 1px solid var(--gold-dark) !important;
    color: var(--gold-primary) !important;
}
.btn-outline-primary:hover{
    background-color: var(--gold-light) !important;
}
.btn-outline-primary:active{
    background-color: var(--gold-light) !important;
}