/*
Theme Name: Esencia Estética
Theme URI: https://esenciaestetica.com
Author: Kit Digital Development
Author URI: https://kitdigital.es
Description: Tema personalizado para centro de estética Esencia, especializado en tratamientos faciales y belleza integral
Version: 1.0.2
License: GPL v2 or later
Text Domain: esencia-estetica
Domain Path: /languages
*/

/* ========================================
   1. CSS Variables & Root
======================================== */
:root {
    --color-primary: #FF8B7D;
    --color-primary-dark: #E67366;
    --color-secondary: #FFB5A7;
    --color-accent: #F4D1C8;
    --color-text: #2C2C2C;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --color-background: #FFF9F7;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Open Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 8px;
    /* 👇 FIX CLS: altura del header para reservar espacio y evitar CLS */
    --header-height: 75px;
}

/* ========================================
   1.b FIX CLS: skip-link / screen-reader-text
   ⚠️ CRÍTICO: Estos estilos deben estar al principio
   para evitar CLS cuando el usuario hace Tab
======================================== */
.skip-link,
.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link:focus,
.screen-reader-text:focus {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    clip: auto;
    background: #fff;
    color: #000;
    padding: 8px 12px;
    z-index: 9999;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* ========================================
   2. Reset & Base Styles
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ========================================
   3. Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 { 
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
}

h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ========================================
   4. Layout & Container
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========================================
   5. Header & Navigation
======================================== */
.site-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    /* 👇 FIX CLS: altura fija para que el header sea estable */
    height: var(--header-height);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 20px;
}

/* 👇 FIX CLS: reserva el espacio del header en todo el contenido */
#page.site {
    padding-top: var(--header-height);
}

/* Logo and Branding */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-logo-link {
    display: block;
    line-height: 0;
    width: 200px;
    height: 75px;
}

/* SVG Logo Container - IMPORTANT */
.logo-svg-container {
    display: block;
    line-height: 0;
    width: 200px;
    height: 75px;
}

.logo-svg-container img,
.logo-svg-container svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.custom-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.custom-logo-svg {
    width: 100% !important;
    height: 100% !important;
}

.site-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.site-logo:hover {
    color: var(--color-primary);
}

.site-title {
    margin-left: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu-wrapper {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
    width: 100%;
}

/* Menu CTA Button */
.menu-cta .btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Mobile Menu Toggle - Hidden by default */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1001;
}

.menu-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    display: none;
}

/* Hamburger Icon */
.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    position: absolute;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                background-color 0.3s ease,
                opacity 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Hamburger Animation when active */
.menu-toggle.is-active .hamburger-inner {
    transform: rotate(45deg);
    background-color: var(--color-primary);
}

.menu-toggle.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.menu-toggle.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    background-color: var(--color-primary);
}

/* ========================================
   6. Hero Section
======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-accent) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ========================================
   7. Buttons
======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ========================================
   8. Service Cards & Sections
======================================== */
.services-section {
    padding: 80px 0;
    background: var(--color-background);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.service-description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ========================================
   9. About Section
======================================== */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    animation: fadeInLeft 0.8s ease;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.about-features li {
    padding: 0.5rem 0;
    color: var(--color-text-light);
}

.about-image {
    position: relative;
    animation: fadeInRight 0.8s ease;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
}

.experience-number {
    font-size: 2rem;
    font-family: var(--font-primary);
}

/* ========================================
   10. Contact Section
======================================== */
.contact-section {
    padding: 80px 0;
    background: var(--color-background);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 139, 125, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

/* ========================================
   11. Footer
======================================== */
.site-footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* Kit Digital Section */
.kit-digital-section {
    background: #f5f5f5;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
}

.kit-digital-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.kit-digital-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.kit-digital-logos img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition);
}

.kit-digital-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Footer menu list */
.footer-menu-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-menu-list a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.footer-menu-list a:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #f4a09c;
    transform: rotate(45deg);
    margin-left: 2rem;
}

/* ========================================
   12. Animations
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   13. Responsive Design & Mobile Menu
======================================== */

/* Desktop Navigation (default) */
.desktop-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Hide mobile elements on desktop */
.menu-toggle,
.mobile-menu-overlay,
.mobile-menu-panel {
    display: none;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    /* Hide desktop menu */
    .desktop-menu {
        display: none !important;
    }
    
    /* Show mobile menu toggle */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        gap: 8px;
        background: var(--color-accent);
        border: none;
        padding: 8px 12px;
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .menu-toggle:hover {
        background: var(--color-primary);
    }
    
    .menu-toggle:hover .hamburger-inner,
    .menu-toggle:hover .hamburger-inner::before,
    .menu-toggle:hover .hamburger-inner::after {
        background-color: white;
    }
    
    .menu-toggle:hover .menu-text {
        color: white;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1998;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Menu Panel */
    .mobile-menu-panel {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1999;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-menu-panel.active {
        right: 0;
    }
    
    /* Close Button */
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 2000;
    }
    
    .mobile-menu-close svg {
        stroke: var(--color-text);
        transition: stroke 0.3s ease;
    }
    
    .mobile-menu-close:hover svg {
        stroke: var(--color-primary);
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        padding: 30px 30px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .mobile-menu-header h2 {
        font-family: var(--font-primary);
        font-size: 1.5rem;
        color: var(--color-primary);
        margin: 0;
    }
    
    /* Mobile Menu List */
    .mobile-menu-list {
        list-style: none;
        padding: 20px 0;
        margin: 0;
        flex: 1;
    }
    
    .mobile-menu-list li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .mobile-menu-list li:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-list a {
        display: block;
        padding: 15px 30px;
        color: var(--color-text);
        font-size: 1.1rem;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .mobile-menu-list a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: var(--color-primary);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-list a:hover {
        color: var(--color-primary);
        padding-left: 40px;
        background: var(--color-background);
    }
    
    .mobile-menu-list a:hover::before {
        transform: scaleY(1);
    }
    
    /* Mobile Menu Footer */
    .mobile-menu-footer {
        padding: 20px 30px 30px;
        background: var(--color-background);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .btn-block {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-info {
        margin-top: 20px;
        text-align: center;
    }
    
    .mobile-menu-info p {
        margin: 5px 0;
        color: var(--color-text-light);
        font-size: 0.9rem;
    }
    
    .mobile-menu-social {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }
    
    .mobile-menu-social a {
        width: 40px;
        height: 40px;
        background: var(--color-accent);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-social a:hover {
        background: var(--color-primary);
        transform: translateY(-3px);
    }
    
    .mobile-menu-social svg {
        fill: var(--color-primary);
    }
    
    .mobile-menu-social a:hover svg {
        fill: var(--color-white);
    }
    
    /* Body no scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Other responsive adjustments */
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .kit-digital-logos {
        gap: 1.5rem;
    }
    
    .kit-digital-logos img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-panel {
        width: 90%;
    }
    
    .menu-text {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   14. Menús desplegables y WPML
======================================== */
.site-header, 
.header-inner, 
.main-navigation { 
    overflow: visible; 
}

.main-navigation .nav-menu > li { 
    position: relative; 
}

.main-navigation .menu-item-has-children { 
    position: relative; 
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
}

.main-navigation .sub-menu a:hover {
    background: var(--color-background);
    color: var(--color-primary);
}

/* WPML Language Switcher */
.wpml-ls-legacy-dropdown {
    position: relative;
}

.wpml-ls-legacy-dropdown .wpml-ls-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.wpml-ls-legacy-dropdown:hover .wpml-ls-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wpml-ls-sub-menu li {
    width: 100%;
}

.wpml-ls-sub-menu a {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wpml-ls-sub-menu a:hover {
    background: var(--color-background);
}

/* ========================================
   15. Accessibility & Performance
======================================== */

/* Focus visible para navegación por teclado */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #D73502;
        --color-text: #000000;
        --color-background: #FFFFFF;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Optimización de carga de imágenes */
img {
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

img[loading="lazy"] {
    background: #f0f0f0;
}

/* ========================================
   16. Utilidades
======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

/* Responsive Images */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}