/* ============================================
   TABLA DE CONTENIDO - main.css
   1. Variables y configuración global
   2. Tema oscuro
   3. Reset y estilos base
   4. Tipografía
   10. Layout - Header y navegación
   11. Hero cinematográfico
   12. Layout - Breadcrumb
   13. Layout - Secciones y contenedores
   14. Layout - Call to action
   15. Layout - Footer
   16. Páginas específicas - Detalle de propiedad
   17. Páginas específicas - Detalle de agente
   18. Páginas específicas - Detalle de artículo
   25. Animaciones globales
   27. Media queries
   28. Estilos de impresión
   29. Accesibilidad
   30. Tema oscuro - ajustes específicos
   ============================================ */

/* ============================================
   # 1. Variables y configuración global
   ============================================ */
:root {
    --primary-50: #fff7ed;
    --primary-100: #ffedd5;
    --primary-200: #fed7aa;
    --primary-300: #fdba74;
    --primary-400: #fb923c;
    --primary-500: #f67a21;
    --primary-600: #ef731a;
    --primary-700: #c2410c;
    --primary-800: #9a3412;
    --primary-900: #7c2d12;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --dark-50: #1a1d23;
    --dark-100: #242830;
    --dark-200: #2d333d;
    --dark-300: #363e4a;
    --dark-400: #404957;
    --dark-500: #4a5464;
    --dark-600: #5a6478;
    --dark-700: #6b768c;
    --dark-800: #7c88a0;
    --dark-900: #8d9ab4;
    --success-500: #10b981;
    --warning-500: #f59e0b;
    --error-500: #ef4444;
    --info-500: #3b82f6;
    --brand-yellow-50:  #fffdf0;
    --brand-yellow-100: #fff9d9;
    --brand-yellow-200: #fff4c2;
    --brand-yellow-300: #ffefaa;
    --brand-yellow-400: #ffe588;
    --brand-yellow-500: #f6ce59;
    --brand-yellow-600: #e0b841;
    --brand-yellow-700: #c9a12a;
    --brand-yellow-800: #b38a14;
    --brand-yellow-900: #9c7400;
    --brand-orange-50:  #fff3e8;
    --brand-orange-100: #ffe6d1;
    --brand-orange-200: #ffd2a8;
    --brand-orange-300: #ffbe7f;
    --brand-orange-400: #f67f26;
    --brand-orange-500: #e06e1c;
    --brand-orange-600: #c95d12;
    --brand-orange-700: #b34c08;
    --brand-orange-800: #9c3b00;
    --brand-orange-900: #862a00;
    --brand-orange-400-rgb: 246, 127, 38;
    --gradient-primary: linear-gradient(135deg, var(--brand-orange-400) 0%, var(--primary-500) 100%);
    --gradient-primary-hover: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    --gradient-orange-yellow: linear-gradient(135deg, var(--primary-600) 0%, var(--brand-orange-400) 35%, var(--brand-yellow-400) 100%);
    --gradient-sunset: linear-gradient(135deg, var(--primary-600) 0%, var(--brand-orange-400) 50%, var(--brand-yellow-400) 100%);
    --gradient-fire: linear-gradient(135deg, #ff4500 0%, var(--primary-500) 50%, var(--brand-yellow-400) 100%);
    --gradient-golden: linear-gradient(135deg, var(--brand-yellow-400) 0%, var(--brand-yellow-500) 100%);
    --gradient-citrus: linear-gradient(135deg, var(--brand-yellow-400) 0%, var(--warning-500) 50%, var(--primary-600) 100%);
    --gradient-amber: linear-gradient(135deg, var(--brand-yellow-400) 0%, var(--primary-600) 100%);
    --gradient-orange-glow: linear-gradient(135deg, var(--primary-400) 0%, var(--brand-yellow-400) 100%);
    --gradient-brand-full: linear-gradient(135deg, var(--primary-600) 0%, var(--brand-orange-400) 35%, var(--brand-yellow-400) 65%, var(--brand-yellow-300) 100%);
    --gradient-dark: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    --gradient-light: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
    --gradient-success: linear-gradient(135deg, var(--success-500) 0%, #34d399 100%);
    --gradient-info: linear-gradient(135deg, var(--info-500) 0%, #60a5fa 100%);
    --gradient-warm: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    --gradient-sunrise: linear-gradient(135deg,
            var(--brand-yellow-100) 0%,
            var(--brand-yellow-300) 25%,
            var(--brand-orange-200) 50%,
            var(--brand-orange-400) 75%,
            var(--primary-600) 100%);
    --gradient-amber-glow: linear-gradient(135deg,
            var(--brand-yellow-200) 0%,
            var(--brand-yellow-400) 25%,
            var(--brand-orange-300) 50%,
            var(--brand-orange-500) 75%,
            var(--primary-700) 100%);
    --gradient-honey: linear-gradient(135deg,
            var(--brand-yellow-50) 0%,
            var(--brand-yellow-100) 25%,
            var(--brand-yellow-200) 50%,
            var(--brand-yellow-300) 75%,
            var(--brand-yellow-400) 100%);
    --gradient-citrus-punch: linear-gradient(135deg,
            var(--brand-yellow-400) 0%,
            var(--brand-orange-300) 33%,
            var(--brand-orange-400) 66%,
            var(--primary-500) 100%);
    --gradient-golden-hour: linear-gradient(135deg,
            var(--brand-yellow-500) 0%,
            var(--brand-yellow-600) 25%,
            var(--brand-orange-500) 50%,
            var(--primary-600) 75%,
            var(--primary-700) 100%);
    --gradient-marmalade: linear-gradient(135deg,
            var(--brand-orange-100) 0%,
            var(--brand-orange-200) 25%,
            var(--brand-orange-300) 50%,
            var(--brand-orange-400) 75%,
            var(--brand-orange-500) 100%);
    --gradient-button-primary: linear-gradient(135deg,
            var(--brand-orange-400) 0%,
            var(--primary-500) 50%,
            var(--primary-600) 100%);
    --gradient-button-hover: linear-gradient(135deg,
            var(--primary-500) 0%,
            var(--primary-600) 50%,
            var(--brand-orange-500) 100%);
    --gradient-button-active: linear-gradient(135deg,
            var(--primary-600) 0%,
            var(--brand-orange-500) 50%,
            var(--brand-orange-600) 100%);
    --gradient-bg-warm: linear-gradient(135deg,
            var(--brand-yellow-50) 0%,
            var(--brand-orange-50) 100%);
    --gradient-bg-subtle: linear-gradient(135deg,
            var(--primary-50) 0%,
            var(--brand-yellow-50) 50%,
            var(--brand-orange-50) 100%);
    --gradient-card-warm: linear-gradient(135deg,
            rgba(255, 253, 240, 0.9) 0%,
            rgba(255, 243, 232, 0.9) 100%);
    --gradient-card-accent: linear-gradient(135deg,
            transparent 0%,
            rgba(246, 127, 38, 0.05) 50%,
            rgba(246, 206, 89, 0.05) 100%);
    --gradient-text-brand: linear-gradient(135deg,
            var(--brand-yellow-600) 0%,
            var(--brand-orange-500) 100%);
    --gradient-text-accent: linear-gradient(135deg,
            var(--primary-500) 0%,
            var(--brand-orange-400) 50%,
            var(--brand-yellow-500) 100%);
    --bg-primary: var(--gray-50);
    --bg-secondary: var(--gray-100);
    --bg-tertiary: var(--gray-200);
    --bg-quaternary: var(--primary-50);
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.95);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-tertiary: var(--gray-600);
    --border-color: var(--gray-300);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-dark: rgba(0, 0, 0, 0.3);
    --shadow-xs: 0 1px 2px 0 var(--shadow-color);
    --shadow-sm: 0 1px 3px 0 var(--shadow-color), 0 1px 2px -1px var(--shadow-color);
    --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color);
    --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -4px var(--shadow-color);
    --shadow-xl: 0 20px 25px -5px var(--shadow-color), 0 8px 10px -6px var(--shadow-color);
    --shadow-2xl: 0 25px 50px -12px var(--shadow-color);
    --shadow-primary: 0 4px 14px 0 rgba(246, 122, 33, 0.3);
    --shadow-secondary: 0 4px 14px 0 rgba(138, 138, 138, 0.15);
    --shadow-tertiary: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    --shadow-golden: 0 4px 20px rgba(255, 229, 136, 0.3);
    --shadow-orange-glow: 0 0 15px rgba(246, 122, 33, 0.5);
    --shadow-amber: 0 4px 14px rgba(239, 115, 26, 0.25);
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;
    --space-10: 8rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --radius-circle: 50%;
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    --transition-transform: transform 0.3s ease-in-out;
    --transition-gradient: transform 0.5s ease-in-out;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    --primary-500-rgb: 246, 122, 33;
    --primary-600-rgb: 239, 115, 26;
    --brand-yellow-400-rgb: 255, 229, 136;
}

/* ============================================
   # 2. Tema oscuro
   ============================================ */
[data-theme="dark"] {
    --bg-primary: var(--dark-50);
    --bg-secondary: var(--dark-100);
    --bg-tertiary: var(--dark-200);
    --bg-quaternary: rgba(var(--brand-orange-400-rgb), 0.05);
    --bg-card: var(--dark-200);
    --bg-header: rgba(26, 29, 35, 0.95);
    --text-primary: #ffffff;
    --text-secondary: var(--dark-900);
    --text-tertiary: var(--dark-800);
    --border-color: var(--dark-400);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-primary: 0 4px 14px 0 rgba(246, 122, 33, 0.2);
    --shadow-secondary: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
    --shadow-golden: 0 4px 20px rgba(255, 229, 136, 0.2);
    --shadow-orange-glow: 0 0 15px rgba(246, 122, 33, 0.3);
    --shadow-amber: 0 4px 14px rgba(239, 115, 26, 0.2);
    --gradient-light: linear-gradient(135deg, var(--dark-100) 0%, var(--dark-200) 100%);
    --gradient-warm: linear-gradient(135deg, rgba(254, 243, 199, 0.1) 0%, rgba(253, 230, 138, 0.1) 100%);
    --gradient-sunrise: linear-gradient(135deg,
            rgba(255, 249, 217, 0.2) 0%,
            rgba(255, 239, 170, 0.3) 25%,
            rgba(255, 190, 127, 0.4) 50%,
            rgba(246, 127, 38, 0.6) 75%,
            rgba(239, 115, 26, 0.8) 100%);
    --gradient-honey: linear-gradient(135deg,
            rgba(255, 253, 240, 0.1) 0%,
            rgba(255, 249, 217, 0.15) 25%,
            rgba(255, 244, 194, 0.2) 50%,
            rgba(255, 239, 170, 0.25) 75%,
            rgba(255, 229, 136, 0.3) 100%);
    --gradient-bg-warm: linear-gradient(135deg,
            rgba(26, 29, 35, 0.9) 0%,
            rgba(246, 127, 38, 0.05) 100%);
    --gradient-card-warm: linear-gradient(135deg,
            rgba(26, 29, 35, 0.95) 0%,
            rgba(36, 40, 48, 0.98) 100%);
    --gradient-card-accent: linear-gradient(135deg,
            transparent 0%,
            rgba(246, 127, 38, 0.08) 50%,
            rgba(246, 206, 89, 0.08) 100%);
    --gradient-text-brand: linear-gradient(135deg,
            var(--brand-yellow-500) 0%,
            var(--brand-orange-400) 100%);
    --gradient-text-accent: linear-gradient(135deg,
            var(--brand-yellow-400) 0%,
            var(--brand-orange-400) 50%,
            var(--primary-500) 100%)
}

/* ============================================
   # 3. Reset y estilos base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
    min-height: 100vh;
}

body.detail-view { overflow-x: hidden; }
body.modal-open { overflow: hidden; }

ul, ol {
    list-style: none;
    padding-left: 0;
}

/* ============================================
   # 4. Tipografía
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.display-1 { font-size: var(--font-size-6xl); }
.display-2 { font-size: var(--font-size-5xl); }
.display-3 { font-size: var(--font-size-4xl); }
.display-4 { font-size: var(--font-size-3xl); }
h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

.lead {
    font-size: var(--font-size-xl);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
}

p { margin-bottom: var(--space-4); }

a {
    color: var(--primary-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--primary-600); }

/* ============================================
   10. Layout - Header y navegación
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    background-color: var(--bg-header);
    transition: all var(--transition-base);
    padding: var(--space-4) 0;
    border-bottom: 1px solid transparent;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.main-header.scrolled {
    padding: var(--space-3) 0;
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

.main-header.in-hero {
    background-color: transparent;
    border-bottom-color: transparent;
}

.main-header.in-hero .desktop-menu-link {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-header.in-hero .desktop-menu-link.active {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.main-header.in-hero.scrolled {
    background-color: transparent;
    border-bottom-color: transparent;
}

.header-logo {
    position: relative;
    width: 180px;
    height: 50px;
    display: block;
}

.header-logo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logo-light { opacity: 1; visibility: visible; }
.logo-dark { opacity: 0; visibility: hidden; }

[data-theme="dark"] .header-logo .logo-light { opacity: 0; visibility: hidden; }
[data-theme="dark"] .header-logo .logo-dark { opacity: 1; visibility: visible; }

.main-header.in-hero .header-logo .logo-light { opacity: 0; visibility: hidden; }
.main-header.in-hero .header-logo .logo-dark { opacity: 1; visibility: visible; }

.desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.desktop-menu {
    display: flex;
    list-style: none;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
}

.desktop-menu-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.desktop-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s ease;
    z-index: -1;
}

.desktop-menu-link:hover {
    background: var(--gradient-orange-yellow);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(246, 122, 33, 0.3);
}

.desktop-menu-link.active {
    background: var(--gradient-orange-yellow);
    font-weight: 600;
    color: white;
}

.desktop-menu-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background-color: var(--primary-500);
    border-radius: var(--radius-full);
}

.theme-toggle-desktop {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle-desktop:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    position: relative;
    cursor: pointer;
    padding: 0;
    z-index: var(--z-modal);
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    left: 4px;
    transition: all var(--transition-base);
}

.mobile-toggle span:nth-child(1) { top: 10px; }
.mobile-toggle span:nth-child(2) { top: 15px; }
.mobile-toggle span:nth-child(3) { top: 20px; }

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 15px;
}

.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 15px;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: var(--z-modal);
    padding: var(--space-7) var(--space-5) var(--space-5);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active { right: 0; }

.sidebar-close-btn {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    background: rgba(246, 122, 33, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.sidebar-close-btn:hover {
    background: linear-gradient(135deg, #f67a21 0%, #ff9c4d 100%);
    color: white;
}

.mobile-nav {
    flex: 1;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu > li {
    margin-bottom: var(--space-3);
}

.mobile-nav-menu a,
.mobile-submenu-toggle {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-color);
    transition: color var(--transition-fast);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active,
.mobile-submenu-toggle:hover {
    color: var(--primary-500);
}

.mobile-submenu-toggle {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
    padding-right: var(--space-6);
    font-size: var(--font-size-base);
    font-family: inherit;
}

.mobile-submenu-toggle::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-base);
    font-size: var(--font-size-sm);
}

.mobile-submenu-toggle.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
    padding-left: var(--space-4);
    margin-top: var(--space-2);
}

.mobile-submenu.active {
    max-height: 300px;
}

.mobile-submenu a {
    border-bottom: none;
    padding: var(--space-2) 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.mobile-submenu a:hover {
    color: var(--primary-500);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.theme-toggle-mobile {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    transition: all var(--transition-base);
    background: var(--gradient-orange-yellow);
}

.theme-toggle-mobile:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-primary-hover); 
}

.theme-toggle-mobile.back-to-top {
    background: var(--gradient-fire); 
}

.theme-toggle-mobile.back-to-top:hover {
    background: var(--gradient-sunset); 
}

.theme-toggle-mobile i {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle-mobile.back-to-top i {
    transform: translateY(-2px);
}
@keyframes bounce {
    from {
        transform: translateY(-2px);
    }
    to {
        transform: translateY(2px);
    }
}

/* ============================================
   11. Hero cinematográfico
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
    --cinematic-bg: url('/static/images/lombriz.webp');
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: var(--cinematic-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: cinematic-move 35s infinite ease-in-out;
    filter: 
        brightness(0.85) 
        contrast(1.2)
        saturate(1.05);
    will-change: transform, filter;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.9);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        transparent 15%,
        transparent 85%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
    z-index: 2;
}

@keyframes cinematic-move {
    0% {
        transform: scale(1) translateX(0) translateY(0);
        filter: brightness(0.85) contrast(1.2);
    }
    25% {
        transform: scale(1.08) translateX(-1.5%) translateY(-1%);
        filter: brightness(0.88) contrast(1.25);
    }
    50% {
        transform: scale(1.05) translateX(1.5%) translateY(1.5%);
        filter: brightness(0.82) contrast(1.18);
    }
    75% {
        transform: scale(1.07) translateX(1%) translateY(-1%);
        filter: brightness(0.87) contrast(1.22);
    }
    100% {
        transform: scale(1) translateX(0) translateY(0);
        filter: brightness(0.85) contrast(1.2);
    }
}

.hero-section .container {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    padding: 0 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    padding: var(--space-8) 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: var(--space-5);
    line-height: 1.1;
    text-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.2),
                0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: var(--space-8);
    line-height: 1.7;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.hero-cta-primary, .hero-cta-secondary {
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .hero-section::before {
        animation: cinematic-move-mobile 30s infinite ease-in-out;
    }
    
    @keyframes cinematic-move-mobile {
        0% {
            transform: scale(1) translateX(0) translateY(0);
        }
        25% {
            transform: scale(1.06) translateX(-1%) translateY(-0.5%);
        }
        50% {
            transform: scale(1.04) translateX(1%) translateY(0.5%);
        }
        75% {
            transform: scale(1.05) translateX(0.5%) translateY(-0.5%);
        }
        100% {
            transform: scale(1) translateX(0) translateY(0);
        }
    }
    
    .hero-section::after {
        box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9);
    }
}

.hero-cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-primary,
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: var(--font-size-base);
}

.hero-cta-primary {
    background: linear-gradient(135deg, #eb5914 0%, #f67f26 35%, #f6ce59 100%);
    color: white;
    border: none;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.2),
                0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.2),
                0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-orange-yellow);
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-cta-primary:hover {
    background-position: 100% 50%;
    transform: translateY(-4px);
    color: white;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4),
                inset 0 -2px 0 rgba(0, 0, 0, 0.1),
                0 8px 25px rgba(246, 122, 33, 0.5);
}

.hero-cta-primary:hover::before {
    opacity: 1;
    transform: scale(1.02);
    filter: blur(5px);
}

.hero-cta-primary:active {
    transform: translateY(-1px);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2),
                inset 0 -2px 0 rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-cta-primary i {
    font-size: var(--font-size-lg);
    transition: transform 0.3s ease;
}

.hero-cta-primary:hover i {
    transform: translateY(-2px);
}

.hero-cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-orange-yellow);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.hero-cta-secondary:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(246, 122, 33, 0.3),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-cta-secondary:hover::before {
    left: 0;
}

.hero-cta-secondary i {
    position: relative;
    z-index: 2;
    font-size: var(--font-size-lg);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-cta-secondary:hover i {
    transform: translateY(-2px) rotate(15deg);
}

/* ============================================
   12. Layout - Breadcrumb
   ============================================ */
.app-breadcrumb {
    position: absolute;
    bottom: var(--space-6);
    left: 0;
    width: 100%;
    z-index: 20;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0 var(--space-5);
    margin: 0;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.breadcrumb-link:hover {
    color: white;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 var(--space-2);
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
    color: white;
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

/* ============================================
   13. Layout - Secciones y contenedores
   ============================================ */
.section {
    padding: var(--space-8) 0;
    position: relative;
}

.section-sm {
    padding: var(--space-6) 0;
}

.section-lg {
    padding: var(--space-10) 0;
}

.section.bg-tertiary {
    background-color: var(--bg-tertiary);
}

.section.bg-secondary {
    background-color: var(--bg-secondary);
}
.section.bg-quaternary {
    background-color: var(--bg-quaternary);
} 

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-5);
}

/* ============================================
   14. Layout - Call to action
   ============================================ */
.cta-section {
    padding: var(--space-9) 0;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.15'%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");
    background-size: 60px 60px;
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(1turn)
    }
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ============================================
   15. Layout - Footer
   ============================================ */
.footer {
    background-color: var(--gray-900);
    color: white;
    padding: var(--space-8) 0 var(--space-6);
}

[data-theme="dark"] .footer {
    background-color: var(--dark-100);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--primary-300);
}

.footer .header-logo img {
    height: 40px;
    margin-bottom: var(--space-4);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.social-icons {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--primary-500);
    transform: translateY(-2px);
    color: white;
}

.footer h5 {
    color: white;
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: var(--space-3);
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}

.footer ul li a:hover {
    color: white;
    padding-left: var(--space-2);
}

.footer-newsletter-form .input-group {
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: var(--space-3) var(--space-4);
}

.footer-newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-form .btn {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-300));
    color: white;
    border: none;
    padding: var(--space-3) var(--space-5);
}

.footer-newsletter-form .btn:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
}

.footer .text-light {
    color: rgba(255, 255, 255, 0.7);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: var(--space-7) 0;
}

/* ============================================
   16. Páginas específicas - Detalle de propiedad
   ============================================ */
.detail-container,
.property-detail-container {
    background-color: var(--bg-primary);
    min-height: 100vh;
}

.property-detail-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.property-detail-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.property-detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
}

.property-detail-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-8) var(--space-5);
    color: white;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.property-detail-hero-price {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--primary-300);
    margin: var(--space-3) 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.property-detail-gallery {
    margin: var(--space-6) 0;
}

.property-detail-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-lg);
}

.property-detail-thumbnails {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    padding: var(--space-4) 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-500) var(--bg-tertiary);
}

.property-detail-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.property-detail-thumbnails::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

.property-detail-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--primary-500);
    border-radius: var(--radius-full);
}

.property-detail-thumbnail {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.property-detail-thumbnail:hover,
.property-detail-thumbnail.active {
    opacity: 1;
    border: 3px solid var(--primary-500);
    transform: scale(1.05);
}

.property-detail-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin: var(--space-5) 0;
}

.property-detail-feature {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.property-detail-feature:hover {
    border-color: var(--primary-300);
    transform: translateY(-2px);
}

.property-detail-feature i {
    font-size: var(--font-size-2xl);
    color: var(--primary-500);
    width: 48px;
    text-align: center;
}

.property-detail-feature-text {
    display: flex;
    flex-direction: column;
}

.property-detail-feature-value {
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    line-height: 1;
}

.property-detail-feature-label {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--space-1);
}

.property-detail-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.property-detail-amenity {
    padding: var(--space-2) var(--space-4);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.property-detail-amenity:hover {
    background-color: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
    transform: translateY(-2px);
}

.property-detail-sidebar {
    position: sticky;
    top: var(--space-8);
}

.agent-info {
    background-color: var(--bg-card);
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-5);
}

.agent-contact {
    margin-top: var(--space-4);
}

.agent-contact p {
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.agent-contact p i {
    color: var(--primary-500);
    width: 20px;
}

.property-detail-contact-form {
    background-color: var(--bg-card);
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-5);
}

.property-detail-contact-form h5 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

/* ============================================
   17. Páginas específicas - Detalle de agente
   ============================================ */
.agent-detail-container {
    background-color: var(--bg-primary);
}

.agent-detail-profile {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-8) 0;
    flex-wrap: wrap;
}

.agent-detail-avatar {
    width: 240px;
    height: 240px;
    border-radius: var(--radius-2xl);
    object-fit: cover;
    border: 8px solid var(--bg-card);
    box-shadow: var(--shadow-2xl);
    flex-shrink: 0;
}

.agent-detail-info {
    flex: 1;
    min-width: 300px;
}

.agent-detail-rating {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-4) 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.agent-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin: var(--space-7) 0;
}

.agent-detail-stat {
    text-align: center;
    padding: var(--space-5);
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.agent-detail-stat:hover {
    border-color: var(--primary-300);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.agent-detail-stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--primary-500);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.agent-detail-stat-label {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.testimonial-item {
    background-color: var(--bg-card);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.testimonial-item:hover {
    border-color: var(--primary-300);
    transform: translateY(-2px);
}

.agent-properties-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.agent-property-item {
    padding: var(--space-3);
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.agent-property-item:hover {
    border-color: var(--primary-300);
    transform: translateX(4px);
}

/* ============================================
   18. Páginas específicas - Detalle de artículo
   ============================================ */
.article-detail-container {
    background-color: var(--bg-primary);
}

.article-detail-hero {
    background-color: var(--bg-card);
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--border-color);
}

.article-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.article-detail-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.article-detail-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary-500);
}

.article-read-time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

.article-detail-content {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-primary);
}

.article-detail-content h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.article-detail-content p {
    margin-bottom: var(--space-5);
    color: var(--text-secondary);
}

.key-points-list {
    list-style: none;
    padding: 0;
    margin: var(--space-5) 0;
}

.key-points-list li {
    margin-bottom: var(--space-3);
    padding-left: var(--space-5);
    position: relative;
    color: var(--text-secondary);
}

.key-points-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    background-color: var(--primary-500);
    border-radius: var(--radius-full);
}

.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: var(--space-5) 0;
}

.article-detail-tag {
    padding: var(--space-2) var(--space-4);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.article-detail-tag:hover {
    background-color: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.article-detail-share {
    display: flex;
    align-items: center;
    padding: var(--space-5);
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    margin: var(--space-6) 0;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.article-detail-share span {
    font-weight: 600;
    color: var(--text-primary);
}

.article-detail-share-buttons {
    display: flex;
    gap: var(--space-3);
}

.article-detail-share-button {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: var(--font-size-lg);
}

.article-detail-share-button.facebook {
    background-color: #1877f2;
}

.article-detail-share-button.twitter {
    background-color: #1da1f2;
}

.article-detail-share-button.linkedin {
    background-color: #0077b5;
}

.article-detail-share-button:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.article-detail-related {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.related-article-item {
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.related-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ============================================
   25. Animaciones globales
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    100% { left: 100%; }
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(251, 146, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0); }
}

.animate-fade-in { animation: fadeIn var(--transition-base) ease-out; }
.animate-slide-in-right { animation: slideInRight var(--transition-base) ease-out; }
.animate-slide-in-left { animation: slideInLeft var(--transition-base) ease-out; }
.animate-scale-in { animation: scaleIn var(--transition-base) ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }

.hover-glow-orange:hover { box-shadow: var(--shadow-orange-glow); }
.hover-glow-yellow:hover { box-shadow: var(--shadow-golden); }
.hover-lift:hover { transform: translateY(-4px); }
.hover-scale:hover { transform: scale(1.05); }

.pulse-orange { animation: pulse-orange 2s infinite; }

.img-shimmer {
    position: relative;
    overflow: hidden;
}

.img-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

/* ============================================
   27. Media queries
   ============================================ */
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
    .display-4 { font-size: var(--font-size-4xl); }
}

@media (max-width: 1199.98px) {
    .container { max-width: 960px; }
    .hero-title { font-size: clamp(2.25rem, 4vw, 3.5rem); }
    .display-4 { font-size: var(--font-size-3xl); }
    
    .agent-detail-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .agent-detail-avatar {
        margin: 0 auto;
    }
}

@media (max-width: 991.98px) {
    .container { max-width: 720px; }
    .desktop-nav { display: none; }
    .mobile-toggle { display: block; }
    
    .hero-title { font-size: clamp(2rem, 3.5vw, 3rem); }
    .hero-subtitle { font-size: clamp(1rem, 1.5vw, 1.25rem); }
    
    .interactive-map { height: 500px; }
    .map-properties-sidebar { width: 320px; }
    
    .property-detail-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .agent-detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .container { max-width: 540px; }
    .section { padding: var(--space-7) 0; }
    .hero-section { min-height: 80vh; }
    .hero-content { padding: var(--space-6) 0; }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        padding: var(--space-3) var(--space-5);
        min-width: 180px;
        font-size: var(--font-size-xs);
    }
    
    .interactive-map { height: 400px; }
    .map-filters { justify-content: center; }
    .map-properties-sidebar { width: 280px; }
    
    .property-detail-hero-content {
        padding: var(--space-6) var(--space-4);
    }
    
    .property-detail-hero-price { font-size: var(--font-size-3xl); }
    .property-detail-features-grid { grid-template-columns: 1fr; }
    .agent-detail-stats { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    
    .article-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .property-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        padding: 0 var(--space-4);
    }
    
    .header-container {
        padding: 0 var(--space-4);
    }
    
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .mobile-sidebar {
        width: 100%;
        padding: var(--space-7) var(--space-4) var(--space-4);
    }
    
    .map-properties-sidebar {
        width: 100%;
        transform: translateX(100%);
    }
    
    .map-sidebar-toggle { left: -40px; }
    .theme-toggle-mobile {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 48px;
        height: 48px;
    }
    
    .property-detail-thumbnail {
        width: 100px;
        height: 100px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .property-features {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .footer {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer ul li a:hover {
        padding-left: 0;
    }
}

/* ============================================
   28. Estilos de impresión
   ============================================ */
@media print {
    .main-header,
    .mobile-sidebar,
    .sidebar-overlay,
    .theme-toggle-mobile,
    .theme-toggle-desktop,
    .footer,
    .video-controls,
    .hero-cta-primary,
    .hero-cta-secondary,
    .btn,
    .map-sidebar-toggle,
    .agent-social,
    .article-detail-share,
    .mobile-toggle {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .hero-section {
        min-height: auto;
        height: auto;
    }
    
    .hero-cinematic {
        display: none;
    }
    
    .hero-content {
        color: #000;
        padding: 2rem 0;
    }
    
    .hero-title,
    .hero-subtitle {
        color: #000;
        text-shadow: none;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
        break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .interactive-map,
    .property-map-container {
        height: 300px;
        break-inside: avoid;
    }
    
    .video-container {
        display: none;
    }
}

/* ============================================
   29. Accesibilidad
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --primary-500: #c2410c;
        --primary-300: #fdba74;
    }
    
    .btn-primary,
    .hero-cta-primary,
    .property-badge,
    .theme-toggle-mobile {
        border: 2px solid black;
    }
    
    .card {
        border: 2px solid var(--border-color);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-fade-in,
    .animate-slide-in-right,
    .animate-slide-in-left,
    .animate-scale-in,
    .animate-float,
    .pulse-orange,
    .img-shimmer::after {
        animation: none;
    }
}

/* ============================================
   30. Tema oscuro - ajustes específicos
   ============================================ */
[data-theme="dark"] {
    .img-frame-orange {
        background: linear-gradient(135deg, rgba(246, 122, 33, 0.1), var(--dark-200));
        border-color: var(--primary-800);
    }
    
    .img-frame-yellow {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), var(--dark-200));
        border-color: var(--primary-800);
    }
    
    .img-polaroid {
        background: var(--dark-300);
    }
    
    .img-placeholder {
        background: linear-gradient(45deg, var(--dark-200), var(--dark-300));
        color: var(--primary-300);
    }
    
    .img-placeholder-golden {
        background: linear-gradient(45deg, rgba(254, 243, 199, 0.1), rgba(253, 230, 138, 0.1));
        color: #fbbf24;
    }
    
    .img-glow-orange {
        box-shadow: 0 0 20px rgba(251, 146, 60, 0.3);
    }
    
    .img-glow-yellow {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    }
    
    .btn-yellow {
        color: white;
    }
    
    .btn-gradient-golden {
        color: white;
    }
    
    .alert-warning {
        background: linear-gradient(135deg, rgba(254, 243, 199, 0.2), rgba(253, 230, 138, 0.2));
        color: #fde68a;
    }
    
    .alert-orange {
        background: linear-gradient(135deg, rgba(255, 237, 213, 0.2), rgba(254, 215, 170, 0.2));
        color: #fed7aa;
    }
}