:root {
    --color-green-dark: #2d5f4f;
    --color-green-main: #40a578;
    --color-green-light: #6fd39a;
    --color-green-lighter: #e8f5f0;
    --color-gray-dark: #2b2d42;
    --color-gray-mid: #6c757d;
    --color-gray-light: #f1f5f9;
    --color-gray-lighter: #f9fafb;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-accent-orange: #ff8c42;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-hover: rgba(0, 0, 0, 0.12);
                
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Georgia', serif;
                
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease-out;
                
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50px;
                
    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 4px 16px var(--color-shadow);
    --shadow-lg: 0 8px 24px rgba(45, 95, 79, 0.15);
    --shadow-hover: 0 12px 32px rgba(45, 95, 79, 0.2);
}

/* ==================== RESET Y BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Esto evita el movimiento lateral */
    position: relative;
    scroll-behavior: smooth;
    height: -webkit-fill-available; /* Llena el espacio real del navegador */
}

body {
    font-family: var(--font-primary);
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* Asegura que el contenido no se desplace por el notch */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

* {
    box-sizing: border-box; /* Asegura que paddings no sumen ancho extra */
}

/* ==================== TIPOGRAFÍA ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--color-gray-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}
    
h4 {
    font-size: 1.25rem;
    font-weight: 600;
}
    
p {
    margin-bottom: 1.25rem;
    color: var(--color-gray-mid);
    font-size: 1rem;
}

a {
    color: var(--color-green-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-green-main);
}
    
/* ==================== NAVEGACIÓN ==================== */
header {
    position: sticky;
    height: 70px;
    top: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Adjust header for WordPress admin bar */
.admin-bar header {
    top: 32px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;  /* Needed so absolute-positioned mobile nav drops below header */
    height: 100%;
}

header #nav,
header nav#nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
    
header #nav a,
header nav#nav a {
    color: var(--color-gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    padding-bottom: 0.5rem;
}

header #nav.scrolled,
header nav#nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

/* ==================== SUBMENÚS Y DESPLEGABLES DE NAVEGACIÓN ==================== */
header nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

header nav li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-green-main);
    transition: width 0.3s ease;
}

header nav li > a:hover::after {
    width: 100%;
}

header nav li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-right: 4px;
}

/* Indicador flecha para menús con hijos */
header nav li.menu-item-has-children > a::before {
    content: '' !important;
    order: 2;
    display: inline-block;
    width: 0.65em;
    height: 0.65em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 85.4 168.2c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 85.4 168.2c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E") no-repeat center/contain;
    transition: transform 0.3s ease;
}

header nav li.menu-item-has-children:hover > a::before,
header nav li.menu-item-has-children.open-submenu > a::before {
    transform: rotate(180deg);
}

/* Ocultar el submenú por defecto y posicionarlo desplegable */
header nav .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 210px;
    background: #ffffff;
    border-radius: var(--radius-md, 12px);
    padding: 8px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 2000;
}

/* Triángulo decorativo superior del desplegable */
header nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Mostrar submenú al pasar el cursor (hover) o mediante toggle en clic */
header nav li.menu-item-has-children:hover > .sub-menu,
header nav li.menu-item-has-children:focus-within > .sub-menu,
header nav li.menu-item-has-children.open-submenu > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

header nav .sub-menu li {
    width: 100%;
}

header nav .sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--color-gray-dark, #2b2d42);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm, 8px);
    white-space: nowrap;
    transition: var(--transition-fast, all 0.2s ease);
}

header nav .sub-menu li a::after {
    display: none !important;
}

header nav .sub-menu li a:hover {
    background: var(--color-green-lighter, #e8f5f0);
    color: var(--color-green-main, #40a578);
}

/* Modo oscuro para submenús */
[data-theme="dark"] header nav .sub-menu {
    background: #1b3930;
    border-color: var(--nm-border, rgba(255, 255, 255, 0.1));
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] header nav .sub-menu::before {
    background: #1b3930;
    border-left-color: var(--nm-border, rgba(255, 255, 255, 0.1));
    border-top-color: var(--nm-border, rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] header nav .sub-menu li a {
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] header nav .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--nm-accent, #4db89a);
}
        
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;  /* CENTRA LA IMAGEN DENTRO */
    flex-shrink: 0;       /* NO SE ENCOGE */
    margin-right: 1rem;
    font-size: 1.75rem;
    height: 50px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green-main) 100%);
    background-clip: text;
}
        
.logo img {
    height: 50px;
}
        
/* ==================== BOTONES ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--color-green-dark) 0%, #245040 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-gray-dark);
    border: 2px solid var(--color-green-main);
}

.btn-secondary:hover {
    background: var(--color-green-dark);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--color-green-main, #40a578);
    line-height: 1;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
    flex-shrink: 0;
    z-index: 1100;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: rgba(64, 165, 120, 0.12);
}

/* Selector de idioma */
.language-selector {
    margin-left: 2rem;
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--color-white);
    border: 1.5px solid var(--color-green-main);
    border-radius: var(--radius-full); /* Forma ovalada más moderna */
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--color-green-dark);
    font-weight: 600;
}

.lang-btn:hover {
    background: var(--color-green-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lang-btn .flag-icon {
    font-size: 18px;
    line-height: 1;
}

.lang-btn .lang-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
        
.lang-btn, .lang-option {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre bandera y texto */
}

/* Dropdown (El Menú que baja) */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #1b3930; /* Verde muy oscuro para contraste premium */
    border-radius: var(--radius-md);
    min-width: 180px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 2000;
}

/* Triángulo decorativo arriba del menú */
.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #1b3930;
    transform: rotate(45deg);
}
        
.language-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Opciones individuales */
.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(64, 165, 120, 0.2); /* Brillo verde sutil */
    color: var(--color-green-light);
    padding-left: 20px; /* Efecto de desplazamiento al pasar el mouse */
}

/* Estado Activo */
.lang-option.active {
    background: var(--color-green-main);
    color: white;
    font-weight: 600;
}

.lang-option .flag-icon {
    font-size: 20px;
}
        
.flag-icon, .fi {
    width: 20px;
    height: 15px;
    border-radius: 2px; /* Un pequeño borde redondeado se ve mejor */
    display: inline-block;
    flex-shrink: 0;
}
        
/* Ajuste de Banderas */
.fi {
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
}
        
/* ==================== BOTONES ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--color-green-dark) 0%, #245040 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
    
.btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-gray-dark);
    border: 2px solid var(--color-green-main);
}

.btn-secondary:hover {
    background: var(--color-green-dark);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-green-main), var(--color-green-light));
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(64, 165, 120, 0.5);
}

[data-theme="dark"] .scroll-progress {
    background: linear-gradient(90deg, var(--nm-accent, #2d8a7a), #4db89a);
    box-shadow: 0 0 10px rgba(45, 138, 122, 0.5);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--color-white);
    color: var(--color-gray-dark);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    max-width: 380px;
    border-left: 4px solid var(--color-green-main);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast.success { border-left-color: #10b981; }
.toast.success .toast-icon { color: #10b981; }

.toast.error { border-left-color: #ef4444; }
.toast.error .toast-icon { color: #ef4444; }

.toast.info { border-left-color: #3b82f6; }
.toast.info .toast-icon { color: #3b82f6; }

.toast.warning { border-left-color: #f59e0b; }
.toast.warning .toast-icon { color: #f59e0b; }

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--color-gray-mid);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 4px;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--color-gray-dark);
}

[data-theme="dark"] .toast {
    background: var(--nm-secondary-bg, #162019);
    color: var(--nm-text, #e8e8e8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .toast-close {
    color: #888;
}

[data-theme="dark"] .toast-close:hover {
    color: #ccc;
}

/* ==================== BREADCRUMBS (MIGAS DE PAN) ==================== */
.breadcrumbs {
    background: rgba(249, 250, 251, 0.85);
    padding: 10px 0;
    margin-top: 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
    position: sticky;
    top: 70px;
    z-index: 999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: block !important;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.breadcrumbs.scrolled {
    background: rgba(249, 250, 251, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-bar .breadcrumbs {
    top: calc(70px + 32px);
}

.breadcrumbs + .hero,
.breadcrumbs + section,
.breadcrumbs + main {
    margin-top: 0 !important;
}

.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.78rem;
}

.breadcrumb-item {
    color: var(--color-green-main, #40a578);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast, all 0.2s ease);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 18px;
    line-height: 18px;
}

.breadcrumb-item:hover {
    color: var(--color-green-dark, #2d5f4f);
    text-decoration: underline;
}

.breadcrumb-item.current {
    color: var(--color-gray-mid, #6c757d);
    font-weight: 600;
    pointer-events: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: 18px;
    line-height: 18px;
}

.breadcrumb-item i {
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.breadcrumb-separator {
    color: var(--color-gray-mid, #6c757d);
    opacity: 0.6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 1px;
    height: 18px;
}

.breadcrumb-separator i {
    width: 10px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Fallbacks SVG garantizados para íconos de breadcrumbs */
i.fa-home {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='currentColor' d='M575.8 255.5c0 18-15 32.1-32 32.1h-32v160c0 17.7-14.3 32-32 32h-112c-17.7 0-32-14.3-32-32V320h-96v128c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V287.6H32c-17 0-32-14.1-32-32.1c0-9 3.5-17.6 10-24L246.6 19.3c11.5-11.5 30.1-11.5 41.7 0l237.5 212.2c6.5 6.4 10 15 10 24z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='currentColor' d='M575.8 255.5c0 18-15 32.1-32 32.1h-32v160c0 17.7-14.3 32-32 32h-112c-17.7 0-32-14.3-32-32V320h-96v128c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V287.6H32c-17 0-32-14.1-32-32.1c0-9 3.5-17.6 10-24L246.6 19.3c11.5-11.5 30.1-11.5 41.7 0l237.5 212.2c6.5 6.4 10 15 10 24z'/%3E%3C/svg%3E") no-repeat center/contain;
}

i.fa-chevron-right {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='currentColor' d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='currentColor' d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/%3E%3C/svg%3E") no-repeat center/contain;
}

[data-theme="dark"] .breadcrumbs {
    background: rgba(22, 32, 25, 0.85);
    border-bottom-color: var(--nm-border, rgba(255, 255, 255, 0.08));
}

[data-theme="dark"] .breadcrumbs.scrolled {
    background: rgba(22, 32, 25, 0.5);
}

[data-theme="dark"] .breadcrumb-item {
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .breadcrumb-item.current {
    color: #b0b0b0;
}

[data-theme="dark"] .breadcrumb-separator {
    color: #888;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    margin-top: 70px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    padding: 4rem 2rem;
    background: #000; /* Color de respaldo */
    background: linear-gradient(135deg, var(--color-green-lighter) 0%, var(--color-white) 100%);
}
    
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 95, 79, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-content h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9) !important;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
        
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    animation: float 3s ease-in-out infinite;
}
    
.hero-image img {
    max-width: 100% !important;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); /* Sombra más profunda */
    border: 1px solid rgba(255,255,255,0.1);
}

/* ==================== SECCIONES DE CONTENIDO ==================== */
section {
    padding: 5rem 2rem;
    overflow: hidden;
    width: 100%;
}
    
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
}
    
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2 {
    color: var(--color-gray-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-green-main), var(--color-green-light));
    border-radius: 2px;
}

/* ==================== VARIANTES DE SECCIÓN (fondos extraídos de inline) ==================== */
.section--stats {
    background: linear-gradient(135deg, var(--color-green-lighter) 0%, var(--color-white) 100%);
}

.section--testimonials {
    background: linear-gradient(135deg, var(--color-gray-dark) 0%, #1a3a2e 100%);
    color: var(--color-white);
}

.section--contact {
    background: var(--color-gray-light);
}

[data-theme="dark"] .section--stats {
    background: linear-gradient(135deg, var(--nm-secondary-bg, #162019) 0%, var(--nm-bg, #0f1715) 100%);
}

[data-theme="dark"] .section--testimonials {
    background: linear-gradient(135deg, var(--nm-bg, #0f1715) 0%, #10231c 100%);
}

[data-theme="dark"] .section--contact {
    background: var(--nm-secondary-bg, #162019);
}

/* Estado inicial: oculto y un poco desplazado hacia abajo */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estado final: visible y en su posición original */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos escalonados para que no aparezcan todos al mismo tiempo */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
        
/* ==================== TARJETAS ==================== */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid rgba(64, 165, 120, 0.1);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-green-main), var(--color-green-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--color-green-lighter);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card:hover .card-icon {
    background: var(--color-green-main);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.card h3 {
    color: var(--color-gray-dark);
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--color-gray-mid);
}

.icon-img {
    width: 100%;       /* Ocupa el ancho del contenedor */
    height: 100%;      /* Ocupa el alto del contenedor */
    object-fit: contain; /* Mantiene la proporción de tu diseño */
    padding: 5px;      /* Espacio opcional para que no toque los bordes */
}

/* ==================== GRID LAYOUT ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ==================== BLOG PREVIEW (PORTADA) ==================== */
.blog-preview-section {
    padding: 5rem 0;
}

.blog-preview-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    height: 100%;
    text-align: left;
}

.blog-preview-thumb img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.blog-preview-card h3 {
    margin: 0.4rem 1.5rem 0.5rem;
    font-size: 1.15rem;
    color: var(--color-gray-dark);
    transition: color 0.3s ease;
}

.blog-preview-card:hover h3 {
    color: var(--color-green-main);
}

.blog-preview-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.5rem 1.5rem 0;
    font-size: 0.8rem;
}

.blog-preview-date {
    color: var(--color-gray-mid);
}

.blog-preview-cat {
    background: var(--color-green-lighter);
    color: var(--color-green-main);
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.blog-preview-excerpt {
    margin: 0.5rem 1.5rem;
    color: var(--color-gray-mid);
    font-size: 0.92rem;
    flex-grow: 1;
}

.blog-preview-more {
    margin: 0 1.5rem 1.5rem;
    color: var(--color-green-main);
    font-weight: 700;
    font-size: 0.9rem;
}

[data-theme="dark"] .blog-preview-card h3 {
    color: var(--nm-text);
}

[data-theme="dark"] .blog-preview-card:hover h3 {
    color: var(--nm-accent);
}

[data-theme="dark"] .blog-preview-date {
    color: rgba(232, 240, 237, 0.6);
}

[data-theme="dark"] .blog-preview-cat {
    background: var(--nm-secondary-bg);
    color: var(--nm-accent);
}

[data-theme="dark"] .blog-preview-excerpt {
    color: rgba(232, 240, 237, 0.65);
}

[data-theme="dark"] .blog-preview-more {
    color: var(--nm-accent);
}

/* ==================== RESEÑAS DE GOOGLE ==================== */
.google-reviews-section {
    padding: 5rem 0;
    background: var(--color-gray-light);
}

.google-reviews-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-white);
    border: 1px solid rgba(64, 165, 120, 0.15);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
}

.google-reviews-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    background: var(--color-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.google-reviews-card h2 {
    color: var(--color-gray-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.google-reviews-stars {
    font-size: 2rem;
    letter-spacing: 6px;
    margin-bottom: 0.6rem;
}

.google-reviews-stars .star {
    color: #fbbc05;
}

.google-reviews-stars .star-off {
    color: #e0e0e0;
}

.google-reviews-summary {
    color: var(--color-gray-mid);
    margin-bottom: 1.8rem;
}

[data-theme="dark"] .google-reviews-section {
    background: var(--nm-secondary-bg);
}

[data-theme="dark"] .google-reviews-card {
    background: var(--nm-bg);
    border-color: var(--nm-border);
}

[data-theme="dark"] .google-reviews-card h2 {
    color: var(--nm-text);
}

[data-theme="dark"] .google-reviews-summary {
    color: rgba(232, 240, 237, 0.7);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-green-lighter) 0%, rgba(64, 165, 120, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(64, 165, 120, 0.15);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-green-dark);
    margin-bottom: 0.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-gray-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
}
        
/* ==================== ANIMACIONES CONTADOR ==================== */
@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stat-item.animate-in .stat-number {
    animation: counterPulse 0.6s ease-out;
}
    
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-green-dark);
    margin-bottom: 0.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-gray-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
}
    
/* ==================== ANIMACIONES CONTADOR ==================== */
@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stat-number {
    font-variant-numeric: tabular-nums;
}
        
.stat-item.animate-in .stat-number {
    animation: counterPulse 0.6s ease-out;
}
    
/* ==================== FORMULARIO DE CONTACTO ==================== */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    text-align: center;
    display: block;
    font-weight: 600;
    color: var(--color-gray-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    text-align: center;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-gray-light); /* Borde inicial sutil */
    transition: all 0.3s ease-in-out;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-gray-dark);
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none; /* Elimina el borde azul por defecto del navegador */
    border-color: var(--color-green-main) !important; /* Cambia al verde principal */
    background-color: #f9fdfb;
    box-shadow: 0 0 10px rgba(64, 165, 120, 0.3);
    transform: translateY(-1px);
}

.form-group input:focus:required:invalid {
    border-color: #ff8c42 !important; /* Borde naranja si el campo obligatorio está vacío mientras se edita */
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.2);
}
        
.form-group select {
    text-align-last: center; 
}
        
.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-primary);
}

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

.form-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background: rgba(64, 165, 120, 0.1);
    color: var(--color-green-main);
    border: 2px solid var(--color-green-main);
    display: block;
}

.form-message.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 2px solid #dc2626;
    display: block;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
    
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== FORMULARIO MEJORADO ==================== */
/* Fila de formulario a ancho completo (para mensaje y campos individuales) */
.form-row--full {
    grid-template-columns: 1fr;
}

.form-submit-row {
    text-align: center;
    margin-top: 20px;
}

.btn-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 200px;
}

.btn-submit .btn-loader {
    display: none;
    align-items: center;
    gap: 8px;
}

.form-whatsapp-cta {
    text-align: center;
    margin: 24px 0 16px;
    padding: 0 16px;
}

.form-whatsapp-divider {
    display: block;
    text-align: center;
    margin-bottom: 12px;
    color: #aaa;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.form-whatsapp-divider::before,
.form-whatsapp-divider::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 1px;
    background: #ddd;
    vertical-align: middle;
    margin: 0 10px;
}

.form-whatsapp-cta p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 12px;
}

.btn-whatsapp-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.form-trust-seals {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8f0ed;
}

.form-trust-seals span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #888;
}

.form-trust-seals svg {
    color: var(--color-primary, #2d8a7a);
    flex-shrink: 0;
}

.form-message.success strong {
    color: var(--color-primary-dark, #1f6b5e);
}

@media (max-width: 600px) {
    .form-whatsapp-divider::before,
    .form-whatsapp-divider::after {
        width: 40px;
    }
    .form-trust-seals {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }
}

.city-input-wrapper {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.city-input-wrapper input {
    flex: 1;
    min-width: 0;
}

.btn-detect-city {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f8f8f8;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.btn-detect-city:hover {
    background: var(--color-primary, #2d8a7a);
    color: #fff;
    border-color: var(--color-primary, #2d8a7a);
}

.btn-detect-city:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
    
/* ==================== SECCIÓN TESTIMONIOS ==================== */
.testimonials-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto 3rem;
    overflow: hidden;
}

.testimonials-carousel {
    display: flex; /* Cambiado de grid a flex para el deslizamiento */
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden; /* Oculta la barra de scroll */
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
    width: 100%;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(111, 211, 154, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-shrink: 1;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 1 !important;
    min-width: calc(33.333% - 1.35rem); /* 3 por fila en PC */
    scroll-snap-align: start;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
        box-shadow 0.4s ease, 
        background 0.4s ease;
}
        
.testimonial-card:nth-child(1),
.testimonial-card:nth-child(2),
.testimonial-card:nth-child(3) {
    animation-delay: 0s, 0.1s, 0.2s;
    opacity: 1;
}

.testimonial-card:nth-child(n+4) {
    display: none;
}

.testimonial-card:hover {
    transform: scale(1.05) translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
    border-color: rgba(111, 211, 154, 0.4);
    cursor: pointer;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-orange) 0%, #ff6b2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

img.testimonial-avatar {
    object-fit: cover;
    display: block;
}

.testimonial-author h4 {
    margin: 0;
}

.testimonial-rating {
    color: var(--color-accent-orange);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-orange) 0%, #ff6b2a 100%);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(111, 211, 154, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--color-accent-orange);
    width: 30px;
    border-radius: 5px;
}

/* ==================== SECCIÓN ABOUT ==================== */
.about-section {
    background: linear-gradient(135deg, var(--color-green-darker, #1d4a3a) 0%, var(--color-gray-dark) 100%);
    color: var(--color-white);
}
    
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
    
.about-section h2, .about-section h3 {
    color: var(--color-white);
}
    
.about-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin: 2rem 0;
}

.about-features li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green-light);
    font-weight: bold;
    font-size: 1.25rem;
}
        
input:valid:not(:placeholder-shown), 
textarea:valid:not(:placeholder-shown) {
    border-color: var(--color-green-main);
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2340a578"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}
        
.title-link {
    color: inherit;            /* Hereda el color blanco definido en .about-section h2 */
    text-decoration: none;     /* Quita el subrayado automático */
    transition: var(--transition-smooth); /* Usa tu variable de transición suave */
}

.title-link:hover {
    color: var(--color-green-light); /* Cambia a verde claro al pasar el cursor */
    padding-left: 5px;               /* Un pequeño desplazamiento visual */
}
        
/* --- LÓGICA DE LA TARJETA GIRATORIA (FLIP CARD) --- */
.flip-card-container {
    perspective: 1000px; /* Necesario para el efecto 3D */
    width: 100%;
    height: 400px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Girar la tarjeta al pasar el cursor */
.flip-card-container:hover .flip-card {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Soporte Safari */
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border: 2px solid rgba(111, 211, 154, 0.3);
}

/* LADO FRONTAL: Con imagen FOOD4.jpg */
.flip-card-front {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/spa.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.flip-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.tap-hint {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
    opacity: 0.8;
}

/* LADO TRASERO: Fondo verde oscuro */
.flip-card-back {
    background: #1d4a3a;
    color: white;
    transform: rotateY(180deg);
}

/* --- DARK MODE SECCIÓN ABOUT / FLIP CARD --- */
[data-theme="dark"] .about-section {
    background: linear-gradient(135deg, var(--nm-secondary-bg, #162019) 0%, var(--nm-bg, #0f1715) 100%);
}

[data-theme="dark"] .about-section h2,
[data-theme="dark"] .about-section h3 {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .about-section p,
[data-theme="dark"] .about-features li {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .flip-card-front {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/spa.jpg');
    background-size: cover;
    background-position: center;
}

[data-theme="dark"] .flip-card-front h3 {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .tap-hint {
    color: rgba(232, 240, 237, 0.8);
}

[data-theme="dark"] .flip-card-back {
    background: var(--nm-bg, #0f1715);
    color: var(--nm-text, #e8f0ed);
    border-color: var(--nm-accent, #2d8a7a);
    border-width: 2px;
}

[data-theme="dark"] .flip-card-back h3 {
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .flip-card-back p {
    color: var(--nm-text, #e8f0ed);
}
        
/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(45, 95, 79, 0.55) 0%, rgba(45, 95, 79, 0.42) 100%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    padding: 1.5rem 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, visibility 0.45s;
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner-text h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-text h3 svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.cookie-banner-text p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.cookie-banner-text a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: var(--color-green-light);
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.cookie-btn svg {
    flex-shrink: 0;
}

.cookie-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--color-green-main) 0%, var(--color-green-light) 100%);
    color: white;
}

.cookie-btn-accept:hover {
    box-shadow: 0 6px 20px rgba(64, 165, 120, 0.4);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-settings {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 15px rgba(64, 165, 120, 0.3);
}

/* DARK MODE COOKIE BANNER */
[data-theme="dark"] .cookie-banner {
    background: linear-gradient(135deg, rgba(15, 23, 21, 0.72) 0%, rgba(22, 32, 25, 0.6) 100%);
    border-top-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .cookie-banner-text a:hover {
    color: var(--nm-accent, #2d8a7a);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }
    .cookie-btn {
        transition: none;
    }
    .cookie-btn:hover {
        transform: none;
    }
}

/* DARK MODE COOKIE MODAL */
[data-theme="dark"] .cookie-modal {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .cookie-modal-content {
    background: linear-gradient(160deg, rgba(22, 32, 25, 0.92) 0%, rgba(15, 23, 21, 0.88) 100%);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .cookie-modal-header {
    border-bottom-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .cookie-modal-header h2 {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .cookie-modal-close {
    color: #9fb5ac;
}

[data-theme="dark"] .cookie-modal-close:hover {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .cookie-option {
    border-bottom-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .cookie-option-label strong {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .cookie-option-label span {
    color: #9fb5ac;
}

[data-theme="dark"] .cookie-toggle {
    background: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .cookie-modal-btn-cancel {
    background: var(--nm-border, #1e2d27);
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .cookie-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* MODAL CONFIGURACIÓN */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 21, 0.45);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.cookie-modal.active {
    opacity: 1;
    visibility: visible;
}

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

.cookie-modal-content {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 251, 249, 0.82) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    animation: slideInUp 0.4s ease-out;
}

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

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-gray-light);
}

.cookie-modal-header h2 {
    margin: 0;
    color: var(--color-gray-dark);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-gray-mid);
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: var(--color-gray-dark);
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-label strong {
    color: var(--color-gray-dark);
}

.cookie-option-label span {
    font-size: 0.85rem;
    color: var(--color-gray-mid);
}

/* Toggle Switch */

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--color-gray-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.cookie-toggle.active {
    background: var(--color-green-main);
}

.cookie-toggle::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-toggle.active::before {
    left: 26px;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.cookie-modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cookie-modal-btn-cancel {
    background: var(--color-gray-light);
    color: var(--color-gray-dark);
}

.cookie-modal-btn-cancel:hover {
    background: var(--color-gray-light);
    opacity: 0.8;
}

.cookie-modal-btn-save {
    background: linear-gradient(135deg, var(--color-green-main) 0%, var(--color-green-light) 100%);
    color: white;
}

.cookie-modal-btn-save:hover {
    box-shadow: 0 6px 20px rgba(64, 165, 120, 0.4);
    transform: translateY(-2px);
}

.close-modal-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-setting {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cookie-setting-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cookie-setting-info p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    background: var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.toggle-switch.active {
    background: var(--secondary-color);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.toggle-switch.active::after {
    left: 24px;
}
    
.toggle-switch.required {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-modal-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-modal-footer button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-modal-footer .cookie-btn-accept {
    background: var(--primary-color);
    color: white;
}
    
.cookie-modal-footer .cookie-btn-accept:hover {
    background: var(--secondary-color);
}

/* ==================== FOOTER ==================== */
footer {
    position: relative;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), 
        url('../images/FOOD4.jpg');
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: #ffffff;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-image-container {
    display: flex;
    justify-content: flex-end; /* Alinea la imagen a la derecha del contenedor */
    align-items: center;
}

.footer-bw-img {
    max-width: 180px; /* Tamaño sugerido para que no sature el espacio */
    height: auto;
    border-radius: var(--radius-sm);
    opacity: 0.8; /* Un toque sutil para que se integre con el fondo */
    transition: var(--transition-smooth);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05); /* Brillo muy tenue */
}

.footer-bw-img:hover {
    opacity: 1;
    transform: scale(1.05);
}
        
.footer-section h3 {
    color: #6fd39a;
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-green-light);
    padding-left: 0.5rem;
}

.footer-bottom {
    background: transparent !important;
    position: relative;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
}

.footer-section a, 
.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}
        
.footer-panoramic-img {
    /* Proporción horizontal (lo opuesto al pilar del hero) */
    width: 270px;   /* Más ancha */
    height: 80px;   /* Más bajita (proporción similar a 100/20) */
            
    /* El truco mágico para que no se deforme */
    object-fit: cover; 
    object-position: center; /* Centra la casita en el recorte */
    
    /* Estética */
    border-radius: 12px; /* Bordes redondeados sutiles */
    margin-bottom: 1.5rem;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Brillo sutil en el borde */
    transition: var(--transition-smooth);
}

/* Efecto al pasar el mouse */
.footer-panoramic-img:hover {
    transform: scale(1.05);
    border-color: var(--color-green-light);
}
        
/* --- Estilos de Redes Sociales Verdes con Movimiento --- */
.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Espacio uniforme entre iconos */
}

.social-links a {
    color: var(--color-green-main); /* Color verde de tu marca */
    font-size: 1.8rem; /* Tamaño más visible para móviles y escritorio */
    text-decoration: none;
    transition: var(--transition-smooth); /* Tu transición suave configurada */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li .contact-label {
    min-width: 110px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links li i {
    width: 1.2em;
    height: 1.2em;
    color: var(--color-green-light);
    display: inline-block;
    flex-shrink: 0;
}

.social-links a i {
    width: 1em;
    height: 1em;
    display: inline-block;
}

/* Fallbacks SVG garantizados para íconos del Footer y generales */
i.fa-whatsapp {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='currentColor' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3 18.6-68.1-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='currentColor' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3 18.6-68.1-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") no-repeat center/contain;
}

i.fa-map-marker-alt, i.fa-map-marker, i.fa-location-dot {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='currentColor' d='M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 256c-35.3 0-64-28.7-64-64s28.7-64 64-64s64 28.7 64 64s-28.7 64-64 64z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='currentColor' d='M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 256c-35.3 0-64-28.7-64-64s28.7-64 64-64s64 28.7 64 64s-28.7 64-64 64z'/%3E%3C/svg%3E") no-repeat center/contain;
}

i.fa-phone, i.fa-phone-alt {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 400C234.3 365.4 146.6 277.7 112 207.3l31.3-40.7c13.7-11.1 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 400C234.3 365.4 146.6 277.7 112 207.3l31.3-40.7c13.7-11.1 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E") no-repeat center/contain;
}

i.fa-envelope {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4l217.6 163.2c11.4 8.5 27 8.5 38.4 0l217.6-163.2c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176V384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64V176L294.4 338.7c-22.8 17.1-54 17.1-76.8 0L0 176z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4l217.6 163.2c11.4 8.5 27 8.5 38.4 0l217.6-163.2c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176V384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64V176L294.4 338.7c-22.8 17.1-54 17.1-76.8 0L0 176z'/%3E%3C/svg%3E") no-repeat center/contain;
}

i.fa-facebook-f, i.fa-facebook {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='currentColor' d='M80 299.3V512H196V299.3h86.5l18-97.8H196V147.9c0-26.8 13.1-52.9 55.2-52.9H296V8.4C284.9 6.9 246.8 0 207.3 0 125 0 71.9 50 71.9 140.4v61.1H0v97.8H80z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='currentColor' d='M80 299.3V512H196V299.3h86.5l18-97.8H196V147.9c0-26.8 13.1-52.9 55.2-52.9H296V8.4C284.9 6.9 246.8 0 207.3 0 125 0 71.9 50 71.9 140.4v61.1H0v97.8H80z'/%3E%3C/svg%3E") no-repeat center/contain;
}

i.fa-twitter, i.fa-x-twitter {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E") no-repeat center/contain;
}

i.fa-instagram {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='currentColor' d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.9-26.9 26.9-14.9 0-26.9-12-26.9-26.9s12-26.9 26.9-26.9c14.9 0 26.9 12 26.9 26.9zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='currentColor' d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.9-26.9 26.9-14.9 0-26.9-12-26.9-26.9s12-26.9 26.9-26.9c14.9 0 26.9 12 26.9 26.9zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E") no-repeat center/contain;
}

i.fa-linkedin-in, i.fa-linkedin {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='currentColor' d='M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='currentColor' d='M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z'/%3E%3C/svg%3E") no-repeat center/contain;
}

i.fa-youtube {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='currentColor' d='M549.7 124.1c-6.3-23.7-24.8-42.3-48.3-48.6C458.8 64 288 64 288 64S117.2 64 74.6 75.5c-23.5 6.3-42 24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.1 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V174.4l142.7 81.6-142.7 81.6z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='currentColor' d='M549.7 124.1c-6.3-23.7-24.8-42.3-48.3-48.6C458.8 64 288 64 288 64S117.2 64 74.6 75.5c-23.5 6.3-42 24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.1 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V174.4l142.7 81.6-142.7 81.6z'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* Efecto al pasar el cursor (Hover) */
.social-links a:hover {
    color: var(--color-green-light); /* Cambia a verde más claro */
    transform: translateY(-8px) scale(1.2); /* Movimiento hacia arriba y agranda */
    filter: drop-shadow(0 5px 15px rgba(64, 165, 120, 0.4)); /* Resplandor verde sutil */
}

/* Animación de movimiento constante (Sutil balanceo) */
@keyframes socialFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

.social-links a {
    animation: socialFloat 3s ease-in-out infinite;
}

/* Desfasamos las animaciones para que no se muevan todos a la vez */
.social-links a:nth-child(2) { animation-delay: 0.2s; }
.social-links a:nth-child(3) { animation-delay: 0.4s; }
.social-links a:nth-child(4) { animation-delay: 0.6s; }
        
/* ==================== BOTONES FLOTANTES ==================== */
.floating-button {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", var(--font-primary), sans-serif;
    font-style: normal;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    border: none;
    bottom: 40px;
    right: 20px;
    color: #ffffff;
    line-height: 1;
}

.floating-button i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    width: 1em;
    height: 1em;
    line-height: 1;
}

/* Renderizado garantizado vía SVG Mask si los archivos font-awesome no cargan */
.floating-button.whatsapp i {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='currentColor' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3 18.6-68.1-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='currentColor' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3 18.6-68.1-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.floating-button.phone i {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 400C234.3 365.4 146.6 277.7 112 207.3l31.3-40.7c13.7-11.1 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 400C234.3 365.4 146.6 277.7 112 207.3l31.3-40.7c13.7-11.1 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.floating-button.to-top i {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='currentColor' d='M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 137.9V448c0 17.7 14.3 32 32 32s32-14.3 32-32V137.9l105.4 105.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='currentColor' d='M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 137.9V448c0 17.7 14.3 32 32 32s32-14.3 32-32V137.9l105.4 105.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.fa-chevron-down {
    display: inline-block;
    vertical-align: middle;
}

.lang-btn .fa-chevron-down {
    background-color: currentColor;
    width: 0.8em;
    height: 0.8em;
    display: inline-block;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 85.4 168.2c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 85.4 168.2c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* Banderas Fallback para selector de idioma */
.fi {
    display: inline-block;
    width: 1.33em;
    height: 1em;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    vertical-align: middle;
}

.fi-us {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7410 3900'%3E%3Crect width='7410' height='3900' fill='%23b22234'/%3E%3Cpath d='M0 300h7410M0 900h7410M0 1500h7410M0 2100h7410M0 2700h7410M0 3300h7410' stroke='%23fff' stroke-width='300'/%3E%3Crect width='2964' height='2100' fill='%233c3b6e'/%3E%3C/svg%3E");
}

.fi-es {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 750 500'%3E%3Crect width='750' height='500' fill='%23c60b1e'/%3E%3Crect y='125' width='750' height='250' fill='%23ffc400'/%3E%3C/svg%3E");
}

.floating-button:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-hover);
}
    
.floating-button:active {
    transform: scale(0.95);
}

.floating-button.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    color: white;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-button.phone {
    background: linear-gradient(135deg, #ff8c42 0%, #ff7a2a 100%);
    color: white;
    bottom: 110px;
    animation: slideIn 0.5s ease-out;
}

.floating-button.to-top {
    background: linear-gradient(135deg, var(--color-green-main) 0%, var(--color-green-dark) 100%);
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    left: 20px;
    right: auto;
    bottom: 40px;
}

.floating-button.to-top.show {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
    
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }   
}

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

@keyframes linkFadeIn {
    from {
        opacity: 0;
        transform: translateX(30px); /* Empieza un poco a la derecha */
    }
    to {
        opacity: 1;
        transform: translateX(0);    /* Termina en su posición original */
    }
}
        
@keyframes pulse-cta {
    0% {
        box-shadow: 0 0 0 0 rgba(64, 165, 120, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(64, 165, 120, 0);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(64, 165, 120, 0);
        transform: scale(1);
    }
}
        
/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }

    header #nav ul,
    #nav ul {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }

    .logo {
        font-size: 1.1rem;
        height: 35px;
    }

    .logo img {
        height: 35px;
    }

    header {
        height: 60px;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #40a578 !important;
        font-size: 1.8rem !important;
        padding: 6px 10px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1100;
        position: relative;
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-menu-toggle.active {
        color: #1e5645 !important;
        z-index: 1100;
    }

    header #nav,
    #nav {
        display: flex;
        position: fixed;
        top: 65px;
        right: 15px;
        left: auto;
        width: 85%;
        max-width: 290px;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1rem 1rem 1rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 1050;
        transform: translateY(-10px) scale(0.95);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, visibility 0.25s ease;
    }

    /* Adjust for WordPress admin bar */
    .admin-bar header #nav,
    .admin-bar #nav {
        top: 97px;
        max-height: calc(100vh - 110px);
    }

    .admin-bar header {
        top: 32px;
    }

    header #nav.active,
    #nav.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    header #nav ul,
    #nav ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        gap: 0.25rem;
        font-size: 1.05rem;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    header #nav li,
    #nav li {
        width: 100%;
        text-align: right;
    }

    header #nav a,
    #nav a,
    header #nav li a,
    #nav li a {
        display: block;
        text-align: right;
        padding: 0.55rem 0.8rem !important;
        font-size: 1.05rem;
        width: 100%;
        color: #2d5f4f;
        font-weight: 600;
        border-bottom: none !important;
        opacity: 1;
        transform: none;
        transition: color 0.2s ease, background 0.2s ease;
        text-decoration: none;
        box-sizing: border-box;
        border-radius: 10px;
    }

    header #nav a:hover,
    #nav a:hover,
    header #nav li a:hover,
    #nav li a:hover {
        background: rgba(64, 165, 120, 0.1);
        color: #1e5645;
    }

    .nav-links {
        gap: 1rem;
    }

    header #nav a:last-child,
    #nav a:last-child {
        border-bottom: none;
    }

    header #nav a.cta-button,
    #nav a.cta-button {
        background: #40a578 !important;
        color: #ffffff !important;
        margin: 12px 0 8px 0 !important;
        width: 100% !important;
        max-width: 100%;
        border-radius: 50px !important;
        text-align: center;
        font-weight: 700;
        font-size: 1rem;
        padding: 0.7rem 1.25rem !important;
        border-bottom: none !important;
        box-shadow: 0 4px 14px rgba(64, 165, 120, 0.3) !important;
        display: block !important;
    }

    header #nav.active a.cta-button,
    #nav.active a.cta-button {
        animation: none;
    }

    header #nav .sub-menu,
    #nav .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: rgba(64, 165, 120, 0.06);
        border-radius: 12px;
        width: 100%;
        padding: 4px 0;
        margin-top: 4px;
        display: none;
    }

    header #nav li.open-submenu > .sub-menu,
    #nav li.open-submenu > .sub-menu {
        display: flex;
    }

    /* Language selector inside floating menu card */
    .language-selector {
        margin: 8px auto 0 auto;
        padding: 0;
        width: fit-content;
        text-align: center;
        border-top: none;
    }

    .lang-btn {
        background: #ffffff;
        border: 1px solid #40a578;
        border-radius: 50px;
        padding: 6px 14px;
        font-size: 0.85rem;
        color: #2d5f4f;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .lang-btn {
        width: 100%;
        justify-content: center;
    }

    .lang-dropdown {
        position: static;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        margin-top: 0.5rem;
    }

    /* Mobile sub-menus */
    header nav .sub-menu {
        position: static;
        transform: none;
        min-width: 100%;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 0;
        padding: 0;
        margin: 0;
        display: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    header nav .sub-menu::before {
        display: none;
    }

    header nav li.menu-item-has-children.open-submenu > .sub-menu {
        display: flex;
    }

    header nav .sub-menu li a {
        padding: 0.6rem 2rem;
        font-size: 0.95rem;
    }

    .hero {
        position: relative;
        margin-top: 60px;
        min-height: 90vh;
        display: flex;
        align-items: center;
        overflow: hidden;
        padding: 4rem 2rem;
        background: #000;
        margin-bottom: 2rem;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 1200px !important; /* Ancho máximo en PC */
        margin: 0 auto !important;    /* Centra el contenido */
        padding: 0 1rem;
        height: 100%;
    }
                
    .hero-buttons {
        justify-content: center;
        flex-direction: column; /* Botones uno sobre otro en móviles */
    }
                
    .hero-video-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Asegura que cubra sin deformarse */
        z-index: 0;
        opacity: 0.6; /* Ajusta la opacidad para que el texto resalte */
    }
            
    .hero-content {
        order: 1;
    }
            
    .hero-content h1 {
        color: #ffffff; /* Asegura contraste en móviles sobre el video */
    }

    .hero-content p {
        color: #f1f1f1;
    }
            
    .hero-image {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 2;
        margin-top: 1.5rem;
    }
            
    .hero-image img {
        width: 185px;       /* Ancho reducido */
        height: 490px;
        border-radius: 50px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: var(--shadow-lg); /* Sombra suave definida en tus variables */
        transition: var(--transition-smooth);
        object-fit: cover; 
        object-position: center;
    }

    .hero-image img:hover {
        transform: scale(1.02); /* Efecto sutil al pasar el mouse */
    }
            
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    .language-selector {
        margin-left: auto;
        margin-right: 1rem;
        display: flex !important;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .lang-btn .flag-icon {
        font-size: 16px;
    }

    .lang-btn .lang-text {
        font-size: 11px;
    }

    .lang-dropdown {
        right: -10px;
        min-width: 160px;
    }

    .header-container {
        padding: 0.5rem 1rem;
    }

    .breadcrumbs {
        padding: 10px 0;
        margin-top: 0;
        top: 60px;
    }

    .admin-bar .breadcrumbs {
        top: calc(60px + 32px);
    }

    .testimonial-card {
        min-width: 90%;
    }
                
    section {
        padding: 3.5rem 1.5rem;
    }
                
    .about-container {
        grid-template-columns: 1fr; /* Apilar en una sola columna */
        gap: 2rem;
        text-align: left;
    }

    .about-text-content {
        order: 1; /* Texto primero */
    }
    
    .flip-card-container {
        order: 2; /* Tarjeta después */
        height: 340px; /* Un poco más pequeña en móvil */
    }

    .flip-card-front h3 {
        font-size: 1.5rem;
    }
            
    .form-row {
        /* Pasamos de 2 columnas a 1 sola para dar más espacio */
        grid-template-columns: 1fr; 
        gap: 0; /* Eliminamos el hueco lateral innecesario */
    }
        
    .form-container.card {
        padding: 1.5rem; /* Ajustamos un poco el margen interno en móvil */
    }
    
    .form-group input, 
    .form-group select {
        font-size: 16px; /* Evita el zoom automático en iOS al hacer clic */
    }
            
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-banner-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-modal-content {
        padding: 1.5rem;
    }

    .cookie-modal-header {
        margin-bottom: 1rem;
    }
            
    footer {
        padding: 2rem 1.5rem;
    }
                
    .footer-image-container {
        justify-content: center; /* Centra la imagen en pantallas pequeñas */
        margin-top: 2rem;
    }
        
    .footer-bw-img {
        max-width: 150px;
    }
                
    .footer-panoramic-img {
        width: 380px; 
        height: 100px;
        margin-left: auto;
        margin-right: auto; /* La centra en móvil */
    }
            
    footer .footer-section h3 {
        font-size: 1.4rem; /* Títulos de sección más destacados */
        margin-bottom: 1.2rem;
        margin-top: 1rem;
    }

    footer .footer-section p, 
    footer .footer-section a,
    footer .footer-links li {
        font-size: 1.2rem; /* Tamaño de texto cómodo para leer */
        line-height: 1.7;   /* Más espacio entre líneas */
        margin-bottom: 1rem; /* Espacio extra para facilitar el clic */
    }

    footer .footer-section a {
        display: inline-block; /* Permite que el margen funcione mejor */
        padding: 5px 0;        /* Área de contacto más amplia */
    }

    .footer-bottom p, 
    .footer-bottom a {
        font-size: 0.95rem; /* El copyright un poco más pequeño pero legible */
    }

    .social-links a {
        font-size: 1.5rem; /* Iconos sociales más grandes para tocarlos fácilmente */
        margin: 0 10px;
    }
}

@media (max-width: 473px) {
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    section {
        /* Cambiamos el 0 por 1.5rem para crear el margen lateral */
        padding: 2.5rem 1.5rem; 
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
                
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    nav {
        position: relative;
        margin-bottom: 1rem;
    }   
    
    .nav-container {
        padding: 0.5rem 1rem;
    }

    .nav-links {
        gap: 0.5rem;
    }
             
    nav ul {
        gap: 0.75rem;
        font-size: 0.75rem;
    }
    
    .logo {
        font-size: 1.25rem;
        height: 40px;
    }
                
    .logo img {
        height: 45px;
    }
    
    .hero {
        margin-top: 0;
        min-height: 45vh;
    }

    .language-selector {
        margin-right: 0.5rem;
        display: flex !important;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    .lang-dropdown {
        min-width: 140px;
        font-size: 0.9rem;
    }
    
    .floating-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 8px;
    }

    .floating-button.phone {
        bottom: 70px;
    }

    .floating-button.to-top {
        left: 8px;
        right: auto;
    }

    .dark-mode-toggle {
        right: 8px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* ==================== MODO OSCURO ==================== */
/* Dark mode variables - configurable desde Customizer via inline styles */
[data-theme="dark"] {
    --color-green-dark: #1e5645;
    --color-green-main: var(--nm-accent, #2d8a7a);
    --color-green-light: #4db89a;
    --color-green-lighter: var(--nm-secondary-bg, #1a2e28);
    --color-gray-dark: #e8e8e8;
    --color-gray-mid: #b0b0b0;
    --color-gray-light: var(--nm-secondary-bg, #1a2e28);
    --color-gray-lighter: var(--nm-bg, #0f1715);
    --color-white: var(--nm-secondary-bg, #121e1b);
    --color-black: #ffffff;
    --color-accent-orange: #ff9a5c;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-hover: rgba(0, 0, 0, 0.5);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(30, 86, 69, 0.3);
    --shadow-hover: 0 12px 32px rgba(30, 86, 69, 0.4);
}

/* Dark mode body styles */
[data-theme="dark"] body {
    background-color: var(--nm-bg, #0f1715);
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] header {
    background: rgba(18, 30, 27, 0.8);
    border-bottom: 1px solid var(--nm-border, rgba(255, 255, 255, 0.08));
}

[data-theme="dark"] header.scrolled {
    background: rgba(18, 30, 27, 0.5);
}

[data-theme="dark"] header #nav,
[data-theme="dark"] #nav {
    background: rgba(18, 30, 27, 0.96) !important;
    border: 1px solid var(--nm-border, rgba(255, 255, 255, 0.12));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] header #nav a,
[data-theme="dark"] #nav a,
[data-theme="dark"] header #nav li a,
[data-theme="dark"] #nav li a {
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] header #nav a:hover,
[data-theme="dark"] #nav a:hover,
[data-theme="dark"] header #nav li a:hover,
[data-theme="dark"] #nav li a:hover {
    color: var(--nm-accent, #4db89a);
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .lang-btn {
    background: var(--nm-secondary-bg, #162019);
    border-color: var(--nm-accent, #2d8a7a);
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] .cta-button {
    background: linear-gradient(135deg, #1e5645, var(--nm-accent, #2d8a7a));
}

[data-theme="dark"] .card {
    background: var(--nm-secondary-bg, #1a2e28);
    border: 1px solid var(--nm-border, rgba(255, 255, 255, 0.08));
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] .card h3 {
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] .card p {
    color: #b0b0b0;
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 {
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] p {
    color: #b0b0b0;
}

[data-theme="dark"] .section-title h2 {
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] .testimonial-card {
    background: var(--nm-secondary-bg, #1a2e28);
    border: 1px solid var(--nm-border, rgba(255, 255, 255, 0.08));
}

[data-theme="dark"] .testimonial-text {
    color: #b0b0b0;
}

[data-theme="dark"] .stat-item {
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] footer {
    background: #0a0f0d;
}

[data-theme="dark"] .footer-section h3 {
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section a {
    color: #b0b0b0;
}

[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select {
    background: var(--nm-secondary-bg, #1a2e28);
    border: 1px solid var(--nm-border, rgba(255, 255, 255, 0.15));
    color: var(--nm-text, #e8e8e8);
}

[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder {
    color: #888;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e5645, #2d8a7a);
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 86, 69, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    overflow: hidden;
}

.dark-mode-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 86, 69, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-mode-toggle .icon-sun,
.dark-mode-toggle .icon-moon {
    position: absolute;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dark-mode-toggle .icon-sun svg,
.dark-mode-toggle .icon-moon svg {
    width: 100%;
    height: 100%;
    color: #fff;
}

.dark-mode-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.dark-mode-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .dark-mode-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .dark-mode-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* ==================== FORM VALIDATION STYLES ==================== */
.field-error {
    border-color: #e74c3c !important;
    animation: shake 0.3s ease;
}

.field-error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 4px;
    animation: fadeIn 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ==================== PARALLAX HERO ==================== */
.hero {
    overflow: hidden;
    position: relative;
}

.hero-video-bg {
    will-change: transform;
}

.hero-content {
    will-change: transform, opacity;
    position: relative;
    z-index: 2;
}

/* ==================== HEADER PREMIUM REDESIGN ==================== */
.header-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: headerSlideDown 0.6s ease-out;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-premium.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    height: 65px;
}

.header-premium .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-premium.scrolled .header-container {
    height: 65px;
}

/* Logo Premium */
.logo-premium .logo-wrapper {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-premium:hover .logo-wrapper {
    transform: scale(1.05);
}

.logo-premium img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.header-premium.scrolled .logo-premium img {
    height: 45px;
}

/* Navegación Premium */
.nav-premium {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu-premium {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu-premium li {
    position: relative;
}

.nav-menu-premium li > a {
    position: relative;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: inline-block;
}

.nav-menu-premium li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #40a578, #2d8a7a);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu-premium li > a:hover::before,
.nav-menu-premium li.current-menu-item > a::before,
.nav-menu-premium li.current_page_item > a::before {
    width: 60%;
}

.nav-menu-premium li > a:hover {
    color: #2d8a7a;
    background: rgba(45, 138, 122, 0.05);
}

/* CTA Button Premium */
.nav-cta-premium {
    background: linear-gradient(135deg, #40a578 0%, #2d8a7a 100%);
    color: #fff !important;
    padding: 0.65rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(64, 165, 120, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-cta-premium::before {
    display: none !important;
}

.nav-cta-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 165, 120, 0.4) !important;
    background: linear-gradient(135deg, #2d8a7a 0%, #40a578 100%) !important;
}

/* Language Selector Premium */
.lang-premium {
    position: relative;
}

/* Segmented control premium - solo visible en móvil */
.lang-segmented {
    display: none;
}

.lang-premium .lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(45, 138, 122, 0.2);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2d3748;
    transition: all 0.3s ease;
}

.lang-premium .lang-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(45, 138, 122, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lang-premium .lang-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.lang-premium:hover .lang-chevron {
    transform: rotate(180deg);
}

.lang-premium .lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.lang-premium:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-premium .lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #2d3748;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-premium .lang-option:hover {
    background: rgba(45, 138, 122, 0.08);
    color: #2d8a7a;
}

.lang-premium .lang-option.active {
    background: rgba(45, 138, 122, 0.1);
    color: #2d8a7a;
    font-weight: 600;
}

/* Hamburger Premium */
.hamburger-premium {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-premium .hamburger-line {
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #40a578, #2d8a7a);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-premium.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-premium.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-premium.active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Modo Oscuro - Header Premium */
[data-theme="dark"] .header-premium {
    background: rgba(26, 32, 44, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .header-premium.scrolled {
    background: rgba(26, 32, 44, 0.88);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-menu-premium li > a {
    color: #e2e8f0;
}

[data-theme="dark"] .nav-menu-premium li > a:hover {
    color: #4fd1c5;
    background: rgba(79, 209, 197, 0.08);
}

[data-theme="dark"] .nav-menu-premium li > a::before {
    background: linear-gradient(90deg, #4fd1c5, #38b2ac);
}

[data-theme="dark"] .nav-cta-premium {
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
}

[data-theme="dark"] .lang-premium .lang-btn {
    background: rgba(26, 32, 44, 0.8);
    border-color: rgba(79, 209, 197, 0.2);
    color: #e2e8f0;
}

[data-theme="dark"] .lang-premium .lang-btn:hover {
    background: rgba(26, 32, 44, 1);
    border-color: rgba(79, 209, 197, 0.4);
}

[data-theme="dark"] .lang-premium .lang-dropdown {
    background: rgba(26, 32, 44, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .lang-premium .lang-option {
    color: #e2e8f0;
}

[data-theme="dark"] .lang-premium .lang-option:hover {
    background: rgba(79, 209, 197, 0.1);
    color: #4fd1c5;
}

[data-theme="dark"] .lang-premium .lang-option.active {
    background: rgba(79, 209, 197, 0.15);
    color: #4fd1c5;
}

/* Responsive - Header Premium */
@media (max-width: 992px) {
    .nav-premium {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        gap: 1.5rem;
    }

    .nav-premium.active {
        right: 0;
    }

    [data-theme="dark"] .nav-premium {
        background: rgba(26, 32, 44, 0.98);
    }

    .nav-menu-premium {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-menu-premium li {
        width: 100%;
    }

    .nav-menu-premium li > a {
        display: block;
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
    }

    .nav-menu-premium li > a::before {
        display: none;
    }

    .nav-menu-premium li > a:hover {
        transform: translateX(8px);
    }

    .nav-cta-premium {
        margin-top: 1rem;
        text-align: center;
        display: block !important;
    }

    .lang-premium {
        width: 100%;
        margin-top: 1rem;
    }

    /* Ocultar dropdown/botón antiguo en móvil */
    .lang-premium .lang-btn,
    .lang-premium .lang-dropdown {
        display: none !important;
    }

    /* ==================== SEGMENTED CONTROL PREMIUM (MÓVIL) ==================== */
    .lang-segmented {
        display: flex;
        width: 100%;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(45, 138, 122, 0.15);
        border-radius: 50px;
        padding: 4px;
        gap: 4px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .lang-seg-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
        border-radius: 50px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #2d3748;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .lang-seg-btn .fi {
        width: 22px;
        height: 16px;
        border-radius: 3px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        flex-shrink: 0;
    }

    .lang-seg-btn:not(.active):hover {
        background: rgba(45, 138, 122, 0.08);
        color: #2d8a7a;
        transform: translateY(-1px);
    }

    .lang-seg-btn.active {
        background: linear-gradient(135deg, #40a578 0%, #2d8a7a 100%);
        color: #fff;
        box-shadow: 0 4px 14px rgba(45, 138, 122, 0.35);
        transform: scale(1.02);
    }

    .lang-seg-btn.active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
        pointer-events: none;
    }

    /* Dark mode - segmented control */
    [data-theme="dark"] .lang-segmented {
        background: rgba(26, 32, 44, 0.85);
        border-color: rgba(79, 209, 197, 0.2);
    }

    [data-theme="dark"] .lang-seg-btn {
        color: #e2e8f0;
    }

    [data-theme="dark"] .lang-seg-btn:not(.active):hover {
        background: rgba(79, 209, 197, 0.1);
        color: #4fd1c5;
    }

    [data-theme="dark"] .lang-seg-btn.active {
        background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
        box-shadow: 0 4px 14px rgba(79, 209, 197, 0.3);
    }

    .hamburger-premium {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header-premium .header-container {
        padding: 0 1rem;
    }

    .nav-premium {
        width: 100%;
        right: -100%;
    }
}

/* Admin Bar Adjustments */
.admin-bar .header-premium {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header-premium {
        top: 46px;
    }
}

/* Ocultar estilos antiguos cuando está el header premium */
.header-premium #nav,
.header-premium nav#nav {
    display: contents;
}

.header-premium .mobile-menu-toggle {
    display: none;
}

/* Scroll inteligente - ocultar/mostrar header */
.header-premium.header-hidden {
    transform: translateY(-100%);
}

.header-premium.header-visible {
    transform: translateY(0);
}

.header-premium {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Menú móvil mejorado con animaciones */
@media (max-width: 992px) {
    .header-premium #nav,
    .header-premium nav#nav {
        display: none;
    }
    
    .header-premium #nav.active,
    .header-premium nav#nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px 30px 30px;
        gap: 0;
        overflow-y: auto;
        z-index: 999;
        animation: slideInFromRight 0.3s ease-out;
    }
    
    [data-theme="dark"] .header-premium #nav.active,
    [data-theme="dark"] .header-premium nav#nav.active {
        background: rgba(26, 32, 44, 0.98);
    }
    
    @keyframes slideInFromRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    .header-premium #nav.active a,
    .header-premium nav#nav.active a {
        font-size: 1.25rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        animation: fadeInUp 0.4s ease-out backwards;
    }
    
    [data-theme="dark"] .header-premium #nav.active a,
    [data-theme="dark"] .header-premium nav#nav.active a {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
    
    .header-premium #nav.active a:nth-child(1),
    .header-premium nav#nav.active a:nth-child(1) { animation-delay: 0.05s; }
    .header-premium #nav.active a:nth-child(2),
    .header-premium nav#nav.active a:nth-child(2) { animation-delay: 0.1s; }
    .header-premium #nav.active a:nth-child(3),
    .header-premium nav#nav.active a:nth-child(3) { animation-delay: 0.15s; }
    .header-premium #nav.active a:nth-child(4),
    .header-premium nav#nav.active a:nth-child(4) { animation-delay: 0.2s; }
    .header-premium #nav.active a:nth-child(5),
    .header-premium nav#nav.active a:nth-child(5) { animation-delay: 0.25s; }
    .header-premium #nav.active a:nth-child(6),
    .header-premium nav#nav.active a:nth-child(6) { animation-delay: 0.3s; }
    .header-premium #nav.active a:nth-child(7),
    .header-premium nav#nav.active a:nth-child(7) { animation-delay: 0.35s; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .header-premium #nav.active ul,
    .header-premium nav#nav.active ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .header-premium #nav.active li,
    .header-premium nav#nav.active li {
        width: 100%;
    }
    
    .header-premium .mobile-menu-toggle,
    .hamburger-premium {
        display: flex !important;
        z-index: 1001;
    }
}

/* Indicador de página activa mejorado */
.nav-menu-premium li.current-menu-item > a,
.nav-menu-premium li.current_page_item > a {
    color: #2d8a7a;
    font-weight: 600;
}

[data-theme="dark"] .nav-menu-premium li.current-menu-item > a,
[data-theme="dark"] .nav-menu-premium li.current_page_item > a {
    color: #4fd1c5;
}

/* Submenús mejorados en móvil */
@media (max-width: 992px) {
    .header-premium #nav.active .sub-menu,
    .header-premium nav#nav.active .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.02);
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        padding: 0.5rem 0 0.5rem 1rem;
        border-left: 3px solid #2d8a7a;
    }
    
    [data-theme="dark"] .header-premium #nav.active .sub-menu,
    [data-theme="dark"] .header-premium nav#nav.active .sub-menu {
        background: rgba(255, 255, 255, 0.02);
        border-left-color: #4fd1c5;
    }
    
    .header-premium #nav.active .sub-menu a,
    .header-premium nav#nav.active .sub-menu a {
        font-size: 1rem;
        padding: 0.75rem 0;
    }
}