/*
Theme Name: Madrid Skyline Real Estate
Theme URI: https://skylinesgi.es
Author: Madrid Skyline
Author URI: https://skylinesgi.es
Description: Tema inmobiliario profesional con gestión completa de propiedades. Incluye CPT propiedades, fichas individuales, galería de fotos, mapas y filtros. Diseño responsive one-page con GDPR compliant.
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: madrid-skyline
Tags: one-page, real-estate, responsive, custom-post-type, property-management
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --color-primary: #ff6b35;
    --color-secondary: #004e89;
    --color-accent: #ffd166;
    --color-pink: #ef476f;
    --color-green: #06d6a0;
    --color-dark: #1a1a2e;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-border: #e2e8f0;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --container-max: 1200px;
    --header-height: 80px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center { text-align: center; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: #003d70;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: var(--header-height);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    position: relative;
}

.navbar > * {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-heading);
    flex-shrink: 0;
    height: 100%;
}

.logo-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo-svg svg {
    height: 45px;
    width: auto;
    max-width: 200px;
    display: block;
    flex-shrink: 0;
}

/* Logo personalizado desde Customizer */
.custom-logo-img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.logo-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-dark);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #003d70 100%);
    color: var(--color-white);
    text-align: center;
    padding: 120px 20px 80px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   PROPERTIES
   ============================================ */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px rgba(0,0,0,0.1);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.property-type-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.property-type-badge.venta {
    background: var(--color-primary);
    color: white;
}

.property-type-badge.alquiler {
    background: var(--color-accent);
    color: var(--color-dark);
}

.property-content {
    padding: 25px;
}

.property-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.property-title {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.property-location {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}

.property-footer .property-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.property-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.property-card-link .property-image {
    position: relative;
    overflow: hidden;
}

.property-card-link .property-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 78, 137, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-card-link:hover .property-image::after {
    opacity: 1;
}

.property-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.property-title a:hover {
    color: var(--color-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ============================================
   SINGLE PROPERTY
   ============================================ */
.property-detail {
    padding-top: 120px;
}

.property-gallery {
    margin-bottom: 40px;
}

.property-main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.property-main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.property-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.property-thumbnails img {
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
}

.property-thumbnails img:hover,
.property-thumbnails img.active {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--color-primary);
}

.property-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.property-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
    padding: 25px;
    background: var(--color-light);
    border-radius: 12px;
}

.property-feature-item {
    text-align: center;
}

.property-feature-item i {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: block;
}

.property-feature-item .value {
    font-weight: 700;
    font-size: 1.3rem;
    display: block;
}

.property-feature-item .label {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-list i {
    color: var(--color-accent);
    margin-top: 3px;
    font-size: 1rem;
}

.footer-contact-list .contact-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 3px;
}

.footer-contact-list a {
    color: white;
    text-decoration: none;
}

.footer-contact-list a:hover {
    color: var(--color-accent);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.footer-logo svg {
    height: 40px;
    width: auto;
    max-width: 180px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ============================================
   GDPR BANNER
   ============================================ */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark);
    color: var(--color-white);
    padding: 20px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gdpr-banner.show {
    transform: translateY(0);
}

.gdpr-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .logo {
        justify-content: flex-start;
        flex: 1;
    }
    
    .logo-svg svg {
        height: 35px;
        max-width: 160px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-main-image img {
        height: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .logo-svg svg {
        height: 30px;
        max-width: 140px;
    }
    
    .footer-logo svg {
        height: 35px;
        max-width: 160px;
        margin: 0 auto;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .property-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FRONT-PAGE ONE-PAGE STYLES
   ============================================ */

/* Hero Extended */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(0, 78, 137, 0.9) 0%, rgba(26, 26, 46, 0.9) 100%),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920') center/cover;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

/* 🎪 Iconos flotantes decorativos en hero */
.floating-icons {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.float-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float-icon-anim 8s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.float-icon:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
    font-size: 2.5rem;
}

.float-icon:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 12s;
    font-size: 1.8rem;
}

.float-icon:nth-child(4) {
    animation-delay: -6s;
    animation-duration: 9s;
    font-size: 2.2rem;
}

@keyframes float-icon-anim {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translate(30px, -30px) rotate(10deg);
        opacity: 0.2;
    }
    50% {
        transform: translate(0, -60px) rotate(0deg);
        opacity: 0.15;
    }
    75% {
        transform: translate(-30px, -30px) rotate(-10deg);
        opacity: 0.2;
    }
}

/* 🌟 Efecto de brillo en stats */
.stat-number {
    background: linear-gradient(135deg, #ffd700 0%, #ff6b35 50%, #ffd700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-text 3s linear infinite;
}

@keyframes shine-text {
    to { background-position: 200% center; }
}

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

.hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 15px;
    display: block;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-intro {
    font-size: 1.3rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text {
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-image {
    position: relative;
}

.about-img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-img-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-experience {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-primary);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255,107,53,0.3);
}

.about-experience .exp-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.about-experience .exp-text {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Services - Nuevo diseño */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-content {
        padding: 25px 20px;
    }
    
    .service-list li {
        font-size: 0.85rem;
    }
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: var(--color-primary);
}

.service-card-featured {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-secondary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.service-card-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%); }
    50% { transform: translateX(100%) translateY(100%); }
}

.service-card-featured h3,
.service-card-featured .service-quote {
    color: white;
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-content {
    padding: 30px 25px;
    text-align: left;
    position: relative;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -60px auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(255,107,53,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255,107,53,0.5);
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--color-dark);
    font-weight: 600;
}

/* Lista de servicios */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.service-list li i {
    color: var(--color-primary);
    font-size: 0.8rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.service-card-featured .service-list li i {
    color: var(--color-accent);
}

/* Quote en servicio destacado */
.service-quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    margin: 20px 0;
    padding-left: 15px;
    border-left: 3px solid var(--color-primary);
    opacity: 0.95;
}

/* Responsive services */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        height: 160px;
    }
}

/* Property Filters */
.property-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Agents - Mejorado con WhatsApp/Teléfono */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.agent-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.agent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.agent-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: var(--color-light);
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Defensivo: evita filtros heredados o blend-modes accidentales */
    filter: none;
    mix-blend-mode: normal;
    display: block;
}

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

/* Overlay de contacto rápido */
.agent-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agent-card:hover .agent-image::after {
    opacity: 1;
}

.agent-info {
    padding: 30px;
    text-align: center;
}

.agent-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--color-dark);
    font-weight: 700;
}

.agent-role {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Botones de contacto */
.agent-contact {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.agent-whatsapp,
.agent-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: 100%;
}

.agent-phone-btn span,
.agent-whatsapp span {
    white-space: nowrap;
}

.agent-whatsapp {
    background: #25D366;
    color: white;
}

.agent-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.agent-phone-btn {
    background: var(--color-primary);
    color: white;
}

.agent-phone-btn:hover {
    background: #e55a2b;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.agent-email {
    margin-bottom: 10px;
}

.agent-email a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.agent-email a:hover {
    color: var(--color-primary);
}

.agent-email i {
    color: var(--color-primary);
    margin-right: 8px;
}

.agent-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0077B5;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.agent-linkedin:hover {
    transform: translateY(-2px);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--color-dark);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item > i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Iconos pequeños inline dentro del texto del contact-item: NO heredar el bloque grande */
.contact-item p i,
.contact-item p a i {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
    display: inline;
    padding: 0;
    margin: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.contact-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-tagline {
        font-size: 0.75rem;
    }
    
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-experience {
        left: 20px;
        bottom: -10px;
    }
    
    .features-grid,
    .services-grid,
    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}

/* ============================================
   HEADER MEJORADO - LOGO Y NAVEGACIÓN
   ============================================ */

/* Header principal */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    height: var(--header-height);
    transition: transform 0.4s ease, height 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    height: 70px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

/* Navbar container */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo mejorado */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 3px;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1;
}

/* Custom logo image */
.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Navegación principal */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(255, 107, 53, 0.08);
}

/* Indicador activo */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 50%;
}

/* Ajuste para móvil - links más grandes */
@media (max-width: 992px) {
    .nav-link {
        padding: 15px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
    }
    
    .nav-link.btn-nav {
        margin: 15px 0;
        text-align: center;
        border: none;
    }
}

/* Botón CTA en menú */
.nav-menu .btn-nav {
    background: var(--color-primary);
    color: white !important;
    padding: 10px 22px;
    border-radius: 25px;
    margin-left: 10px;
}

.nav-menu .btn-nav:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.nav-menu .btn-nav::after {
    display: none;
}

/* Menú hamburguesa mejorado */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 107, 53, 0.1);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 3px 0;
}

/* Animación hamburguesa a X */
.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive - Mobile Menu */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Logo más pequeño en móvil */
    .logo-main {
        font-size: 1.15rem;
        letter-spacing: 1.5px;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
        letter-spacing: 2.5px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 65px;
    }
    
    .navbar {
        padding: 0 15px;
    }
    
    .logo-main {
        font-size: 1.05rem;
        letter-spacing: 1px;
    }
    
    .logo-tagline {
        font-size: 0.55rem;
        letter-spacing: 2px;
    }
}

/* ============================================
   FOOTER MEJORADO - 4 COLUMNAS
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, var(--color-dark) 0%, #0d1b2a 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* Columna Marca */
.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.footer-logo-main {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-logo-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
}

/* Redes Sociales */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* Columnas Título */
.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* Links del footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Contacto del footer */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.footer-contact-list i {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.footer-contact-list .contact-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-list a,
.footer-contact-list span {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-contact-list a:hover {
    color: var(--color-primary);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Métodos de pago */
.footer-payments {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-payments span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 5px;
}

.footer-payments i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-payments i:hover {
    color: white;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 60px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact-list li {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   VIDEOS RESPONSIVE - GALERÍA PROPIEDADES
   ============================================ */

/* Contenedor de video responsive */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: var(--color-dark);
    border-radius: 16px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* Thumbnail de video */
.thumb-video {
    background: var(--color-dark);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    min-height: 70px;
}

.thumb-video i {
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.thumb-video span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thumb-video:hover {
    background: var(--color-primary);
}

.thumb-video:hover i {
    color: white;
}

.thumb-video.active {
    border: 2px solid var(--color-primary);
}

/* Property Gallery mejorada */
.property-gallery {
    margin-bottom: 30px;
}

.property-main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
    min-height: 400px;
}

.main-gallery-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.property-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.property-thumbnails .thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.property-thumbnails .thumb:hover,
.property-thumbnails .thumb.active {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Aplicar animaciones a secciones */
.section {
    animation: fadeInUp 0.8s ease-out;
}

.section-header {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.service-card {
    animation: fadeInUp 0.6s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.agent-card {
    animation: fadeInUp 0.6s ease-out both;
}

.agent-card:nth-child(1) { animation-delay: 0.1s; }
.agent-card:nth-child(2) { animation-delay: 0.2s; }
.agent-card:nth-child(3) { animation-delay: 0.3s; }

.property-card {
    animation: fadeInUp 0.5s ease-out both;
}

/* Botones con animaciones */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

/* WhatsApp float button animación */
.whatsapp-float {
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

/* Hero con parallax suave (compatible con transform JS) */
.hero-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* Efectos de hover elegantes */
.property-card:hover,
.agent-card:hover,
.service-card:hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive videos */
@media (max-width: 768px) {
    .video-container {
        padding-bottom: 75%; /* 4:3 ratio en móvil */
    }
    
    .property-thumbnails .thumb {
        width: 80px;
        height: 60px;
    }
    
    .main-gallery-image,
    .property-main-image .video-container {
        height: 300px;
        min-height: 300px;
    }
    
    .property-main-image {
        min-height: 300px;
    }
}

/* Scroll animations - elementos aparecen al hacer scroll */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading skeleton para imágenes */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   ANIMACIONES DIVERTIDAS Y LLAMATIVAS
   ============================================ */

/* 🎆 Confetti burst en hover para botones principales */
.btn-primary {
    position: relative;
    overflow: visible;
}

.btn-primary::after {
    content: '✨';
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    animation: none;
}

.btn-primary:hover::after {
    opacity: 1;
    animation: confetti-burst 0.6s ease-out;
}

@keyframes confetti-burst {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.5) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

/* 🎭 Efecto flip en cards al hover */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-10px);
}

.agent-card {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.agent-card:hover {
    transform: translateY(-10px);
}

.property-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 🌊 Efecto wave/onda en iconos */
.service-icon {
    animation: icon-wave 3s ease-in-out infinite;
}

.service-card:nth-child(2) .service-icon { animation-delay: 0.2s; }
.service-card:nth-child(3) .service-icon { animation-delay: 0.4s; }
.service-card:nth-child(4) .service-icon { animation-delay: 0.6s; }
.service-card:nth-child(5) .service-icon { animation-delay: 0.8s; }
.service-card:nth-child(6) .service-icon { animation-delay: 1s; }

@keyframes icon-wave {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-3deg); }
    75% { transform: translateY(-3px) rotate(3deg); }
}

/* ✨ Sparkle animation para títulos */
.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    top: 0;
    right: -30px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 2s ease-in-out infinite;
}

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

/* 🎪 Efecto bounce para badges */
.property-badge {
    animation: badge-bounce 2s ease-in-out infinite;
}

@keyframes badge-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 🎨 Efecto de gradiente animado en featured cards */
.service-card-featured {
    background: linear-gradient(-45deg, #004e89, #1a5f9e, #ff6b35, #ff8555);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 🎭 Efecto de typing para el tag de sección */
.section-tag {
    position: relative;
    overflow: hidden;
}

.section-tag::before {
    content: '|';
    position: absolute;
    right: -10px;
    animation: typing-cursor 1s step-end infinite;
}

@keyframes typing-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 🚀 Rocket animation para CTA buttons */
.btn-large {
    position: relative;
    overflow: hidden;
}

.btn-large::after {
    content: '🚀';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) translateX(50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-large:hover::after {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    animation: rocket-fly 0.8s ease-in-out;
}

@keyframes rocket-fly {
    0% { transform: translateY(-50%) translateX(50px) rotate(0deg); }
    50% { transform: translateY(-50%) translateX(-5px) rotate(-10deg); }
    100% { transform: translateY(-50%) translateX(0) rotate(0deg); }
}

/* 🎪 Efecto shake para iconos de contacto */
.agent-contact a:hover i,
.footer-contact-list a:hover i {
    animation: icon-shake 0.5s ease-in-out;
}

@keyframes icon-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

/* ✨ Efecto glow pulsante (suavizado para evitar halos exagerados que invaden el layout) */
.btn-primary,
.agent-whatsapp {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 🎊 Efecto de escala elástica en hover de imágenes */
.service-image img,
.agent-image img,
.property-card img {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card:hover .service-image img {
    transform: scale(1.15) rotate(2deg);
}

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

/* 🎭 Efecto de desvanecimiento con blur */
.reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-blur.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* 🎪 Partículas flotantes decorativas */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-particle 20s ease-in-out infinite;
}

.floating-particles::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 10%;
    animation-delay: -10s;
    background: radial-gradient(circle, rgba(0, 78, 137, 0.1) 0%, transparent 70%);
}

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(0, -100px) scale(1); }
    75% { transform: translate(-50px, -50px) scale(0.9); }
}

/* 🎨 Efecto de border animado */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent), var(--color-primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
    animation: border-rotate 3s linear infinite;
}

@keyframes border-rotate {
    0% { background: linear-gradient(0deg, var(--color-primary), var(--color-accent)); }
    50% { background: linear-gradient(180deg, var(--color-primary), var(--color-accent)); }
    100% { background: linear-gradient(360deg, var(--color-primary), var(--color-accent)); }
}

/* 🎭 Efecto de entrada dramática para hero */
.hero-content h1 {
    animation: dramatic-entrance 1s ease-out both;
}

.hero-content p {
    animation: dramatic-entrance 1s ease-out 0.3s both;
}

.hero-content .btn {
    animation: dramatic-entrance 1s ease-out 0.6s both;
}

@keyframes dramatic-entrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
        filter: blur(10px);
    }
    50% {
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ✨ Efecto de brillo en hover para logos */
.site-logo:hover {
    animation: logo-shine 0.8s ease-in-out;
}

@keyframes logo-shine {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 107, 53, 0.5)); }
    100% { filter: brightness(1); }
}

/* 🎪 Efecto de rebote para números/estadísticas (si se añaden) */
.bounce-number {
    animation: number-bounce 1s ease-out both;
}

@keyframes number-bounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* 🎊 Efecto de slide-up con rotación */
.slide-up-rotate {
    animation: slide-up-rotate 0.8s ease-out both;
}

@keyframes slide-up-rotate {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

/* 🎭 Efecto de morphing para el menú móvil */
@media (max-width: 1024px) {
    .main-nav {
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .main-nav.active {
        animation: menu-morph 0.4s ease-out;
    }
}

@keyframes menu-morph {
    0% { transform: translateX(100%) scale(0.8); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

/* 🎨 Scroll indicator animado */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

/* 🎪 Efecto de tilt en 3D para tarjetas */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg));
}

/* ✨ Efecto de destello en hover de enlaces */
a:not(.btn):hover {
    animation: link-sparkle 0.4s ease;
}

@keyframes link-sparkle {
    0%, 100% { text-shadow: none; }
    50% { text-shadow: 0 0 10px rgba(255, 107, 53, 0.8); }
}

/* 🎊 Efecto de vibración sutil en botones al hover */
.btn:hover {
    animation: btn-wiggle 0.4s ease;
}

@keyframes btn-wiggle {
    0%, 100% { transform: translateY(-3px) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-2deg); }
    75% { transform: translateY(-3px) rotate(2deg); }
}

/* 🎭 Efecto de carga progresiva para imágenes (fix: no ocultar por defecto, todas las imgs reales tienen src) */
@keyframes img-fade-in {
    0% { opacity: 0; filter: blur(5px); }
    100% { opacity: 1; filter: blur(0); }
}

/* 🎨 Efecto de pulso para elementos importantes */
.pulse-important {
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(255, 107, 53, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

/* 🎪 Efecto de swing para iconos decorativos */
.swing-icon {
    animation: swing 2s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
}

/* 🎊 Efecto de heartbeat para WhatsApp */
.whatsapp-float {
    animation: heartbeat 1.5s ease-in-out infinite, float 3s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* 🎭 Efecto de flip en scroll para cards */
.flip-on-scroll {
    opacity: 0;
    transform: perspective(1000px) rotateY(90deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-on-scroll.visible {
    opacity: 1;
    transform: perspective(1000px) rotateY(0);
}

/* 🎨 Efecto de spotlight en cards */
.service-card,
.agent-card,
.property-card {
    position: relative;
    overflow: hidden;
}

.service-card::after,
.agent-card::after,
.property-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::after,
.agent-card:hover::after,
.property-card:hover::after {
    opacity: 1;
}

/* ✨ Efecto de neón sutil para títulos */
.section-title {
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.1);
    transition: text-shadow 0.3s ease;
}

.section-title:hover {
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.3), 0 0 60px rgba(255, 107, 53, 0.1);
}

/* ============================================
   CLASES PARA SINGLE PROPIEDAD (base – los media queries posteriores siempre ganan)
   ============================================ */

.property-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.property-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.property-sidebar-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.property-reference {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.property-features-quick {
    grid-template-columns: repeat(2, 1fr);
}

.property-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.btn-full {
    width: 100%;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.property-similar {
    margin-top: 60px;
}

.property-similar h3 {
    color: #004e89;
    margin-bottom: 30px;
    text-align: center;
}

/* Anti-overflow: si el cliente pega un texto sin espacios o un email largo, no debe romper el layout */
.property-description,
.entry-content,
.contact-item p {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* ============================================
   RESPONSIVE PARA PÁGINA DE PROPIEDAD
   ============================================ */

@media (max-width: 1024px) {
    .property-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .property-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .property-detail {
        padding: 20px 0;
    }
    
    .property-layout {
        gap: 20px;
    }
    
    .property-sidebar-card {
        padding: 20px;
    }
    
    .main-gallery-image {
        height: 250px;
    }
    
    .property-thumbnails {
        gap: 8px;
    }
    
    .property-thumbnails .thumb {
        width: 70px;
        height: 50px;
    }
    
    .property-thumbnails .thumb-video {
        min-width: 70px;
        min-height: 50px;
    }
    
    /* Features grid en móvil */
    .property-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .property-feature-item i {
        font-size: 1.4rem;
    }
    
    .property-feature-item .value {
        font-size: 1.1rem;
    }
    
    /* Sidebar en móvil */
    .property-detail > .container > div:first-child > div:last-child > div {
        padding: 20px;
    }
    
    .property-price-large {
        font-size: 1.8rem;
    }
    
    /* Botones de acción en móvil */
    .property-actions {
        gap: 8px;
    }
    
    .property-actions .btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .property-gallery {
        margin-bottom: 20px;
    }
    
    .property-main-image {
        min-height: 200px;
        border-radius: 12px;
    }
    
    .main-gallery-image {
        height: 200px;
    }
    
    .property-thumbnails {
        gap: 6px;
        margin-top: 10px;
    }
    
    .property-thumbnails .thumb {
        width: 60px;
        height: 45px;
        border-radius: 6px;
    }
    
    .property-thumbnails .thumb-video {
        min-width: 60px;
        min-height: 45px;
    }
    
    .property-thumbnails .thumb-video i {
        font-size: 1.2rem;
    }
    
    .property-thumbnails .thumb-video span {
        font-size: 0.6rem;
    }
    
    .property-description {
        margin: 25px 0;
    }
    
    .property-description h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    /* Features en móvil pequeño */
    .property-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    .property-feature-item {
        padding: 8px;
    }
    
    .property-feature-item i {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .property-feature-item .value {
        font-size: 1rem;
    }
    
    .property-feature-item .label {
        font-size: 0.75rem;
    }
    
    /* Precio y referencia */
    .property-price-large {
        font-size: 1.5rem;
    }
    
    /* Mapa */
    .property-map {
        margin: 25px 0;
    }
    
    .property-map h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .map-container iframe {
        height: 200px;
    }
    
    /* Propiedades similares */
    .property-detail > .container > div:last-child {
        margin-top: 40px;
    }
    
    .property-detail > .container > div:last-child h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
}

/* Fix para video container en móvil */
@media (max-width: 768px) {
    .video-container {
        padding-bottom: 56.25%;
        border-radius: 12px;
    }
    
    .video-container iframe {
        border-radius: 12px;
    }
}

/* Mejoras de touch para móvil */
@media (hover: none) and (pointer: coarse) {
    .property-thumbnails .thumb:active {
        transform: scale(0.95);
    }
    
    .property-actions .btn:active {
        transform: scale(0.98);
    }
}

/* ============================================
   CLASES PARA SINGLE PROPIEDAD (compat — duplicado eliminado, definido más arriba)
   ============================================ */
