/* ============================================
   FUENTES Y RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #ffffff;
}

a {
    text-decoration: none;
}

/* ============================================
   HERO SECTION (Index)
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* ============================================
   PROPERTY CARDS (Index y Properties)
   ============================================ */
.property-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.property-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a5298;
}

.property-features {
    padding: 10px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.property-features i {
    color: #2a5298;
    width: 20px;
}

/* ============================================
   SEARCH BOX (Index y Properties)
   ============================================ */
.search-box {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
}

/* ============================================
   BARRA SUPERIOR (Header)
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    padding: 6px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #ffffff;
}

.top-bar .contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
}

.top-bar .contact-item i {
    font-size: 0.9rem;
}

.top-bar .whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.top-bar .whatsapp-btn:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.05);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.navbar-brand .logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.navbar-brand:hover .logo-circle {
    border-color: rgba(255,255,255,0.8);
    transform: scale(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-top: 3px solid #0d6efd;
}

footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

footer h5 i {
    margin-right: 8px;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer .text-white-50:hover {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #fff;
}

footer .social-links a:hover {
    background: #0d6efd;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

footer hr {
    opacity: 0.3;
}

footer address p {
    margin-bottom: 0.5rem;
}

footer address i {
    width: 20px;
    margin-right: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablets y m贸viles grandes */
@media (max-width: 992px) {
    .hero-section {
        padding: 50px 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
}

/* M贸viles */
@media (max-width: 768px) {
    /* Hero */
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .search-box {
        border-radius: 12px;
    }
    
    /* Top Bar */
    .top-bar {
        font-size: 0.75rem;
        padding: 4px 0;
    }
    
    .top-bar .contact-item {
        margin-right: 12px;
    }
    
    .top-bar .whatsapp-btn {
        font-size: 0.7rem;
        padding: 2px 10px;
    }
    
    .top-bar .contact-item span {
        display: none;
    }
    
    /* Navbar */
    .navbar-brand .logo-circle {
        width: 32px;
        height: 32px;
    }
    
    .navbar-brand {
        font-size: 0.95rem;
    }
    
    /* Footer */
    footer .col-md-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .social-links {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
}

/* M贸viles peque帽os */
@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .search-box .row {
        flex-direction: column;
    }
    
    .hero-section .search-box .col-md-5,
    .hero-section .search-box .col-md-2 {
        width: 100%;
    }
    
    .top-bar .contact-item {
        margin-right: 8px;
    }
    
    .navbar-brand {
        gap: 8px;
        font-size: 0.85rem;
    }
    
    .navbar-brand .logo-circle {
        width: 28px;
        height: 28px;
    }
    
    .property-card .card-img-top {
        height: 160px;
    }
    
    .price-tag {
        font-size: 1.2rem;
    }
    
    footer .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
}
.thumbnail-more {
    width: 100%;
    height: 100px;
    background: rgba(13, 110, 253, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
}

.thumbnail-more:hover {
    background: rgba(13, 110, 253, 1);
    transform: scale(1.05);
}

.thumbnail-more span {
    font-size: 1.8rem;
}


/* ============================================
   FUENTES PRINCIPALES
   ============================================ */

/* Body - Fuente principal */
body {
    font-family: 'Roboto', 'Open Sans', 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    color: #1a1a2e;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Títulos - Roboto (más elegante para títulos) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a2e;
}

h1 {
    font-weight: 900;
    letter-spacing: -0.03em;
}

h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3, h4 {
    font-weight: 600;
}

/* Texto de párrafos - Open Sans (más legible) */
p, .text-body, .description {
    font-family: 'Open Sans', 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    color: #4a4a4a;
}

/* Texto para precios y números - Lato (más limpio) */
.price, .price-tag, .number, .valor, .count {
    font-family: 'Lato', 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Subtítulos y textos destacados */
.subtitle, .lead, .text-highlight {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Navbar - Roboto */
.navbar .navbar-brand,
.navbar .nav-link {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 500;
}

/* Botones - Roboto */
.btn {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Badges y etiquetas - Roboto */
.badge, .label {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Tarjetas de propiedades */
.property-card .card-title {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 700;
}

.property-card .price {
    font-family: 'Lato', 'Roboto', sans-serif;
    font-weight: 700;
}

.property-card .card-text,
.property-card .features span {
    font-family: 'Open Sans', 'Roboto', sans-serif;
}

/* Footer */
footer {
    font-family: 'Open Sans', 'Roboto', sans-serif;
}

footer h5 {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 700;
}

/* Formularios - Open Sans */
.form-control,
.form-select,
.form-label {
    font-family: 'Open Sans', 'Roboto', sans-serif;
}

/* Breadcrumb - Open Sans */
.breadcrumb {
    font-family: 'Open Sans', 'Roboto', sans-serif;
}

/* ============================================
   RESPONSIVE - Ajustes de fuentes
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .navbar .navbar-brand {
        font-size: 1.1rem;
    }
}

/* ============================================
   COMPONENTES CON FUENTES ESPECÍFICAS
   ============================================ */

/* Hero Section */
.hero-section h1 {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero-section .lead {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 300;
}

/* Search Box */
.search-box .form-control,
.search-box .form-select {
    font-family: 'Open Sans', 'Roboto', sans-serif;
}

/* Property Detail */
.property-title {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.property-price {
    font-family: 'Lato', 'Roboto', sans-serif;
    font-weight: 900;
}

.feature-item .value {
    font-family: 'Lato', 'Roboto', sans-serif;
    font-weight: 700;
}

.feature-item .label {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

/* Filter Sidebar */
.filter-sidebar label {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Results Header */
.results-count {
    font-family: 'Open Sans', 'Roboto', sans-serif;
}

.results-count strong {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 700;
}

/* Pagination */
.pagination-custom .page-link {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 500;
}

/* Similar Properties */
.similar-property-card .price {
    font-family: 'Lato', 'Roboto', sans-serif;
    font-weight: 700;
}

.similar-property-card .card-title {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 600;
}

/* ============================================
   HERO PROFESIONAL - INDEX
   ============================================ */

.hero-property {
    position: relative;
    min-height: 90vh;
    background-image: url('/assets/img/hero-casa.webp'); /* Tu imagen de la casita */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0 40px;
    overflow: hidden;
}

/* Overlay oscuro elegante */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(10, 25, 47, 0.92) 0%, 
        rgba(10, 25, 47, 0.75) 40%,
        rgba(10, 25, 47, 0.4) 70%,
        rgba(10, 25, 47, 0.2) 100%
    );
    z-index: 1;
}

.hero-property .container {
    position: relative;
    z-index: 2;
}

.min-vh-hero {
    min-height: 55vh;
}

/* ============ LOGO ============ */
.hero-logo {
    margin-bottom: 20px;
}

.logo-hero {
    max-height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
    animation: fadeInDown 0.8s ease;
}

/* ============ TÍTULO ============ */
.hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-title .text-warning {
    color: #fbbf24 !important;
    font-weight: 900;
}

/* ============ SUBTÍTULO ============ */
.hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-subtitle strong {
    color: #fbbf24;
    font-weight: 700;
}

/* ============ BUSCADOR ============ */
.hero-search-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero-search-box .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    background-color: #ffffff;
    transition: all 0.3s;
}

.hero-search-box .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.hero-search-box .form-label {
    color: #6c757d !important;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-search-box .btn-search {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    color: #1a1a2e;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.hero-search-box .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    color: #1a1a2e;
}

/* ============ DIFERENCIADORES ============ */
.hero-features {
    margin-top: 50px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.feature-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.feature-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background: #ffffff;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.feature-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.feature-text strong {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-text span {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ============ ANIMACIONES ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .hero-property {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-property {
        padding: 40px 0 30px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .logo-hero {
        max-height: 80px;
    }
    
    .hero-search-box {
        padding: 15px 18px;
    }
    
    .hero-search-box .row {
        flex-direction: column;
    }
    
    .hero-search-box .col-md-5,
    .hero-search-box .col-md-4,
    .hero-search-box .col-md-3 {
        width: 100%;
    }
    
    .feature-badge {
        padding: 12px 8px;
        margin-bottom: 10px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .feature-text strong {
        font-size: 0.65rem;
    }
    
    .feature-text span {
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .logo-hero {
        max-height: 65px;
    }
}

/* ============ FOTO DE LA REALTOR EN EL HEADER ============ */
.realtor-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
    transition: all 0.3s;
}

.realtor-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.3);
}

.realtor-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: #ffffff;
    font-size: 0.7rem;
}

.realtor-info strong {
    font-weight: 700;
    color: #ffffff;
}

.realtor-info small {
    color: #25D366;
    font-size: 0.65rem;
}

.realtor-info small::before {
    content: '● ';
    color: #25D366;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 768px) {
    .realtor-photo {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .realtor-photo {
        width: 26px;
        height: 26px;
    }
}
