/*
Theme Name: Canovas Real Estate
Description: Estilos principales del tema
Author: Daniel Díaz
Version: 1.0.0
*/

/*--------------------------------------------------------------
# Variables CSS (Paleta Mediterránea)
--------------------------------------------------------------*/
:root {
    /* Colores principales */
    --canovas-primary: #1E4E6C;
    --canovas-secondary: #E9DCC4;
    --canovas-accent: #C9503D; /* Coral más oscuro para mejor contraste (ratio 4.5:1) */
    --canovas-accent-light: #F2725E; /* Coral original para decoración */
    --canovas-neutral-light: #F8F8F8;
    --canovas-neutral-dark: #495A63;
    --canovas-neutral-border: #D9E1E5;
    --canovas-white: #FFFFFF;
    --canovas-black: #000000;
    
    /* Colores funcionales */
    --canovas-text: #495A63;
    --canovas-heading: #1E4E6C;
    --canovas-link: #C9503D; /* También más oscuro */
    --canovas-link-hover: #A8412F;
    
    /* Tipografía */
    --canovas-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --canovas-base-font-size: 16px;
    --canovas-line-height: 1.6;
    --canovas-heading-line-height: 1.3;
    
    /* Pesos de fuente */
    --canovas-font-regular: 400;
    --canovas-font-medium: 500;
    --canovas-font-semibold: 600;
    --canovas-font-bold: 700;
    
    /* Espaciado */
    --canovas-spacing-xs: 0.5rem;
    --canovas-spacing-sm: 1rem;
    --canovas-spacing-md: 2rem;
    --canovas-spacing-lg: 3rem;
    --canovas-spacing-xl: 4rem;
    --canovas-spacing-xxl: 6rem;
    
    /* Container */
    --canovas-container-width: 1200px;
    --canovas-container-padding: 1.5rem;
    
    /* Border radius */
    --canovas-radius-sm: 4px;
    --canovas-radius-md: 8px;
    --canovas-radius-lg: 12px;
    
    /* Sombras */
    --canovas-shadow-sm: 0 2px 4px rgba(30, 78, 108, 0.08);
    --canovas-shadow-md: 0 4px 12px rgba(30, 78, 108, 0.1);
    --canovas-shadow-lg: 0 8px 24px rgba(30, 78, 108, 0.12);
    
    /* Transiciones */
    --canovas-transition: all 0.3s ease;
    --canovas-transition-fast: all 0.15s ease;
}

/*--------------------------------------------------------------
# Reset y Base
--------------------------------------------------------------*/
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: var(--canovas-base-font-size);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--canovas-font-family);
    font-size: 1rem;
    font-weight: var(--canovas-font-regular);
    line-height: var(--canovas-line-height);
    color: var(--canovas-text);
    background-color: var(--canovas-neutral-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--canovas-link);
    text-decoration: none;
    transition: var(--canovas-transition-fast);
}

a:hover,
a:focus {
    color: var(--canovas-link-hover);
}
/**
 * WPML Language Switcher - Estilos Modernos
 * Añadir este CSS a tu archivo de estilos principal o en el customizer
 * 
 * @package Canovas_Real_Estate
 */

/* ========================================
   WPML Language Switcher - Diseño Moderno
   ======================================== */

/* Contenedor principal del switcher */
.wpml-ls-statics-shortcode_actions,
.wpml-ls-legacy-dropdown,
.wpml-ls-legacy-list-horizontal,
.wpml-ls-legacy-list-vertical {
    font-family: inherit;
}

/* ----------------------------------------
   Estilo 1: Selector Pill Minimalista
   ---------------------------------------- */
.wpml-ls-statics-shortcode_actions {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 50px;
    border: 1px solid #e9ecef;
}

.wpml-ls-statics-shortcode_actions .wpml-ls-item {
    margin: 0;
}

.wpml-ls-statics-shortcode_actions .wpml-ls-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.wpml-ls-statics-shortcode_actions .wpml-ls-link:hover {
    color: #1E4E6C;
    background: rgba(30, 78, 108, 0.08);
}

.wpml-ls-statics-shortcode_actions .wpml-ls-current-language .wpml-ls-link {
    background: #1E4E6C;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(30, 78, 108, 0.25);
}

/* Banderas redondeadas */
.wpml-ls-statics-shortcode_actions .wpml-ls-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border: 2px solid #ffffff;
}

/* ----------------------------------------
   Estilo 2: Dropdown Elegante
   ---------------------------------------- */
.wpml-ls-legacy-dropdown {
    position: relative;
}

.wpml-ls-legacy-dropdown .wpml-ls-item-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wpml-ls-legacy-dropdown .wpml-ls-item-toggle:hover {
    border-color: #1E4E6C;
    box-shadow: 0 2px 8px rgba(30, 78, 108, 0.1);
}

.wpml-ls-legacy-dropdown .wpml-ls-item-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #94a3b8;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.wpml-ls-legacy-dropdown:hover .wpml-ls-item-toggle::after {
    transform: rotate(180deg);
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 160px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    list-style: none;
    margin: 0;
    z-index: 1000;
}

.wpml-ls-legacy-dropdown:hover .wpml-ls-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu .wpml-ls-item {
    margin: 0;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu .wpml-ls-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu .wpml-ls-link:hover {
    background: #f1f5f9;
    color: #1E4E6C;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu .wpml-ls-current-language .wpml-ls-link {
    background: rgba(30, 78, 108, 0.08);
    color: #1E4E6C;
}

.wpml-ls-legacy-dropdown .wpml-ls-flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffffff;
}

/* ----------------------------------------
   Estilo 3: Lista Horizontal Moderna
   ---------------------------------------- */
.wpml-ls-legacy-list-horizontal {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpml-ls-legacy-list-horizontal .wpml-ls-item {
    margin: 0;
}

.wpml-ls-legacy-list-horizontal .wpml-ls-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.wpml-ls-legacy-list-horizontal .wpml-ls-link:hover {
    border-color: #1E4E6C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 78, 108, 0.15);
}

.wpml-ls-legacy-list-horizontal .wpml-ls-current-language .wpml-ls-link {
    background: #1E4E6C;
    border-color: #1E4E6C;
    box-shadow: 0 4px 12px rgba(30, 78, 108, 0.3);
}

.wpml-ls-legacy-list-horizontal .wpml-ls-flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Ocultar texto, solo mostrar banderas */
.wpml-ls-legacy-list-horizontal .wpml-ls-native,
.wpml-ls-legacy-list-horizontal .wpml-ls-display {
    display: none;
}

/* ----------------------------------------
   Estilo 4: Solo Banderas con Tooltip
   ---------------------------------------- */
.wpml-ls-flags-only {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpml-ls-flags-only .wpml-ls-item {
    position: relative;
}

.wpml-ls-flags-only .wpml-ls-link {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.wpml-ls-flags-only .wpml-ls-link:hover {
    border-color: #1E4E6C;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 78, 108, 0.2);
}

.wpml-ls-flags-only .wpml-ls-current-language .wpml-ls-link {
    border-color: #F2725E;
    box-shadow: 0 0 0 3px rgba(242, 114, 94, 0.2);
}

.wpml-ls-flags-only .wpml-ls-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tooltip al hacer hover */
.wpml-ls-flags-only .wpml-ls-link::after {
    content: attr(data-lang);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #1e293b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.wpml-ls-flags-only .wpml-ls-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ----------------------------------------
   Estilo para el Header - Integración
   ---------------------------------------- */
.header-navigation .wpml-ls {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #e2e8f0;
}

/* Versión compacta para el header */
.header-language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-language-switcher .lang-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.header-language-switcher .lang-item:hover {
    background: #f1f5f9;
}

.header-language-switcher .lang-item.active {
    background: #1E4E6C;
}

.header-language-switcher .lang-item.active .lang-flag {
    border-color: #ffffff;
}

.header-language-switcher .lang-flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.header-language-switcher .lang-item:hover .lang-flag {
    border-color: #1E4E6C;
}

/* ----------------------------------------
   Menú Móvil - Selector de Idioma
   ---------------------------------------- */
.mobile-language-switcher {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.mobile-language-switcher .lang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 12px;
    background: #f8fafc;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-language-switcher .lang-item:hover,
.mobile-language-switcher .lang-item.active {
    border-color: #1E4E6C;
    background: rgba(30, 78, 108, 0.05);
}

.mobile-language-switcher .lang-item.active {
    background: rgba(30, 78, 108, 0.1);
}

.mobile-language-switcher .lang-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 3px solid #ffffff;
}

.mobile-language-switcher .lang-name {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-language-switcher .lang-item.active .lang-name {
    color: #1E4E6C;
}

/* ----------------------------------------
   Dark Mode Support
   ---------------------------------------- */
@media (prefers-color-scheme: dark) {
    .wpml-ls-statics-shortcode_actions {
        background: #1e293b;
        border-color: #334155;
    }
    
    .wpml-ls-statics-shortcode_actions .wpml-ls-link {
        color: #94a3b8;
    }
    
    .wpml-ls-statics-shortcode_actions .wpml-ls-link:hover {
        color: #e2e8f0;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .wpml-ls-legacy-dropdown .wpml-ls-item-toggle,
    .wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .wpml-ls-legacy-dropdown .wpml-ls-sub-menu .wpml-ls-link {
        color: #94a3b8;
    }
    
    .wpml-ls-legacy-dropdown .wpml-ls-sub-menu .wpml-ls-link:hover {
        background: #334155;
        color: #e2e8f0;
    }
}

/* ----------------------------------------
   Responsive Adjustments
   ---------------------------------------- */
@media (max-width: 991px) {
    .header-navigation .wpml-ls {
        display: none;
    }
}

@media (max-width: 767px) {
    .wpml-ls-statics-shortcode_actions .wpml-ls-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .wpml-ls-statics-shortcode_actions .wpml-ls-flag {
        width: 18px;
        height: 18px;
    }
}
/*--------------------------------------------------------------
# Tipografía
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--canovas-font-family);
    font-weight: var(--canovas-font-semibold);
    line-height: var(--canovas-heading-line-height);
    color: var(--canovas-heading);
    margin: 0 0 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin: 0 0 1.5rem;
}

strong, b {
    font-weight: var(--canovas-font-semibold);
}

/*--------------------------------------------------------------
# Layout General
--------------------------------------------------------------*/
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: 0;
}

/* Front Page - ajuste para que el contenido esté justo debajo del header */
.front-page {
    margin-top: -62px; /* Desktop: pegado al header */
}

@media (max-width: 992px) {
    .front-page {
        margin-top: 0; /* Móvil: sin margen negativo */
    }
}

.container {
    max-width: var(--canovas-container-width);
    margin: 0 auto;
    padding: 0 var(--canovas-container-padding);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--canovas-container-padding);
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 2.5rem;
    z-index: 999999;
    padding: 1rem;
    background-color: var(--canovas-primary);
    color: var(--canovas-white);
    text-decoration: none;
}

.skip-link:focus {
    left: 1rem;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    background-color: var(--canovas-header-bg, var(--canovas-white));
    position: relative;
    z-index: 1000;
    transition: var(--canovas-transition);
}

.site-header.header-sticky {
    position: sticky;
    top: 0;
    box-shadow: var(--canovas-shadow-md);
}

.site-header.header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    box-shadow: none;
}

.site-header.header-transparent.is-scrolled {
    background-color: var(--canovas-white);
    box-shadow: var(--canovas-shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--canovas-header-height, 90px);
    padding: 1rem 0;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
    transition: var(--canovas-transition-fast);
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: var(--canovas-font-bold);
}

.site-title a {
    color: var(--canovas-primary);
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: var(--canovas-text);
}

/* Header layouts */
.header-layout-default {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-layout-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Navegación principal */
.primary-navigation {
    display: none;
}

.primary-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: var(--canovas-text);
    font-weight: var(--canovas-font-medium);
    font-size: 0.9125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.5rem 0;
    display: block;
    white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--canovas-primary);
}

/* Ajuste para pantallas medianas */
@media (min-width: 768px) and (max-width: 1200px) {
    .primary-menu {
        gap: 1rem;
    }
    
    .primary-menu a {
        font-size: 0.75rem;
        letter-spacing: 0.02em;
    }
}

/* Submenús */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--canovas-white);
    box-shadow: var(--canovas-shadow-lg);
    border-radius: var(--canovas-radius-md);
    min-width: 220px;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--canovas-transition);
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu a {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
}

/* Botón CTA Header */
.header-cta-button {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background-color: var(--canovas-accent);
    color: var(--canovas-white);
    font-weight: var(--canovas-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    border-radius: var(--canovas-radius-md);
    transition: var(--canovas-transition-fast);
    box-shadow: var(--canovas-shadow-sm);
}

.header-cta-button:hover {
    background-color: var(--canovas-link-hover);
    color: var(--canovas-white);
    transform: translateY(-2px);
    box-shadow: var(--canovas-shadow-md);
}

/* Menú móvil toggle */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--canovas-primary);
    border-radius: 2px;
    position: absolute;
    transition: var(--canovas-transition);
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

/* Animación hamburguesa activa */
.mobile-menu-toggle.is-active .hamburger-inner {
    background-color: transparent;
}

.mobile-menu-toggle.is-active .hamburger-inner::before {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay menú móvil */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 78, 108, 1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--canovas-transition);
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-wrapper {
    height: 100vh;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

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

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--canovas-white);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--canovas-white);
    font-size: 1.125rem;
    font-weight: var(--canovas-font-medium);
}

.mobile-menu .sub-menu {
    list-style: none;
    padding-left: 1rem;
}

.mobile-menu .sub-menu a {
    font-size: 1rem;
    padding: 0.75rem 0;
}

.mobile-cta {
    margin-top: 2rem;
}

.mobile-social {
    margin-top: auto;
    padding-top: 2rem;
}

/**
 * Footer Styles - Canovas Real Estate
 * 
 * @package Canovas_Real_Estate
 * @since 1.0.0
 */

/* ==========================================================================
   Footer Main
   ========================================================================== */

.site-footer {
    background: var(--color-primary, #1E4E6C);
    color: #fff;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Footer Columns */
.footer-column {
    min-width: 0;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent, #F2725E);
}

/* ==========================================================================
   Footer About Column
   ========================================================================== */

.footer-about .footer-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-site-title:hover {
    color: var(--color-secondary, #E9DCC4);
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

/* Trust Badges */
.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Footer Links Column
   ========================================================================== */

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

.footer-menu-list li {
    margin-bottom: 0.75rem;
}

.footer-menu-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-menu-list a:hover {
    color: var(--color-secondary, #E9DCC4);
    padding-left: 5px;
}

/* ==========================================================================
   Footer Contact Column
   ========================================================================== */

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-accent, #F2725E);
    margin-top: 2px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: var(--color-secondary, #E9DCC4);
}

.contact-info span:not(.contact-label) {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
}

.contact-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.125rem;
}

/* ==========================================================================
   Footer Social Column
   ========================================================================== */

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link-facebook:hover {
    background: #1877f2;
}

.social-link-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link-youtube:hover {
    background: #ff0000;
}

.social-link-tiktok:hover {
    background: #000;
}

/* Schedule */
.footer-schedule {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.25rem;
}

.schedule-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: #fff;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-days {
    color: rgba(255, 255, 255, 0.7);
}

.schedule-hours {
    color: #fff;
    font-weight: 500;
}

/* ==========================================================================
   Footer Bottom
   ========================================================================== */

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Legal Menu */
.footer-legal-menu .legal-menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal-menu .legal-menu-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s ease;
}

.footer-legal-menu .legal-menu-list a:hover {
    color: #fff;
}

/* Language Switcher */
.footer-language-switcher {
    display: flex;
    gap: 0.5rem;
}

.footer-language-switcher .lang-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-language-switcher .lang-link:hover,
.footer-language-switcher .lang-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.footer-language-switcher .lang-flag {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

/* Credits */
.footer-credits {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-credits a:hover {
    color: var(--color-accent, #F2725E);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--color-primary, #1E4E6C);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent, #F2725E);
    transform: translateY(-3px);
}

/* ==========================================================================
   WhatsApp Float Button
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    
    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-about {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-about .footer-logo,
    .footer-about .footer-site-title {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-trust-badges {
        justify-content: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal-menu .legal-menu-list {
        justify-content: center;
    }
    
    .footer-language-switcher {
        justify-content: center;
    }
    
    /* Buttons positioning on mobile */
    .back-to-top {
        right: 20px;
        bottom: 100px;
    }
    
    .whatsapp-float {
        left: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 30px 0 20px;
    }
    
    .footer-grid {
        gap: 25px;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
    
    .schedule-list li {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .back-to-top,
    .whatsapp-float {
        width: 48px;
        height: 48px;
    }
}

/* ==========================================================================
   Pre-footer Area (Newsletter, CTA)
   ========================================================================== */

.pre-footer-area {
    background: var(--color-secondary, #E9DCC4);
    padding: 50px 0;
}

.pre-footer-area .widget {
    margin: 0;
}

/*--------------------------------------------------------------
# Botones
--------------------------------------------------------------*/
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: var(--canovas-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    border-radius: var(--canovas-radius-md);
    transition: var(--canovas-transition-fast);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--canovas-accent);
    color: var(--canovas-white);
    box-shadow: var(--canovas-shadow-sm);
}

.btn-primary:hover {
    background-color: var(--canovas-link-hover);
    color: var(--canovas-white);
    transform: translateY(-2px);
    box-shadow: var(--canovas-shadow-md);
}

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

.btn-secondary:hover {
    background-color: #163d56;
    color: var(--canovas-white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--canovas-primary);
    color: var(--canovas-primary);
}

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

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (min-width: 768px) {
    .primary-navigation {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
}

@media (max-width: 767px) {
    :root {
        --canovas-container-padding: 1rem;
        --canovas-spacing-xl: 3rem;
        --canovas-spacing-xxl: 4rem;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr !important;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .header-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/*--------------------------------------------------------------
# Blog & Posts
--------------------------------------------------------------*/

/* Layout del blog */
.content-area {
    display: grid;
    gap: 3rem;
}

.content-area.has-sidebar {
    grid-template-columns: 1fr 350px;
}

.content-area.no-sidebar {
    grid-template-columns: 1fr;
}

/* Posts grid/list */
.posts-container.blog-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.posts-container.blog-layout-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Post card */
.blog-post {
    background: var(--canovas-white);
    border-radius: var(--canovas-radius-lg);
    overflow: hidden;
    box-shadow: var(--canovas-shadow-sm);
    transition: var(--canovas-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--canovas-shadow-lg);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--canovas-transition);
}

.blog-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content-wrapper {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.entry-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.entry-title a {
    color: var(--canovas-heading);
}

.entry-title a:hover {
    color: var(--canovas-accent);
}

/* Post meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--canovas-text);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--canovas-neutral-border);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.entry-summary {
    color: var(--canovas-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Read more link */
.post-read-more {
    margin-top: auto;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--canovas-accent);
    font-weight: var(--canovas-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    transition: var(--canovas-transition-fast);
}

.read-more-link:hover {
    gap: 0.75rem;
}

/* Single post */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.single-post .entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.single-post .post-meta {
    justify-content: center;
    border: none;
}

.single-post .entry-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--canovas-radius-lg);
    overflow: hidden;
}

.single-post .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-tags a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--canovas-secondary);
    color: var(--canovas-text);
    border-radius: var(--canovas-radius-md);
    font-size: 0.875rem;
}

/* Post navigation */
.post-navigation {
    margin: 3rem 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

/* Pagination */
.pagination {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0.5rem 1rem;
    background: var(--canovas-white);
    color: var(--canovas-text);
    border-radius: var(--canovas-radius-md);
    box-shadow: var(--canovas-shadow-sm);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--canovas-accent);
    color: var(--canovas-white);
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
}

/*--------------------------------------------------------------
# Sidebar & Widgets
--------------------------------------------------------------*/
.sidebar {
    position: sticky;
    top: calc(var(--canovas-header-height, 90px) + 2rem);
    align-self: start;
}

.widget {
    background: var(--canovas-white);
    padding: 2rem;
    border-radius: var(--canovas-radius-lg);
    box-shadow: var(--canovas-shadow-sm);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--canovas-accent);
}

/*--------------------------------------------------------------
# Comentarios
--------------------------------------------------------------*/
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--canovas-neutral-border);
}

.comment-body {
    padding: 2rem;
    background: var(--canovas-white);
    border-radius: var(--canovas-radius-lg);
    margin-bottom: 2rem;
}

/*--------------------------------------------------------------
# Formulario de búsqueda
--------------------------------------------------------------*/
.search-form-wrapper {
    position: relative;
    display: flex;
}

.search-field {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: 2px solid var(--canovas-neutral-border);
    border-radius: var(--canovas-radius-md);
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--canovas-accent);
    color: var(--canovas-white);
    border: none;
    border-radius: var(--canovas-radius-md);
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/*--------------------------------------------------------------
# Responsive adicional
--------------------------------------------------------------*/
@media (max-width: 1024px) {
    .content-area.has-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .posts-container.blog-layout-grid {
        grid-template-columns: 1fr;
    }
}

/*--------------------------------------------------------------
# Front Page Sections
--------------------------------------------------------------*/

/* Generales */
.section-padding {
    padding: var(--canovas-spacing-xxl) 0;
}

.bg-light {
    background-color: var(--canovas-neutral-light);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--canovas-text);
    max-width: 700px;
    margin: 0 auto;
}

.section-cta {
    margin-top: 3rem;
}

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

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--canovas-white);
    text-align: center;
    margin-top: var(--canovas-spacing-xl);
}

/* Hero sin margen superior (pegado al header) */
.hero-section.hero-no-margin {
    margin-top: 0;
}

.hero-section.hero-small { min-height: 400px; }
.hero-section.hero-medium { min-height: 500px; }
.hero-section.hero-large { min-height: 600px; }
.hero-section.hero-fullscreen { min-height: 100vh; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    /* Color y opacidad definidos inline desde el customizer */
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 0;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--canovas-font-bold);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    margin-top: 4rem;
}

.scroll-down {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--canovas-white);
    text-decoration: none;
    transition: var(--canovas-transition);
}

.scroll-down:hover {
    transform: translateY(5px);
}

.scroll-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--canovas-white);
    padding: 2.5rem;
    border-radius: var(--canovas-radius-lg);
    text-align: center;
    box-shadow: var(--canovas-shadow-sm);
    transition: var(--canovas-transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--canovas-shadow-lg);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--canovas-heading);
}

.feature-text {
    color: var(--canovas-text);
    line-height: 1.6;
}

/*--------------------------------------------------------------
# Properties Section
--------------------------------------------------------------*/
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.property-card {
    background: var(--canovas-white);
    border-radius: var(--canovas-radius-lg);
    overflow: hidden;
    box-shadow: var(--canovas-shadow-md);
    transition: var(--canovas-transition);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--canovas-shadow-lg);
}

.property-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--canovas-transition);
}

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

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--canovas-accent);
    color: var(--canovas-white);
    padding: 0.5rem 1rem;
    border-radius: var(--canovas-radius-md);
    font-size: 0.875rem;
    font-weight: var(--canovas-font-semibold);
}

.property-content {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.75rem;
    font-weight: var(--canovas-font-bold);
    color: var(--canovas-accent);
    margin-bottom: 0.75rem;
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.property-title a {
    color: var(--canovas-heading);
}

.property-location {
    color: var(--canovas-text);
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--canovas-neutral-border);
    border-bottom: 1px solid var(--canovas-neutral-border);
    margin-bottom: 1rem;
}

.property-features .feature {
    font-size: 0.875rem;
    color: var(--canovas-text);
}

.property-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--canovas-accent);
    font-weight: var(--canovas-font-semibold);
    transition: var(--canovas-transition-fast);
}

.property-link:hover {
    gap: 0.75rem;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    max-width: 600px;
}

.about-subtitle {
    color: var(--canovas-accent);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.about-text {
    color: var(--canovas-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    margin: 2rem 0;
    border-top: 2px solid var(--canovas-neutral-border);
    border-bottom: 2px solid var(--canovas-neutral-border);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--canovas-font-bold);
    color: var(--canovas-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--canovas-text);
}

.about-image img {
    width: 100%;
    border-radius: var(--canovas-radius-lg);
    box-shadow: var(--canovas-shadow-lg);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--canovas-white);
    padding: 2rem;
    border-radius: var(--canovas-radius-lg);
    box-shadow: var(--canovas-shadow-sm);
    transition: var(--canovas-transition);
}

.testimonial-card:hover {
    box-shadow: var(--canovas-shadow-md);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--canovas-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--canovas-neutral-border);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: var(--canovas-font-semibold);
    color: var(--canovas-heading);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--canovas-text);
}

/*--------------------------------------------------------------
# Blog Section (Home)
--------------------------------------------------------------*/
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--canovas-white);
    border-radius: var(--canovas-radius-lg);
    overflow: hidden;
    box-shadow: var(--canovas-shadow-sm);
    transition: var(--canovas-transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--canovas-shadow-md);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--canovas-transition);
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--canovas-text);
    margin-bottom: 1rem;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-card-title a {
    color: var(--canovas-heading);
}

.blog-card-excerpt {
    color: var(--canovas-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--canovas-accent);
    font-weight: var(--canovas-font-semibold);
    transition: var(--canovas-transition-fast);
}

.blog-card-link:hover {
    gap: 0.75rem;
}

/*--------------------------------------------------------------
# CTA Section
--------------------------------------------------------------*/
.cta-section {
    position: relative;
    color: var(--canovas-white);
    text-align: center;
}

.cta-section.cta-primary {
    background: linear-gradient(135deg, var(--canovas-primary), #163d56);
}

.cta-section.cta-secondary {
    background: var(--canovas-secondary);
    color: var(--canovas-text);
}

.cta-section.cta-gradient {
    background: linear-gradient(135deg, var(--canovas-primary), var(--canovas-accent));
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-white:hover {
    background-color: var(--canovas-neutral-light);
    color: var(--canovas-primary);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--canovas-white);
    color: var(--canovas-white);
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/*--------------------------------------------------------------
# AOS Animations (opcional)
--------------------------------------------------------------*/
[data-aos] {
    pointer-events: auto;
}

/*--------------------------------------------------------------
# Responsive Front Page
--------------------------------------------------------------*/
@media (max-width: 1024px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .properties-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }
}/* ACTUALIZACIONES ESPECÍFICAS */

/* Variable para ancho del header */
:root {
    --canovas-header-max-width: 1200px;
}

/* Header container con ancho personalizable */
.header-container {
    max-width: var(--canovas-header-max-width);
}

/* Ancho completo del header cuando se configura */
.site-header .header-container.header-full-width {
    max-width: 100%;
    padding-left: var(--canovas-container-padding);
    padding-right: var(--canovas-container-padding);
}

.site-header .header-container.header-wide-width {
    max-width: 1400px;
}

/* Logo en menú móvil - color personalizable para SVG */
.mobile-menu-overlay.is-active .site-logo img,
.mobile-menu-overlay.is-active .custom-logo-link img {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Hero sin margen superior - pegado al header */
.hero-section.hero-no-margin {
    margin-top: 0 !important;
}

/* ICNEA Search Section */
.icnea-search-section {
    position: relative;
    z-index: 10;
    padding: 0;
}

.icnea-search-section.icnea-overlap {
    margin-top: -100px;
}

.icnea-search-section .container {
    max-width: var(--canovas-container-width);
    margin: 0 auto;
    padding: 0 var(--canovas-container-padding);
}

.icnea-iframe-wrapper {
    background: var(--canovas-white);
    border-radius: var(--canovas-radius-lg);
    overflow: hidden;
    box-shadow: var(--canovas-shadow-lg);
}

.icnea-iframe {
    width: 100%;
    border: none;
    display: block;
    min-height: 600px;
}

/* Responsive ICNEA */
@media (max-width: 768px) {
    .icnea-search-section.icnea-overlap {
        margin-top: -50px;
    }
    
    .icnea-iframe {
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .icnea-search-section.icnea-overlap {
        margin-top: 0;
    }
    
    .icnea-iframe {
        min-height: 400px;
    }
}

/*--------------------------------------------------------------
# Contact Page Styles
--------------------------------------------------------------*/

/* Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, var(--canovas-primary) 0%, var(--canovas-secondary) 100%);
    padding: var(--canovas-spacing-xxl) 0 var(--canovas-spacing-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.contact-hero .page-title {
    margin: 0 0 1rem;
    color: var(--canovas-white);
    font-size: clamp(2rem, 5vw, 3rem);
}

.contact-hero .page-intro {
    max-width: 700px;
    margin: 0 auto;
    color: var(--canovas-white);
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Contact Content Layout */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    padding: var(--canovas-spacing-xxl) 0;
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Contact Info Column */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-box {
    background: var(--canovas-white);
    padding: 2rem;
    border-radius: var(--canovas-radius-lg);
    box-shadow: var(--canovas-shadow-md);
}

.contact-info-box h2 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    color: var(--canovas-primary);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--canovas-accent);
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--canovas-neutral-border);
}

.contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info-item:first-child {
    padding-top: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--canovas-accent) 0%, var(--canovas-link-hover) 100%);
    border-radius: 50%;
    color: var(--canovas-white);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info-text {
    flex: 1;
}

.contact-info-text h3 {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--canovas-neutral-dark);
    font-weight: var(--canovas-font-semibold);
}

.contact-info-text a {
    color: var(--canovas-accent);
    font-size: 1.125rem;
    font-weight: var(--canovas-font-medium);
    transition: var(--canovas-transition-fast);
}

.contact-info-text a:hover {
    color: var(--canovas-link-hover);
}

.contact-info-text p {
    margin: 0;
    color: var(--canovas-text);
    line-height: 1.6;
}

/* Business Hours */
.business-hours .hours-content {
    color: var(--canovas-text);
    line-height: 1.8;
}

/* Contact Form Column */
.contact-form-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form-box {
    background: var(--canovas-white);
    padding: 2.5rem;
    border-radius: var(--canovas-radius-lg);
    box-shadow: var(--canovas-shadow-md);
}

.contact-form-box h2 {
    margin: 0 0 2rem;
    font-size: 1.5rem;
    color: var(--canovas-primary);
}

/* Form Styles */
.contact-form .form-row {
    margin-bottom: 1.5rem;
}

.contact-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .contact-form .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: var(--canovas-font-medium);
    color: var(--canovas-text);
    font-size: 0.9375rem;
}

.contact-form .required {
    color: var(--canovas-accent);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--canovas-neutral-border);
    border-radius: var(--canovas-radius-md);
    font-size: 1rem;
    font-family: var(--canovas-font-family);
    color: var(--canovas-text);
    transition: var(--canovas-transition-fast);
    background-color: var(--canovas-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--canovas-accent);
    box-shadow: 0 0 0 3px rgba(242, 114, 94, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Checkbox */
.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--canovas-accent);
    text-decoration: underline;
}

/* Submit Button */
.contact-form button[type="submit"] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.contact-form button[type="submit"] svg {
    transition: var(--canovas-transition-fast);
}

.contact-form button[type="submit"]:hover svg {
    transform: translateX(4px);
}

/* Messages */
.contact-message {
    padding: 1.25rem 1.5rem;
    border-radius: var(--canovas-radius-md);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-message svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.contact-message p {
    margin: 0;
    line-height: 1.6;
}

.contact-message.success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.contact-message.success svg {
    color: #28a745;
}

.contact-message.error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.contact-message.error svg {
    color: #dc3545;
}

/* Contact Map */
.contact-map-section {
    margin: var(--canovas-spacing-xl) 0 0;
}

.contact-map-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: var(--canovas-radius-lg);
    box-shadow: var(--canovas-shadow-md);
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-hero {
        padding: var(--canovas-spacing-xl) 0 var(--canovas-spacing-lg);
    }

    .contact-form-box {
        padding: 1.75rem;
    }

    .contact-info-box {
        padding: 1.5rem;
    }

    .contact-map-wrapper {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-info-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
}
/* Ocultar hero de alojamientos en móviles */

@media (max-width: 768px) {
    .hero-section.hero-large {
        display: none !important;
    }
}
/**
 * Top Bar & Header Styles - Diseño Moderno Canovas
 * 
 * @package Canovas_Real_Estate
 */

/* ========================================
   TOP BAR - Barra Superior
   ======================================== */

.top-bar {
    background: linear-gradient(135deg, #1E4E6C 0%, #163a52 100%);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    z-index: 1001;
}

/* Línea decorativa inferior con acento coral */
.top-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #1E4E6C 0%, 
        #F2725E 30%, 
        #F2725E 70%, 
        #1E4E6C 100%
    );
}

.top-bar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    gap: 20px;
}

/* ----------------------------------------
   Información de Contacto (Izquierda)
   ---------------------------------------- */

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Efecto shimmer sutil */
.top-bar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.top-bar-item:hover::before {
    left: 100%;
}

.top-bar-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Teléfono fijo - destacado */
.top-bar-contact .top-bar-item:first-child {
    background: rgba(242, 114, 94, 0.2);
    border-color: rgba(242, 114, 94, 0.3);
}

.top-bar-contact .top-bar-item:first-child:hover {
    background: #F2725E;
    border-color: #F2725E;
    box-shadow: 0 4px 15px rgba(242, 114, 94, 0.4);
}

.top-bar-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.top-bar-item:hover .top-bar-icon {
    opacity: 1;
    transform: scale(1.1);
}

.top-bar-item span {
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ----------------------------------------
   Lado Derecho (Redes + Idiomas)
   ---------------------------------------- */

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Redes Sociales */
.top-bar-social {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.top-bar-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.top-bar-social .social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top-bar-social .social-icon:hover {
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
}

.top-bar-social .social-icon svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

/* Colores específicos al hover */
.top-bar-social .social-icon[aria-label="Facebook"]:hover {
    background: #1877f2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.top-bar-social .social-icon[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.top-bar-social .social-icon[aria-label="YouTube"]:hover {
    background: #ff0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.top-bar-social .social-icon[aria-label="TikTok"]:hover {
    background: #000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.top-bar-social .social-icon[aria-label="WhatsApp"]:hover,
.top-bar-social .social-whatsapp:hover {
    background: #25d366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ----------------------------------------
   Selector de Idiomas en Top Bar
   ---------------------------------------- */

.top-bar-languages {
    display: flex;
    align-items: center;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar-languages .header-language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.15);
    padding: 4px;
    border-radius: 10px;
}

.top-bar-languages .lang-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.25s ease;
    text-decoration: none;
}

.top-bar-languages .lang-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.top-bar-languages .lang-item.active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-bar-languages .lang-flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.top-bar-languages .lang-item:hover .lang-flag {
    border-color: rgba(255, 255, 255, 0.6);
}

.top-bar-languages .lang-item.active .lang-flag {
    border-color: #1E4E6C;
}

/* ========================================
   MENÚ MÓVIL - Estilos de Contacto
   ======================================== */

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 20px;
    margin: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mobile-contact-item:hover,
.mobile-contact-item:active {
    border-color: #1E4E6C;
    background: linear-gradient(135deg, rgba(30, 78, 108, 0.03) 0%, rgba(30, 78, 108, 0.06) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(30, 78, 108, 0.1);
}

.mobile-contact-icon {
    width: 24px;
    height: 24px;
    color: #1E4E6C;
    flex-shrink: 0;
    padding: 8px;
    background: rgba(30, 78, 108, 0.08);
    border-radius: 10px;
    box-sizing: content-box;
}

.mobile-contact-item:hover .mobile-contact-icon {
    background: rgba(30, 78, 108, 0.15);
}

.mobile-contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.mobile-contact-value {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    display: block;
}

/* Contenedor de texto en contacto móvil */
.mobile-contact-item span:not(.mobile-contact-icon) {
    display: flex;
    flex-direction: column;
}

/* Redes sociales en menú móvil */
.mobile-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 24px 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 10px;
}

.mobile-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
}

.mobile-social .social-icon:hover,
.mobile-social .social-icon:active {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.mobile-social .social-icon svg {
    width: 22px;
    height: 22px;
}

/* Colores específicos en móvil */
.mobile-social .social-icon[aria-label="Facebook"]:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.mobile-social .social-icon[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
    border-color: transparent;
}

.mobile-social .social-icon[aria-label="YouTube"]:hover {
    background: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
}

.mobile-social .social-icon[aria-label="TikTok"]:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.mobile-social .social-icon[aria-label="WhatsApp"]:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .top-bar-item span {
        font-size: 12px;
    }
    
    .top-bar-item {
        padding: 6px 12px;
    }
}

@media (max-width: 991px) {
    .top-bar-inner {
        min-height: 44px;
    }
    
    .top-bar-contact {
        gap: 4px;
    }
    
    .top-bar-social {
        gap: 4px;
        padding: 3px;
    }
    
    .top-bar-social .social-icon {
        width: 30px;
        height: 30px;
    }
    
    .top-bar-social .social-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
    }
    
    .top-bar-inner {
        min-height: 42px;
        padding: 6px 0;
    }
    
    .top-bar-item-hide-mobile {
        display: none !important;
    }
    
    .top-bar-item {
        padding: 6px 12px;
        border-radius: 8px;
    }
    
    .top-bar-icon {
        width: 14px;
        height: 14px;
    }
    
    .top-bar-right {
        gap: 10px;
    }
    
    .top-bar-languages {
        padding-left: 10px;
    }
}

@media (max-width: 576px) {
    .top-bar-contact {
        flex: 1;
        justify-content: center;
    }
    
    .top-bar-right {
        display: none;
    }
    
    .top-bar-item {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .top-bar-item span {
        font-size: 11px;
    }
}

/* ========================================
   SELECTOR DE IDIOMAS MÓVIL
   ======================================== */

.mobile-language-switcher {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.mobile-language-switcher .lang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 14px;
    background: #f8fafc;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-language-switcher .lang-item:hover,
.mobile-language-switcher .lang-item:active {
    border-color: #1E4E6C;
    background: rgba(30, 78, 108, 0.05);
    transform: translateY(-2px);
}

.mobile-language-switcher .lang-item.active {
    background: rgba(30, 78, 108, 0.1);
    border-color: #1E4E6C;
}

.mobile-language-switcher .lang-flag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    border: 3px solid #ffffff;
}

.mobile-language-switcher .lang-item.active .lang-flag {
    border-color: #1E4E6C;
    box-shadow: 0 4px 15px rgba(30, 78, 108, 0.25);
}

.mobile-language-switcher .lang-name {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-language-switcher .lang-item.active .lang-name {
    color: #1E4E6C;
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(242, 114, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(242, 114, 94, 0);
    }
}

/* Pulso suave en el teléfono principal */
.top-bar-contact .top-bar-item:first-child {
    animation: pulse-subtle 3s ease-in-out infinite;
}

.top-bar-contact .top-bar-item:first-child:hover {
    animation: none;
}

/* Entrada suave al cargar */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-bar {
    animation: slideDown 0.4s ease-out;
}
/* ==========================================================================
   Destinations Section Styles - Modern & Performance Optimized
   ========================================================================== */

.destinations-section {
    position: relative;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Layout: Sol y Playa arriba (full width), Ciudad y Rural abajo (50% cada uno) */
.order-1 {
    grid-column: 1 / -1; /* Ocupa todo el ancho del grid */
    order: 1;
}

.order-2 {
    order: 2;
}

.order-3 {
    order: 3;
}

.destination-banner {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--canovas-radius-lg);
    height: 500px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sol y Playa más alto por tener más contenido */
.order-1 {
    height: 550px;
}

.destination-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    will-change: transform;
}

/* Imagen de fondo */
.destination-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.destination-banner:hover .destination-image img {
    transform: scale(1.05);
    will-change: transform;
}

/* Contenedor de contenido - SIEMPRE VISIBLE */
.destination-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    color: white;
    z-index: 2;
}

/* Título principal */
.destination-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: white;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

/* Sol y Playa tiene título aún más grande */
.order-1 .destination-title {
    font-size: 3.25rem;
}

/* Contenedor de detalles - SIEMPRE VISIBLE */
.destination-details {
    opacity: 1;
}

.destination-location {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Sol y Playa tiene ubicación más grande */
.order-1 .destination-location {
    font-size: 1.625rem;
}

.destination-description {
    font-size: 1.125rem;
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Sol y Playa tiene descripción más grande */
.order-1 .destination-description {
    font-size: 1.25rem;
}

.destination-link {
    display: inline-flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.destination-banner:hover .destination-link {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .destination-title {
        font-size: 2.5rem;
    }
    
    .order-1 .destination-title {
        font-size: 2.75rem;
    }
    
    .destination-location {
        font-size: 1.25rem;
    }
    
    .order-1 .destination-location {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .destinations-grid {
        gap: 1.5rem;
    }
    
    .destination-banner,
    .order-1 {
        height: 420px;
    }
    
    .destination-content {
        padding: 2rem;
    }
    
    .destination-title {
        font-size: 2.25rem;
    }
    
    .order-1 .destination-title {
        font-size: 2.5rem;
    }
    
    .destination-location {
        font-size: 1.125rem;
    }
    
    .order-1 .destination-location {
        font-size: 1.25rem;
    }
    
    .destination-description {
        font-size: 1rem;
    }
    
    .order-1 .destination-description {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* En móvil todos ocupan el 100% del ancho */
    .order-1,
    .order-2,
    .order-3 {
        grid-column: 1;
    }
    
    .destination-banner,
    .order-1 {
        height: 400px;
    }
    
    .destination-content {
        padding: 2rem 1.5rem;
    }
    
    .destination-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    /* En móvil todos los títulos del mismo tamaño */
    .order-1 .destination-title {
        font-size: 2rem;
    }
    
    .destination-location {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .order-1 .destination-location {
        font-size: 1.125rem;
    }
    
    .destination-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    .order-1 .destination-description {
        font-size: 0.95rem;
    }
    
    .destination-link {
        font-size: 1rem;
    }
    
    /* Desactivar hover effects en móvil para mejor rendimiento */
    .destination-banner:hover {
        transform: none;
    }
    
    .destination-banner:hover .destination-image img {
        transform: none;
    }
    
    .destination-banner:hover .destination-link {
        transform: none;
    }
}

@media (max-width: 576px) {
    .destination-banner,
    .order-1 {
        height: 380px;
    }
    
    .destination-content {
        padding: 1.75rem 1.25rem;
    }
    
    .destination-title {
        font-size: 1.75rem;
    }
    
    .destination-location {
        font-size: 1rem;
    }
    
    .destination-description {
        font-size: 0.9rem;
        margin-bottom: 0.875rem;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .destination-banner,
    .destination-image img,
    .destination-link {
        transition: none !important;
    }
}
/*--------------------------------------------------------------
# Hero Video Background
--------------------------------------------------------------*/
.hero-type-video {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Desactivar vídeo en móvil - mostrar solo poster */
@media (max-width: 992px) {
    .hero-video-desktop-only .hero-video-wrapper {
        display: none;
    }
    
    .hero-video-desktop-only {
        background-size: cover;
        background-position: center;
    }
}

/* Asegurar que el contenido esté sobre el vídeo */
.hero-type-video .hero-overlay,
.hero-type-video .hero-content,
.hero-type-video .hero-scroll-indicator {
    position: relative;
    z-index: 2;
}

.hero-type-video .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Idiomas WPML inline en header (solo móvil) */
.header-mobile-languages { display:none; align-items:center; }

@media (max-width: 767px) {
  .header-right { gap: 0.75rem; }
  .header-mobile-languages { display:flex; }
  .header-mobile-languages .header-language-switcher { gap: 6px; }
  .header-mobile-languages .header-language-switcher .lang-item { width:30px; height:30px; border-radius:10px; }
  .header-mobile-languages .header-language-switcher .lang-flag { width:20px; height:20px; }
}
