/* ============================================
   V&R PROPIEDADES - LANDING PAGE STYLES
   Colors: Blue (#0066CC, #1E3A8A) & White (#FFFFFF)
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-blue: #0066CC;
    --dark-blue: #1E3A8A;
    --light-blue: #3B82F6;
    --very-light-blue: #DBEAFE;
    --white: #FFFFFF;
    --off-white: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1E3A8A 0%, #0066CC 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.20);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.section-title .highlight {
    color: var(--primary-blue);
    position: relative;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 80px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-whatsapp-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #25D366;
    color: var(--white);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.btn-whatsapp-nav:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding-top: 80px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-title .highlight {
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-slide-up {
    animation: slideUp 1s ease-out 0.9s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Box */
.search-box {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 15px;
    align-items: end;
}

.search-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.search-field label i {
    color: var(--primary-blue);
    margin-right: 5px;
}

.search-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-field select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn-search {
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-search::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-search:hover::before {
    width: 300px;
    height: 300px;
}

.btn-search:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(0, 102, 204, 0.4),
        0 0 20px rgba(0, 102, 204, 0.3);
}

.btn-search:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-search i {
    transition: transform 0.3s ease;
}

.btn-search:hover i {
    transform: scale(1.2) rotate(90deg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
    animation: mouseScroll 2s infinite;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: mouseWheel 2s infinite;
}

@keyframes mouseScroll {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes mouseWheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

/* ============================================
   FEATURED PROPERTIES SECTION
   ============================================ */
.featured-properties {
    padding: var(--section-padding);
    background: var(--off-white);
}

.property-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 35px;
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* Properties grid for homepage (tabs) */
.properties-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    animation: fadeInGrid 0.5s ease;
}

@media (max-width: 1400px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

.properties-grid.active {
    display: grid;
}

/* Properties grid for archive page */
.propiedades-archive .properties-grid {
    display: block;
}

@keyframes fadeInGrid {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Property Card */
.property-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 16px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-badge.new {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.property-badge.hot {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.property-badge.rental {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.property-card:hover .property-overlay {
    opacity: 1;
}

.btn-view {
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: all var(--transition-fast);
}

.property-card:hover .btn-view {
    transform: translateY(0);
}

.btn-view:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.property-content {
    padding: 25px;
}

.property-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.rental-price {
    font-size: 1.4rem;
}

.rental-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--gray-900);
    transition: color var(--transition-fast);
}

.property-card:hover .property-title {
    color: var(--primary-blue);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 18px;
}

.property-location i {
    color: var(--primary-blue);
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 18px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray-700);
    font-weight: 500;
}

.property-features i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.btn-property {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-property:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.mt-50 {
    margin-top: 50px;
}

.text-center {
    text-align: center;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--section-padding);
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.service-card.featured {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.service-card.featured .service-title,
.service-card.featured .service-description,
.service-card.featured .service-features li {
    color: var(--white);
}

.service-card.featured .service-icon {
    background: var(--white);
    color: var(--primary-blue);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--very-light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    transition: all var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.service-description {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.service-features i {
    color: #10B981;
    font-size: 1rem;
}

.service-card.featured .service-features i {
    color: var(--white);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.service-card.featured .service-link {
    color: var(--white);
}

.service-link:hover {
    gap: 12px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding);
    background: var(--off-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.about-text {
    text-align: left;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.about-text .section-subtitle,
.about-text .section-title {
    text-align: left;
}

.about-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid var(--gray-200);
    border-bottom: 2px solid var(--gray-200);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.feature-item i {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--very-light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-blue);
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--gray-900);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--gray-600);
}

/* ============================================
   LOCATIONS SECTION
   ============================================ */
.locations {
    padding: var(--section-padding);
    background: var(--white);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.location-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    background: var(--white);
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.location-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.location-card:hover .location-image img {
    transform: scale(1.15);
}

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.location-overlay h3 {
    font-size: 1.8rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.location-content {
    padding: 25px;
}

.location-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.location-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 15px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.map-container {
    margin-top: 60px;
    background: var(--off-white);
    padding: 40px 0;
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--section-padding);
    background: var(--off-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    color: var(--white);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.contact-info > p {
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
}

.whatsapp-icon {
    background: #25D366;
}

.contact-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--white);
    font-weight: 600;
}

.contact-details p,
.contact-details a {
    font-size: 0.95rem;
    color: var(--white);
    opacity: 0.9;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.contact-details a:hover {
    opacity: 1;
    text-decoration: underline;
}

.contact-social {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-social h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.contact-form-container {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.85;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: start;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-blue);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-legal a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--primary-blue);
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-fast);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-smooth);
        align-items: flex-start;
        gap: 25px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .search-box {
        padding: 20px;
    }
    
    .property-tabs {
        flex-direction: column;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-top {
        bottom: 85px;
        right: 20px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.fadeIn {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slideInUp {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-on-hover {
    transition: transform var(--transition-fast);
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

/* ============================================
   PROPERTY GALLERY STYLES
   ============================================ */
.property-expanded {
    grid-column: span 1;
}

.property-main-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.property-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.property-card:hover .property-main-image img {
    transform: scale(1.1);
}

.property-gallery {
    margin: 25px 0;
    padding: 25px 0;
    border-top: 2px solid var(--gray-200);
}

.gallery-title {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-title i {
    color: var(--primary-blue);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.btn-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--very-light-blue);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-show-more:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   GALLERY LIGHTBOX
   ============================================ */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--gray-900);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-900);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-900);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS FOR GALLERY
   ============================================ */
@media (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .property-main-image {
        height: 300px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid img {
        height: 80px;
    }
}

/* ============================================
   ARCHIVE PAGE STYLES
   ============================================ */

.archive-hero {
    min-height: 300px;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.archive-hero .hero-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.archive-hero .hero-title {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 15px;
}

.archive-hero .hero-subtitle {
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0.95;
}

.propiedades-archive {
    background: var(--off-white);
}

/* Filter Styles */
.properties-filters {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.filter-form .filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 12px 15px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition-fast);
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.filter-group button {
    padding: 12px 30px;
    white-space: nowrap;
}

/* Properties Count */
.properties-count {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
}

.properties-count strong {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Properties Grid */
.property-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.property-card .property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-card .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-card .property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-card .property-badge.badge-venta {
    background: var(--primary-blue);
    color: var(--white);
}

.property-card .property-badge.badge-arriendo {
    background: #10B981;
    color: var(--white);
}

.property-card .property-info {
    padding: 25px;
}

.property-card .property-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.property-card .property-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: var(--transition-fast);
}

.property-card .property-title a:hover {
    color: var(--primary-blue);
}

.property-card .property-location {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-card .property-location i {
    color: var(--primary-blue);
}

.property-card .property-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.property-card .property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.property-card .property-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.property-card .property-features i {
    color: var(--primary-blue);
}

/* Custom Features */
.property-custom-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.property-custom-features .custom-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.property-custom-features .custom-feature:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.property-custom-features .custom-feature:hover i {
    color: var(--white);
}

.property-custom-features .custom-feature i {
    color: var(--primary-blue);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.property-card .property-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.property-card .btn-outline-primary {
    width: 100%;
    justify-content: center;
}

/* No Properties Found */
.no-properties-found {
    background: var(--white);
    border-radius: 12px;
    padding: 60px 30px;
}

.no-properties-found h3 {
    font-size: 1.8rem;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.no-properties-found p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination-wrapper .page-numbers {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
}

.pagination-wrapper .page-numbers li {
    display: inline-block;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    display: inline-block;
    padding: 12px 18px;
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.pagination-wrapper .page-numbers a:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.pagination-wrapper .page-numbers .current {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Responsive Archive Styles */
@media (max-width: 992px) {
    .archive-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .filter-form .filter-row {
        grid-template-columns: 1fr;
    }
    
    .property-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .archive-hero {
        min-height: 250px;
        padding: 60px 0;
    }
    
    .archive-hero .hero-title {
        font-size: 2rem;
    }
    
    .archive-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .properties-filters {
        padding: 20px;
    }
    
    .property-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .property-card .property-title {
        font-size: 1.15rem;
    }
    
    .property-card .property-price {
        font-size: 1.5rem;
    }
    
    .pagination-wrapper .page-numbers a,
    .pagination-wrapper .page-numbers span {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* ========================================
   SINGLE PROPERTY PAGE
======================================== */

.property-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e3a8a 100%);
    padding: 60px 0 40px;
    color: var(--white);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.property-main-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--white);
}

.property-main-location {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.95;
}

.property-main-location i {
    color: #60a5fa;
}

.property-main-price {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.property-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.property-main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.property-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.property-badge-large {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.property-description-box,
.property-features-box,
.property-type-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.section-title-small {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    color: var(--gray-900);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-blue);
}

.property-full-description {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 1.05rem;
}

.property-full-description p {
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.feature-item:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.feature-info {
    display: flex;
    flex-direction: column;
}

.feature-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    font-family: var(--font-heading);
}

.feature-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.property-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sidebar */
.property-sidebar {
    position: sticky;
    top: 100px;
}

.contact-card,
.share-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.contact-title {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: var(--gray-900);
    margin-bottom: 10px;
}

.contact-subtitle {
    color: var(--gray-600);
    margin-bottom: 25px;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-top: 3px;
}

.contact-item strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.contact-item p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-item a:hover {
    color: #1e40af;
}

.btn-block {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-success {
    background: #25D366;
    color: var(--white);
    border: none;
}

.btn-success:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.share-card h4 {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--gray-900);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 1.2rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #166fe5;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #1a8cd8;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.whatsapp:hover {
    background: #20ba5a;
}

/* Related Properties */
.related-properties {
    background: var(--gray-50);
}

/* Responsive */
@media (max-width: 992px) {
    .property-layout {
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        position: static;
    }
    
    .property-main-title {
        font-size: 2rem;
    }
    
    .property-main-price {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .property-header {
        flex-direction: column;
    }
    
    .property-main-price {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PROPERTY GALLERY STYLES
   ============================================ */
.property-gallery-section {
    position: relative;
}

.gallery-main-image {
    position: relative;
    width: 100%;
    height: 600px;
    background: var(--gray-900);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.gallery-main-image:hover img {
    transform: scale(1.02);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.gallery-nav:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.gallery-thumb {
    position: relative;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-thumb.active {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 1px var(--primary-blue);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-main-image {
        height: 400px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .gallery-thumb {
        height: 70px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   GLOBAL ANIMATIONS & HOVER EFFECTS
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply animations to elements */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: fadeInUp 1s ease 0.9s forwards;
    opacity: 0;
}

/* Section animations */
section {
    animation: fadeInUp 0.8s ease forwards;
}

/* Property Cards Animation */
.property-card {
    animation: scaleIn 0.6s ease forwards;
    transform-origin: center;
}

.property-card:nth-child(1) { animation-delay: 0.1s; opacity: 0; }
.property-card:nth-child(2) { animation-delay: 0.2s; opacity: 0; }
.property-card:nth-child(3) { animation-delay: 0.3s; opacity: 0; }
.property-card:nth-child(4) { animation-delay: 0.4s; opacity: 0; }
.property-card:nth-child(5) { animation-delay: 0.5s; opacity: 0; }
.property-card:nth-child(6) { animation-delay: 0.6s; opacity: 0; }
.property-card:nth-child(7) { animation-delay: 0.7s; opacity: 0; }
.property-card:nth-child(8) { animation-delay: 0.8s; opacity: 0; }

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    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 30px rgba(0, 102, 204, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gradient-primary);
}

.btn-primary:hover {
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.5);
}

.btn-outline-primary {
    position: relative;
    z-index: 1;
}

.btn-outline-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-blue);
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 8px;
}

.btn-outline-primary:hover::after {
    width: 100%;
}

.btn-outline-primary:hover {
    color: white;
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover i {
    transform: translateX(5px);
}

.btn i {
    transition: transform 0.3s ease;
}

/* Property Card Hover Effects */
.property-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.property-image {
    position: relative;
    overflow: hidden;
}

.property-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    transition: all 0.3s ease;
}

.property-card:hover .property-badge {
    transform: scale(1.05);
}

/* Input Focus Effects */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.15);
}

/* Custom Feature Pills Animation */
.custom-feature {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.custom-feature:nth-child(1) { animation-delay: 0.1s; }
.custom-feature:nth-child(2) { animation-delay: 0.2s; }
.custom-feature:nth-child(3) { animation-delay: 0.3s; }
.custom-feature:nth-child(4) { animation-delay: 0.4s; }
.custom-feature:nth-child(5) { animation-delay: 0.5s; }
.custom-feature:nth-child(6) { animation-delay: 0.6s; }

/* Link Hover Effects */
a {
    transition: all 0.3s ease;
}

.property-title a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

/* Icon Animations */
.fas, .fab {
    transition: all 0.3s ease;
}

.property-features span:hover i,
.custom-feature:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Search Form Animation */
.search-field {
    transition: all 0.3s ease;
}

.search-field:hover {
    transform: translateY(-2px);
}

.search-field select:hover,
.search-field input:hover {
    border-color: var(--primary-blue);
}

/* Tab Button Effects */
.tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab-btn:hover::after,
.tab-btn.active::after {
    width: 100%;
}

.tab-btn:hover {
    transform: translateY(-2px);
}

/* Contact Card Animation */
.contact-card {
    animation: fadeInRight 0.8s ease forwards;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    background: var(--very-light-blue);
    padding-left: 15px;
    border-radius: 8px;
}

.contact-item i {
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2);
    color: var(--primary-blue);
}

/* Feature Item Hover */
.feature-item {
    transition: all 0.3s ease;
    animation: fadeInLeft 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; opacity: 0; }
.feature-item:nth-child(2) { animation-delay: 0.2s; opacity: 0; }
.feature-item:nth-child(3) { animation-delay: 0.3s; opacity: 0; }
.feature-item:nth-child(4) { animation-delay: 0.4s; opacity: 0; }

.feature-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    background: var(--very-light-blue);
}

.feature-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-blue);
}

/* Scroll Indicator Animation */
.scroll-indicator {
    animation: float 2s ease-in-out infinite;
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Property Badge Pulse */
.property-badge-large {
    animation: pulse 2s ease-in-out infinite;
}

/* Social Share Buttons */
.share-btn {
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Navigation Menu Hover */
.site-header nav a {
    position: relative;
    transition: color 0.3s ease;
}

.site-header nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.site-header nav a:hover::after {
    width: 100%;
}

/* Smooth Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .property-card:hover {
        transform: translateY(-5px);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
}

/* Ripple Effect for Buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    width: 20px;
    height: 20px;
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

/* Glow effect on hover */
.btn-primary:hover {
    box-shadow: 
        0 0 20px rgba(0, 102, 204, 0.5),
        0 0 40px rgba(0, 102, 204, 0.3),
        0 0 60px rgba(0, 102, 204, 0.1);
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.property-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.property-card:hover::after {
    opacity: 1;
}

/* Text reveal animation */
@keyframes textReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.section-title {
    animation: textReveal 1s ease forwards;
}

/* Bounce animation for scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.scroll-indicator:hover .mouse {
    animation: bounce 1s ease infinite;
}

/* Card shine effect */
.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.property-card:hover::before {
    left: 100%;
}

/* Gradient text effect */
.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced shadow on scroll */
.navbar.scrolled {
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Typing animation for headings */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Staggered fade-in for lists */
.footer-links li {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.footer-links li:nth-child(1) { animation-delay: 0.1s; }
.footer-links li:nth-child(2) { animation-delay: 0.2s; }
.footer-links li:nth-child(3) { animation-delay: 0.3s; }
.footer-links li:nth-child(4) { animation-delay: 0.4s; }
.footer-links li:nth-child(5) { animation-delay: 0.5s; }

/* Icon rotate on hover */
.footer-social a:hover i {
    transform: rotate(360deg) scale(1.2);
}

/* Search field focus glow */
.search-field input:focus,
.search-field select:focus {
    box-shadow: 
        0 0 0 3px rgba(0, 102, 204, 0.1),
        0 0 20px rgba(0, 102, 204, 0.2);
}

/* Property price pulse */
.property-price {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth color transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* WhatsApp button pulse */
.whatsapp-float {
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    animation: none;
    transform: scale(1.1) rotate(5deg);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* FIX HEADER OVERLAP - SINGLE PROPERTY */
.property-hero {
    padding-top: 140px; /* ajusta según altura real del header */
}
/* FIX CONTACT CARD VISUAL */
.contact-card .contact-info {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    padding: 30px;
    border-radius: 12px;
}

.contact-card .contact-item {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}

.contact-card .contact-item:last-child {
    border-bottom: none;
}

.contact-card .contact-item i {
    color: #ffffff;
}

.contact-card .contact-item strong,
.contact-card .contact-item p,
.contact-card .contact-item a {
    color: #ffffff;
}
.hero-title .highlight {
    color: #7aa7e9;
}
/* FIX NUMEROS - Reemplazar fuente defectuosa Playfair Display por Montserrat */
.property-price,
.property-main-price,
.feature-value,
.stat-number,
.badge-number,
.property-features span,
.property-custom-features,
.property-title,
.property-main-title {
    font-family: 'Montserrat', sans-serif !important;
    font-variant-numeric: lining-nums;
}
/* DESACTIVAR SOLO LAS ANIMACIONES DE PRECIOS Y NÚMEROS */
.property-price,
.property-main-price,
.stat-number,
.badge-number,
.feature-value {
    animation: none !important;
}

