/* =====================================================
   FINCA RAÍZ CAICEDONIA — UPGRADE VISUAL v2.0
   Estrategia: Evolución Premium · No Rediseño
   Compatible: Hostinger Shared · PHP · HTML estático
   Lighthouse target: ≥ 90
   ===================================================== */

/* ─── VARIABLES AMPLIADAS (sin romper las existentes) ─── */
:root {
    /* Paleta corporativa SIN CAMBIOS */
    --color-primario:    #002868;
    --color-secundario:  #436ba7;
    --color-acento:      #aa8a67;
    --color-fondo:       #ffffff;
    --color-texto:       #333333;
    --color-texto-claro: #f5f5f5;

    /* NUEVAS: Derivadas de la paleta (gradientes y profundidades) */
    --color-primario-deep:   #001a45;
    --color-primario-light:  #0a3f8f;
    --color-acento-light:    #c4a882;
    --color-acento-dark:     #8a6e50;
    --grad-hero:     linear-gradient(135deg, rgba(0,26,69,0.92) 0%, rgba(0,40,104,0.78) 60%, rgba(10,63,143,0.70) 100%);
    --grad-primario: linear-gradient(135deg, var(--color-primario-deep) 0%, var(--color-primario) 100%);
    --grad-acento:   linear-gradient(135deg, var(--color-acento) 0%, var(--color-acento-light) 100%);
    --sombra-card:   0 4px 20px rgba(0,40,104,0.08);
    --sombra-hover:  0 16px 40px rgba(0,40,104,0.18);
    --sombra-acento: 0 8px 25px rgba(170,138,103,0.35);

    /* Tipografía */
    --fuente-titulos: 'Montserrat', sans-serif;
    --fuente-cuerpo:  'Lato', sans-serif;

    /* Geometría */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition-base: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── RESET MEJORADO ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--fuente-cuerpo);
    color: var(--color-texto);
    background: var(--color-fondo);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--color-secundario); }
ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    color: var(--color-primario);
    line-height: 1.2;
    margin-bottom: 1rem;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.4rem; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
section { padding: 5rem 0; }

/* ─── BOTONES PREMIUM ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
    background: var(--grad-acento);
    color: white;
    border: none;
    box-shadow: var(--sombra-acento);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(170,138,103,0.45);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--color-secundario);
    border: 2px solid var(--color-secundario);
}
.btn-secondary:hover {
    background: var(--color-secundario);
    color: white;
    transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════
   HEADER MEJORADO
═══════════════════════════════════════════════════ */
.main-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,40,104,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,40,104,0.15);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a { display: block; }
.logo-img { max-height: 58px; width: auto; transition: transform 0.3s ease; }
.logo a:hover .logo-img { transform: scale(1.03); }
.logo-mobile { display: none; }
.logo-desktop { display: block; }

.nav-menu { display: flex; align-items: center; }
.nav-menu-item { margin-left: 1.8rem; }

.nav-menu-link {
    color: var(--color-primario);
    font-family: var(--fuente-titulos);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    position: relative;
    letter-spacing: 0.3px;
}

/* Subrayado animado */
.nav-menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-acento);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-menu-link:hover::after,
.nav-menu-link.active::after { width: 100%; }

.nav-menu-link:hover,
.nav-menu-link.active { color: var(--color-secundario); }

.nav-menu-link.nav-link-button {
    background: var(--grad-acento);
    color: white !important;
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(170,138,103,0.3);
    font-size: 0.85rem;
}
.nav-menu-link.nav-link-button::after { display: none; }
.nav-menu-link.nav-link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(170,138,103,0.45);
    color: white !important;
}

.nav-toggle {
    display: none;
    font-size: 1.4rem;
    background: none;
    border: none;
    color: var(--color-primario);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(0,40,104,0.08); }


/* ═══════════════════════════════════════════════════
   HERO — VERSIÓN PREMIUM CON PARALLAX SUAVE
═══════════════════════════════════════════════════ */
.hero {
    background: var(--grad-hero),
        url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80')
        no-repeat center center / cover;
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-texto-claro);
    position: relative;
    overflow: hidden;
}

/* Patrón sutil de profundidad */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(67,107,167,0.25) 0%, transparent 70%);
    pointer-events: none;
}

/* Partículas decorativas sutiles */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.04));
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    font-size: clamp(2rem, 6vw, 3.8rem);
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
    animation: heroTitle 0.9s ease both;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    animation: heroSubtitle 0.9s 0.2s ease both;
}

/* Barra de búsqueda hero mejorada */
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    animation: heroBar 0.9s 0.4s ease both;
    max-width: 700px;
    margin: 0 auto;
}

.search-filters select {
    padding: 0.75rem 1.2rem;
    border: none;
    border-radius: 50px;
    font-family: var(--fuente-cuerpo);
    font-size: 0.9rem;
    color: var(--color-primario);
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    outline: none;
    min-width: 200px;
    transition: box-shadow 0.2s;
    font-weight: 600;
}
.search-filters select:focus {
    box-shadow: 0 0 0 3px rgba(170,138,103,0.4);
}

.search-filters .btn-primary {
    border-radius: 50px;
    padding: 0.75rem 1.8rem;
}


/* ═══════════════════════════════════════════════════
   SECCIÓN INMUEBLES — CARDS PREMIUM
═══════════════════════════════════════════════════ */
.featured-projects {
    background: #f7f8fc;
    position: relative;
}

.featured-projects::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-acento);
}

.featured-projects .container > h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

/* Título con decoración */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: #777; max-width: 560px; margin: 0 auto; }
.section-divider {
    display: block;
    width: 50px;
    height: 3px;
    background: var(--grad-acento);
    border-radius: 3px;
    margin: 0.8rem auto 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

/* TARJETA PREMIUM */
.featured-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--sombra-card);
    transition: var(--transition-base);
    border: 1px solid rgba(0,40,104,0.06);
    position: relative;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-hover);
    border-color: rgba(170,138,103,0.3);
}

/* Imagen con zoom suave */
.card-image-container {
    overflow: hidden;
    aspect-ratio: 16/11;
    position: relative;
    background: #eee;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}
.featured-card:hover img { transform: scale(1.08); }

/* Badge tipo inmueble */
.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--grad-primario);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 4;
}

/* Badge destacado */
.badge-destacado {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #f9c500, #ffb700);
    color: #1a1000;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(249,197,0,0.35);
    animation: pulseStar 2.5s infinite;
}

@keyframes pulseStar {
    0%, 100% { box-shadow: 0 3px 10px rgba(249,197,0,0.35); }
    50% { box-shadow: 0 5px 18px rgba(249,197,0,0.6); }
}

/* Overlay VENDIDO */
.card-status-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: 3px;
    backdrop-filter: blur(2px);
}

/* Contenido de la tarjeta */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
}

.card-content h3 {
    font-size: 1.1rem;
    color: var(--color-primario);
    margin-bottom: 0;
    line-height: 1.3;
}

.card-price {
    font-size: 1.45rem;
    color: var(--color-acento-dark);
    font-weight: 800;
    letter-spacing: -0.3px;
}

.card-content p[style] {
    font-size: 0.88rem !important;
    color: #888 !important;
    min-height: 36px;
}

/* Specs (área, habitaciones, baños) */
.card-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 0.5rem 0;
    align-items: center;
    font-size: 0.82rem;
    color: #666;
}

.card-details span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f5f6fa;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.82rem;
    transition: background 0.2s;
}
.featured-card:hover .card-details span { background: rgba(0,40,104,0.05); }

/* Botón acción tarjeta */
.card-btn-action {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--grad-primario);
    color: white !important;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: var(--transition-base);
}
.card-btn-action:hover {
    background: var(--grad-acento);
    transform: none;
}
.card-btn-action i { transition: transform 0.3s ease; }
.card-btn-action:hover i { transform: translateX(5px); }


/* ═══════════════════════════════════════════════════
   SECCIÓN QUIÉNES SOMOS
═══════════════════════════════════════════════════ */
.about-us {
    background: white;
    overflow: hidden;
}

.about-us .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content { flex: 1; }
.about-image { flex: 1; }

.about-content h2 { position: relative; padding-bottom: 1rem; }
.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: var(--grad-acento);
    border-radius: 3px;
}

.about-content p { color: #555; margin-bottom: 1rem; }

.about-content ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #444;
    font-size: 0.95rem;
}
.about-content ul li i {
    color: var(--color-secundario);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0,40,104,0.15);
    transition: transform 0.5s ease;
}
.about-image img:hover { transform: scale(1.02); }


/* ═══════════════════════════════════════════════════
   SECCIÓN POR QUÉ INVERTIR
═══════════════════════════════════════════════════ */
.why-invest {
    background: linear-gradient(160deg, #f4f7fc 0%, #edf1f8 100%);
    position: relative;
    overflow: hidden;
}

.why-invest::before {
    content: '';
    position: absolute;
    right: -100px; top: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(67,107,167,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.why-invest .container > h2 { text-align: center; }
.why-invest .subtitle {
    text-align: center;
    color: #777;
    font-style: italic;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.reason-item {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.2rem 2rem;
    box-shadow: var(--sombra-card);
    transition: var(--transition-base);
    border: 1px solid transparent;
    text-align: center;
}

.reason-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover);
    border-color: rgba(170,138,103,0.2);
}

.reason-item i {
    font-size: 2.2rem;
    color: var(--color-primario);
    margin-bottom: 1.2rem;
    display: block;
    transition: transform 0.3s ease, color 0.3s ease;
}
.reason-item:hover i {
    transform: scale(1.15);
    color: var(--color-acento);
}

.reason-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.reason-item p { color: #666; font-size: 0.95rem; }


/* ═══════════════════════════════════════════════════
   SECCIÓN SERVICIOS
═══════════════════════════════════════════════════ */
.services { background: var(--color-fondo); }
.services .container > h2 { text-align: center; margin-bottom: 0.5rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-item {
    background: linear-gradient(160deg, #f9faff, #f3f5fb);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0,40,104,0.07);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-acento);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-item:hover::before { transform: scaleX(1); }

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-hover);
    background: white;
}

.service-item i {
    font-size: 2rem;
    color: var(--color-secundario);
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}
.service-item:hover i { transform: rotate(-10deg) scale(1.1); }

.service-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-item p { color: #777; font-size: 0.9rem; }


/* ═══════════════════════════════════════════════════
   FOOTER PREMIUM
═══════════════════════════════════════════════════ */
.main-footer {
    background: var(--grad-primario);
    color: rgba(255,255,255,0.85);
    padding: 3.5rem 0 0;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-acento);
}

.main-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-col h3 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--color-acento);
    border-radius: 2px;
}

.footer-col p, .footer-col a {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-acento-light); }
.footer-col p i { margin-right: 0.5rem; color: var(--color-acento-light); }

/* Redes sociales */
.social-links { display: flex; gap: 12px; margin-top: 0.5rem; }
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1rem;
    transition: var(--transition-base);
    border: 1px solid rgba(255,255,255,0.15);
}
.social-links a:hover {
    background: var(--color-acento);
    transform: translateY(-3px);
    border-color: var(--color-acento);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    text-align: center;
    padding: 1.2rem 0;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}


/* ═══════════════════════════════════════════════════
   BOTÓN WHATSAPP FLOTANTE MEJORADO
═══════════════════════════════════════════════════ */
.btn-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    width: 62px; height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    z-index: 9999;
    transition: var(--transition-base);
    text-decoration: none;
    animation: waPulse 3s infinite;
}

.btn-whatsapp-float:hover {
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 10px 30px rgba(37,211,102,0.55);
    color: white;
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 6px 30px rgba(37,211,102,0.65); }
}


/* ═══════════════════════════════════════════════════
   SCROLL REVEAL — Animaciones de entrada
═══════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ═══════════════════════════════════════════════════
   ANIMACIONES HERO
═══════════════════════════════════════════════════ */
@keyframes heroTitle {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSubtitle {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 0.9; transform: translateY(0); }
}
@keyframes heroBar {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════
   ADMIN PAGES — Refinamiento
═══════════════════════════════════════════════════ */
.admin-table-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    overflow-x: auto;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--sombra-card);
}

.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }

table { width: 100%; border-collapse: collapse; min-width: 800px; }
th {
    background: var(--grad-primario);
    color: white;
    padding: 15px 18px;
    text-align: left;
    font-weight: 600;
    font-family: var(--fuente-titulos);
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}
th:first-child { border-radius: 10px 0 0 0; }
th:last-child  { border-radius: 0 10px 0 0; }
td { padding: 14px 18px; border-bottom: 1px solid #f0f2f7; vertical-align: middle; }
tr:hover { background: #f7f9ff; transition: background 0.2s; }

.thumb-img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.badge { padding: 6px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-disponible { background: #d4f5e2; color: #0f5132; }
.badge-vendido    { background: #fde8e8; color: #9b1c1c; }
.badge-destacado  { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

.actions { display: flex; gap: 8px; }
.btn-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
    font-size: 0.85rem;
}
.btn-icon:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.btn-edit   { background: #3498db; }
.btn-delete { background: #e74c3c; }
.btn-view   { background: #27ae60; }

.btn-add-new {
    background: var(--grad-primario);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0,40,104,0.3);
    transition: var(--transition-base);
}
.btn-add-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,40,104,0.4);
    color: white;
}


/* ═══════════════════════════════════════════════════
   MAPA Y DETALLE INMUEBLE
═══════════════════════════════════════════════════ */
.property-container { padding: 4rem 0; }
.property-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; margin-top: 2rem; align-items: start; }

.property-details {
    background: white;
    padding: 2.2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0,40,104,0.08);
    position: sticky;
    top: 100px;
    box-shadow: var(--sombra-card);
}
.property-details h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--color-primario); }
.property-price { font-size: 2rem; font-weight: 800; color: var(--color-acento-dark); margin-bottom: 1.5rem; }
.property-specs { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1.5rem 0; padding: 1.2rem 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.property-specs span { display: inline-flex; align-items: center; gap: 0.5rem; color: #555; font-size: 1rem; }
.property-specs i { color: var(--color-primario); }

.map-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #eee; }
#map { height: 400px; width: 100%; border-radius: var(--border-radius); border: 1px solid #ddd; z-index: 1; }

/* Galería swiper */
.swiper-main-container { width: 100%; aspect-ratio: 4/3; border-radius: var(--border-radius-lg); overflow: hidden; background: #eee; margin-bottom: 12px; position: relative; box-shadow: 0 8px 30px rgba(0,40,104,0.1); }
.swiper-main { width: 100%; height: 100%; }
.swiper-main .swiper-slide { cursor: pointer; text-align: center; background: #f0f0f0; display: flex; justify-content: center; align-items: center; }
.swiper-main .swiper-slide a { display: block; width: 100%; height: 100%; }
.swiper-main .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.swiper-button-next, .swiper-button-prev { color: var(--color-acento) !important; }
.swiper-pagination-bullet-active { background: var(--color-acento) !important; }
.swiper-thumbs { height: 100px; }
.swiper-thumbs .swiper-slide { width: 25%; height: 100%; opacity: 0.6; cursor: pointer; transition: opacity 0.3s; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.swiper-thumbs .swiper-slide:hover { opacity: 1; }
.swiper-thumbs .swiper-slide-thumb-active { opacity: 1; border: 3px solid var(--color-acento); }
.swiper-thumbs .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.enlarge-icon { position: absolute; top: 1rem; right: 1rem; z-index: 10; background: rgba(0,0,0,0.45); color: white; padding: 0.75rem; border-radius: 50%; font-size: 1rem; pointer-events: none; }


/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .property-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .property-details { position: static; }
    .swiper-main-container { aspect-ratio: 16/9; }
    .about-us .container { flex-direction: column; gap: 2.5rem; }
}

@media (max-width: 768px) {
    section { padding: 3.5rem 0; }

    /* Logo */
    .logo-desktop { display: none; }
    .logo-mobile  { display: block; max-height: 48px; }

    /* Nav mobile */
    .nav {
        position: fixed;
        top: 80px; left: 0;
        width: 100%;
        background: white;
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
        box-shadow: 0 5px 20px rgba(0,40,104,0.15);
        z-index: 999;
        border-top: 3px solid var(--color-acento);
    }
    .nav.active { transform: translateX(0); }

    .nav-menu { flex-direction: column; align-items: stretch; width: 100%; }
    .nav-menu-item { margin: 0; }
    .nav-menu-link {
        display: block;
        padding: 1.2rem 1.5rem;
        border-bottom: 1px solid #f0f2f7;
        font-size: 1rem;
    }
    .nav-menu-link::after { display: none; }
    .nav-menu-link.nav-link-button {
        margin: 1rem;
        border-radius: 50px;
        text-align: center;
    }
    .nav-toggle { display: block; }

    /* Hero */
    .hero { min-height: 90vw; }
    .search-filters { flex-direction: column; padding: 1rem; }
    .search-filters select { width: 100%; min-width: unset; }
    .search-filters .btn { width: 100%; justify-content: center; }

    /* Cards */
    .featured-grid { grid-template-columns: 1fr; }

    /* Admin */
    .property-container { padding: 2rem 0; }
    .property-details h1 { font-size: 1.8rem; }
    .property-price { font-size: 1.6rem; }
    #map { height: 280px; }
    .swiper-main-container { aspect-ratio: 16/9; }
    .swiper-thumbs { height: 72px; }

    /* Reduce animaciones en móvil para rendimiento */
    .featured-card:hover { transform: translateY(-4px); }
    .reason-item:hover { transform: translateY(-4px); }
    .btn-whatsapp-float { width: 54px; height: 54px; font-size: 1.7rem; bottom: 22px; right: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
