/*
Theme Name: Wound Clinic Theme V3
Theme URI: https://woundclinic.com.co
Author: Wound Clinic
Author URI: https://woundclinic.com.co
Description: Tema oficial y personalizado para Wound Clinic con gestión dinámica de menús desplegables, submenús jerárquicos y motor anti-spam de 5 niveles.
Version: 3.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: woundclinic
*/

/* CSS DESIGN SYSTEM - VANILLA CSS */
        :root {
            --primary-hue: 212;
            --secondary-hue: 174;
            --accent-hue: 28;

            /* Light Palette */
            --bg-base: hsl(var(--primary-hue), 40%, 97%);
            --bg-surface: hsla(0, 0%, 100%, 0.85);
            --bg-surface-solid: hsl(0, 0%, 100%);
            --bg-gradient: linear-gradient(135deg, hsl(var(--primary-hue), 50%, 98%) 0%, hsl(var(--primary-hue), 30%, 94%) 100%);
            
            --primary: hsl(var(--primary-hue), 85%, 26%);
            --primary-light: hsl(var(--primary-hue), 70%, 45%);
            --primary-container: hsl(var(--primary-hue), 80%, 93%);
            
            --secondary: hsl(var(--secondary-hue), 95%, 24%);
            --secondary-light: hsl(var(--secondary-hue), 70%, 40%);
            --secondary-container: hsl(var(--secondary-hue), 80%, 91%);
            
            --accent: hsl(var(--accent-hue), 95%, 43%);
            --accent-container: hsl(var(--accent-hue), 90%, 92%);
            
            --text-main: hsl(var(--primary-hue), 30%, 15%);
            --text-muted: hsl(var(--primary-hue), 15%, 44%);
            --text-light: hsl(var(--primary-hue), 20%, 96%);
            
            --border-color: hsla(var(--primary-hue), 20%, 86%, 0.6);
            --border-hover: hsla(var(--primary-hue), 40%, 75%, 0.8);
            
            --shadow-sm: 0 4px 12px rgba(0, 30, 80, 0.03);
            --shadow-md: 0 10px 30px -5px rgba(0, 30, 80, 0.06), 0 8px 16px -6px rgba(0, 30, 80, 0.04);
            --shadow-lg: 0 20px 40px -10px rgba(0, 30, 80, 0.12), 0 12px 20px -8px rgba(0, 30, 80, 0.08);

            --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            --transition-fast: all 0.2s ease;
        }

        .dark {
            /* Dark Palette */
            --bg-base: hsl(var(--primary-hue), 35%, 7%);
            --bg-surface: hsla(var(--primary-hue), 30%, 12%, 0.8);
            --bg-surface-solid: hsl(var(--primary-hue), 30%, 11%);
            --bg-gradient: linear-gradient(135deg, hsl(var(--primary-hue), 35%, 8%) 0%, hsl(var(--primary-hue), 40%, 4%) 100%);
            
            --primary: hsl(var(--primary-hue), 85%, 72%);
            --primary-light: hsl(var(--primary-hue), 70%, 55%);
            --primary-container: hsl(var(--primary-hue), 40%, 15%);
            
            --secondary: hsl(var(--secondary-hue), 85%, 62%);
            --secondary-light: hsl(var(--secondary-hue), 60%, 48%);
            --secondary-container: hsl(var(--secondary-hue), 50%, 14%);
            
            --accent: hsl(var(--accent-hue), 90%, 65%);
            --accent-container: hsl(var(--accent-hue), 40%, 16%);
            
            --text-main: hsl(var(--primary-hue), 15%, 93%);
            --text-muted: hsl(var(--primary-hue), 10%, 68%);
            --text-light: hsl(var(--primary-hue), 20%, 96%);
            
            --border-color: hsla(var(--primary-hue), 20%, 25%, 0.6);
            --border-hover: hsla(var(--primary-hue), 40%, 40%, 0.8);
            
            --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
            --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
        }

        /* Reset and General Setup */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
            font-family: 'Inter', sans-serif;
            background: var(--bg-base);
            color: var(--text-main);
            transition: background-color 0.4s ease, color 0.4s ease;
        }

        body {
            overflow-x: hidden;
            background: var(--bg-gradient);
            min-height: 100vh;
            line-height: 1.6;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            color: var(--primary);
            line-height: 1.25;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: var(--transition-fast);
        }

        button, input, select, textarea {
            font-family: inherit;
            font-size: inherit;
            color: inherit;
            border: none;
            background: none;
            outline: none;
        }

        /* Layout Utilities */
        .container {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .section-padding {
            padding: 80px 0;
        }

        /* Glassmorphism Backgrounds */
        .glass-panel {
            background: var(--bg-surface);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: var(--shadow-md);
            transition: var(--transition-smooth);
        }

        .glass-panel:hover {
            border-color: var(--border-hover);
            box-shadow: var(--shadow-lg);
        }

        /* Typography Helper Classes */
        .section-title-wrap {
            text-align: center;
            margin-bottom: 48px;
        }

        .section-title {
            font-size: 2.25rem;
            margin-bottom: 8px;
            position: relative;
            display: inline-block;
        }

        .section-subtitle {
            font-size: 1.1rem;
            color: var(--text-muted);
            max-w: 600px;
            margin: 0 auto;
        }

        /* Dynamic Background Blobs */
        .bg-blobs {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            overflow: hidden;
            z-index: -1;
            pointer-events: none;
        }

        .blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(140px);
            opacity: 0.15;
            mix-blend-mode: multiply;
            animation: float-blob 20s infinite alternate ease-in-out;
        }

        .blob-1 {
            width: 500px;
            height: 500px;
            background: var(--primary-light);
            top: 10%;
            left: -100px;
        }

        .blob-2 {
            width: 600px;
            height: 600px;
            background: var(--secondary-light);
            top: 40%;
            right: -200px;
            animation-delay: -5s;
        }

        .blob-3 {
            width: 450px;
            height: 450px;
            background: var(--accent);
            bottom: 10%;
            left: 15%;
            animation-delay: -10s;
        }

        @keyframes float-blob {
            0% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(40px, -50px) scale(1.1); }
            100% { transform: translate(-20px, 30px) scale(0.9); }
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-base);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-light);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary);
        }

        /* Button Premium Styles */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 28px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-smooth);
            text-align: center;
            font-family: 'Outfit', sans-serif;
        }

        .btn-primary {
            background: var(--primary);
            color: var(--text-light);
            box-shadow: 0 4px 14px rgba(var(--primary-hue), 80%, 40%, 0.2);
        }

        .btn-primary:hover {
            background: var(--primary-light);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(var(--primary-hue), 80%, 40%, 0.35);
        }

        .btn-secondary {
            background: var(--secondary-container);
            color: var(--secondary);
            border: 1px solid rgba(var(--secondary-hue), 70%, 40%, 0.15);
        }

        .btn-secondary:hover {
            background: var(--secondary);
            color: white;
            transform: translateY(-2px);
        }

        .btn-outline {
            border: 2px solid var(--primary);
            color: var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: var(--text-light);
            transform: translateY(-2px);
        }

        
        /* Clinic Logo Styles */
        .logo-img {
            height: 48px;
            width: auto;
            object-fit: contain;
            transition: var(--transition-fast);
        }

        .dark .logo-img {
            background-color: rgba(255, 255, 255, 0.95);
            padding: 3px 8px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .footer-logo-img {
            background-color: rgba(255, 255, 255, 0.95);
            padding: 4px 10px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            height: 52px;
            margin-bottom: 20px;
            display: inline-block;
        }
    
        /* ---------------------------------------------------- */
        /* HEADER AND NAVIGATION */
        /* ---------------------------------------------------- */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 100;
            height: 80px;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-b: 1px solid var(--border-color);
            transition: var(--transition-smooth);
        }

        .dark header {
            background: rgba(10, 15, 30, 0.7);
        }

        header.scrolled {
            height: 70px;
            box-shadow: var(--shadow-md);
            background: rgba(255, 255, 255, 0.85);
        }

        .dark header.scrolled {
            background: rgba(10, 15, 30, 0.85);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
        }

        .logo-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }

        .logo-icon {
            font-size: 2.2rem;
            color: var(--primary-light);
        }

        .logo-text {
            font-size: 1.6rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-light) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 24px;
            align-items: center;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            font-weight: 500;
            color: var(--text-muted);
            padding: 8px 12px;
            border-radius: 8px;
            transition: var(--transition-fast);
            cursor: pointer;
        }

        .nav-link:hover, .nav-link.active {
            color: var(--primary);
            background: var(--primary-container);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .theme-toggle {
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--primary-container);
            color: var(--primary);
            transition: var(--transition-smooth);
        }

        .theme-toggle:hover {
            transform: scale(1.1);
        }

        .menu-toggle {
            display: none;
            cursor: pointer;
            font-size: 1.8rem;
            color: var(--text-main);
        }

        /* ---------------------------------------------------- */
        /* MAIN BODY WRAPPER AND TABS SYSTEM */
        /* ---------------------------------------------------- */
        main {
            padding-top: 80px;
        }

        .tab-content {
            display: none;
            animation: fadeInTab 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeInTab {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ---------------------------------------------------- */
        /* TAB: INICIO (HOME) */
        /* ---------------------------------------------------- */
        .hero {
            position: relative;
            padding: 60px 0;
            display: flex;
            align-items: center;
            min-height: calc(85vh - 80px);
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 48px;
            align-items: center;
        }

        .hero-tagline {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 16px;
            border-radius: 50px;
            background: var(--secondary-container);
            color: var(--secondary-light);
            font-weight: 600;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 24px;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 24px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary-light) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -1.5px;
        }

        .hero-desc {
            font-size: 1.15rem;
            color: var(--text-muted);
            margin-bottom: 36px;
            max-width: 580px;
        }

        .hero-btns {
            display: flex;
            gap: 16px;
        }

        .hero-illustration {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
        }

        /* Medical Illustration Concept */
        .clinical-art-box {
            position: relative;
            width: 100%;
            max-width: 420px;
            height: 420px;
            background: linear-gradient(135deg, var(--primary-container) 0%, var(--secondary-container) 100%);
            border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
            animation: blob-morph 10s infinite alternate ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-lg);
        }

        @keyframes blob-morph {
            0% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; }
            50% { border-radius: 40% 60% 40% 60% / 50% 40% 60% 50%; }
            100% { border-radius: 60% 40% 50% 50% / 40% 50% 50% 60%; }
        }

        .floating-badge {
            position: absolute;
            z-index: 2;
            background: var(--bg-surface);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 16px;
            box-shadow: var(--shadow-md);
            display: flex;
            align-items: center;
            gap: 12px;
            animation: float-badge 6s infinite ease-in-out;
        }

        .badge-1 {
            top: 10%;
            right: -20px;
            animation-delay: 0s;
        }

        .badge-2 {
            bottom: 15%;
            left: -40px;
            animation-delay: -3s;
        }

        @keyframes float-badge {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-12px); }
        }

        .badge-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--secondary-container);
            color: var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .badge-info h4 {
            font-size: 0.95rem;
            font-weight: 700;
        }

        .badge-info p {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        /* Convenios */
        .convenios-section {
            padding: 30px 0;
            background: hsla(var(--primary-hue), 20%, 93%, 0.4);
            border-y: 1px solid var(--border-color);
        }

        .dark .convenios-section {
            background: hsla(var(--primary-hue), 30%, 10%, 0.4);
        }

        .convenios-title {
            text-align: center;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--text-muted);
            margin-bottom: 20px;
        }

        .convenios-grid {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 40px 60px;
            opacity: 0.7;
        }

        .convenio-logo {
            font-weight: 800;
            font-size: 1.3rem;
            color: var(--primary-light);
            letter-spacing: -0.5px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Stats Grid */
        .stats-section {
            padding: 60px 0;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
        }

        .stat-card {
            padding: 24px;
            text-align: center;
        }

        .stat-num {
            font-size: 3rem;
            font-weight: 800;
            color: var(--primary-light);
            margin-bottom: 4px;
            font-family: 'Outfit', sans-serif;
        }

        .stat-label {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-muted);
        }

        /* Ruta de Atencion */
        .ruta-section {
            background: hsla(var(--primary-hue), 10%, 95%, 0.3);
            border-top: 1px solid var(--border-color);
        }

        .ruta-flow {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
            position: relative;
            margin-top: 60px;
        }

        .ruta-flow::after {
            content: '';
            position: absolute;
            top: 40px;
            left: 10%;
            width: 80%;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-container) 0%, var(--secondary-container) 100%);
            z-index: 0;
        }

        .ruta-step {
            position: relative;
            z-index: 1;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .step-num {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--bg-surface-solid);
            border: 4px solid var(--primary-light);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 20px;
            box-shadow: var(--shadow-md);
            transition: var(--transition-smooth);
        }

        .ruta-step:hover .step-num {
            transform: scale(1.1);
            background: var(--primary-light);
            color: var(--text-light);
            border-color: var(--secondary-light);
        }

        .ruta-step h3 {
            margin-bottom: 8px;
            font-size: 1.3rem;
        }

        .ruta-step p {
            font-size: 0.9rem;
            color: var(--text-muted);
            max-width: 240px;
        }

        

        /* ---------------------------------------------------- */
        /* TAB: NOSOTROS (ABOUT) */
        /* ---------------------------------------------------- */
        .nosotros-main {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 60px;
            align-items: center;
            margin-bottom: 60px;
        }

        .nosotros-title-badge {
            display: inline-block;
            background: var(--primary-container);
            color: var(--primary);
            padding: 6px 14px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 16px;
        }

        .nosotros-text p {
            margin-bottom: 20px;
            font-size: 1.05rem;
            color: var(--text-muted);
            text-align: justify;
        }

        .nosotros-cards {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
        }

        .nosotros-detail-card {
            padding: 30px;
            position: relative;
            overflow: hidden;
        }

        .card-header-with-icon {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
        }

        .card-icon-wrap {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            background: var(--primary-container);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .card-icon-wrap span {
            font-size: 1.8rem;
        }

        .values-section {
            background: hsla(var(--primary-hue), 20%, 93%, 0.3);
            padding: 80px 0;
            border-y: 1px solid var(--border-color);
        }

        .values-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
        }

        .value-card-container {
            perspective: 1000px;
            height: 250px;
        }

        .value-card {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
            cursor: pointer;
        }

        .value-card-container:hover .value-card {
            transform: rotateY(180deg);
        }

        .value-front, .value-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 24px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
        }

        .value-front {
            background: var(--bg-surface-solid);
            color: var(--primary);
        }

        .value-front span {
            font-size: 3rem;
            margin-bottom: 16px;
            color: var(--secondary-light);
        }

        .value-front h3 {
            font-size: 1.4rem;
        }

        .value-back {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: var(--text-light);
            transform: rotateY(180deg);
            text-align: center;
        }

        .value-back h3 {
            color: var(--text-light);
            margin-bottom: 8px;
            font-size: 1.25rem;
        }

        .value-back p {
            font-size: 0.9rem;
            line-height: 1.5;
        }

        /* ---------------------------------------------------- */
        /* TAB: SERVICIOS */
        /* ---------------------------------------------------- */
        .services-search-bar {
            display: flex;
            max-width: 600px;
            margin: 0 auto 40px auto;
            gap: 12px;
        }

        .search-input-wrap {
            position: relative;
            flex-grow: 1;
        }

        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
        }

        .search-input {
            width: 100%;
            padding: 16px 16px 16px 48px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background: var(--bg-surface);
            box-shadow: var(--shadow-sm);
            transition: var(--transition-smooth);
        }

        .search-input:focus {
            border-color: var(--primary-light);
            box-shadow: var(--shadow-md);
            background: var(--bg-surface-solid);
        }

        .services-tabs {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 40px;
        }

        .srv-tab {
            padding: 10px 24px;
            border-radius: 30px;
            font-weight: 600;
            background: var(--bg-surface);
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: var(--transition-fast);
        }

        .srv-tab.active, .srv-tab:hover {
            background: var(--primary);
            color: var(--text-light);
            border-color: var(--primary);
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

        .service-card {
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
        }

        .srv-icon-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .srv-icon {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            background: var(--primary-container);
            color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .srv-icon span {
            font-size: 2.2rem;
        }

        .srv-badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            background: var(--secondary-container);
            color: var(--secondary-light);
        }

        .srv-desc {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin-bottom: 24px;
            flex-grow: 1;
        }

        .service-card h3 {
            font-size: 1.35rem;
            margin-bottom: 12px;
        }

        .btn-text-icon {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--primary-light);
            font-weight: 700;
            cursor: pointer;
        }

        .btn-text-icon:hover {
            color: var(--primary);
        }

        /* Modals and Overlays */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 10, 30, 0.5);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 200;
            opacity: 0;
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition-smooth);
        }

        .modal-overlay.active {
            opacity: 1;
            pointer-events: all;
        }

        .srv-modal {
        max-width: 800px; /* Ajustado para visualizacion premium en cuadricula */
        width: 90%;
        padding: 40px;
        position: relative;
        transform: scale(0.9);
        transition: var(--transition-smooth);
    }

        .modal-overlay.active .srv-modal {
            transform: scale(1);
        }

        .modal-close {
            position: absolute;
            top: 24px;
            right: 24px;
            font-size: 1.8rem;
            cursor: pointer;
            color: var(--text-muted);
        }

        .modal-close:hover {
            color: var(--primary);
        }

        .modal-body h3 {
            font-size: 1.8rem;
            margin-bottom: 16px;
        }

        .modal-body p {
            color: var(--text-muted);
            margin-bottom: 20px;
            font-size: 1.05rem;
        }

        .modal-body ul {
            list-style: none;
            margin-top: 16px;
        }

        .modal-body li {
            position: relative;
            padding-left: 28px;
            margin-bottom: 10px;
            font-size: 0.95rem;
        }

        .modal-body li::before {
            content: 'check_circle';
            font-family: 'Material Symbols Outlined';
            position: absolute;
            left: 0;
            top: 0;
            color: var(--secondary-light);
            font-size: 1.25rem;
        }

        /* ---------------------------------------------------- */
        /* TAB: DERECHOS Y DEBERES (PPSS) */
        /* ---------------------------------------------------- */
        .legal-tabs {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-bottom: 40px;
        }

        .legal-btn {
            font-size: 1.2rem;
            font-weight: 700;
            padding: 12px 30px;
            border-radius: 12px;
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .legal-btn.active {
            background: var(--primary);
            color: var(--text-light);
            box-shadow: var(--shadow-md);
        }

        .legal-panel {
            display: none;
            animation: fadeInTab 0.5s ease forwards;
        }

        .legal-panel.active {
            display: block;
        }

        .legal-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }

        .legal-card {
            padding: 24px;
            display: flex;
            gap: 16px;
            align-items: flex-start;
        }

        .legal-num {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary-container);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            flex-shrink: 0;
        }

        .legal-card h4 {
            font-size: 1.1rem;
            margin-bottom: 6px;
        }

        .legal-card p {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .resolution-banner {
            margin-top: 48px;
            padding: 30px;
            text-align: center;
        }

        .resolution-banner span {
            font-size: 2.2rem;
            color: var(--primary);
            margin-bottom: 12px;
        }

        .resolution-banner p {
            max-width: 700px;
            margin: 0 auto;
            color: var(--text-muted);
        }

        /* ---------------------------------------------------- */
        /* TAB: PAGOS (PAYMENTS) */
        /* ---------------------------------------------------- */
        .payment-container {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 48px;
            align-items: flex-start;
        }

        .payment-form-box {
            padding: 40px;
        }

        .payment-form-box h3 {
            font-size: 1.6rem;
            margin-bottom: 24px;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .form-full {
            grid-column: span 2;
        }

        .input-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .input-group label {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-muted);
        }

        .form-control {
            width: 100%;
            padding: 12px 16px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            background: var(--bg-base);
            transition: var(--transition-fast);
        }

        .form-control:focus {
            border-color: var(--primary-light);
            background: var(--bg-surface-solid);
            box-shadow: 0 0 0 3px rgba(var(--primary-hue), 80%, 40%, 0.1);
        }

        .card-view-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
            position: sticky;
            top: 110px;
        }

        /* Card mockup visual */
        .card-visual {
            width: 350px;
            height: 210px;
            border-radius: 16px;
            background: linear-gradient(135deg, hsl(var(--primary-hue), 80%, 35%) 0%, hsl(var(--secondary-hue), 90%, 30%) 100%);
            box-shadow: var(--shadow-lg);
            padding: 24px;
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        .card-visual::before {
            content: '';
            position: absolute;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            top: -100px;
            right: -100px;
        }

        .card-visual-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .card-chip {
            width: 45px;
            height: 35px;
            background: linear-gradient(135deg, #f0d060 0%, #d0a020 100%);
            border-radius: 6px;
        }

        .card-type-logo {
            font-size: 1.8rem;
            font-weight: 800;
            font-style: italic;
        }

        .card-number-visual {
            font-family: monospace;
            font-size: 1.4rem;
            letter-spacing: 2px;
            word-spacing: 4px;
            margin: 12px 0;
        }

        .card-visual-bottom {
            display: flex;
            justify-content: space-between;
        }

        .card-label {
            font-size: 0.65rem;
            text-transform: uppercase;
            opacity: 0.7;
            margin-bottom: 2px;
        }

        .card-val {
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        /* Receipt block */
        .receipt-summary {
            width: 100%;
            padding: 24px;
        }

        .receipt-summary h4 {
            font-size: 1.2rem;
            margin-bottom: 16px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 10px;
        }

        .receipt-line {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 0.95rem;
        }

        .receipt-total {
            font-weight: 700;
            font-size: 1.15rem;
            color: var(--primary);
            border-top: 1px solid var(--border-color);
            padding-top: 10px;
            margin-top: 10px;
        }

        /* ---------------------------------------------------- */
        /* TAB: CONTACTO */
        /* ---------------------------------------------------- */
        .contact-grid {
            display: grid;
            grid-template-columns: 0.8fr 1.2fr;
            gap: 48px;
            align-items: flex-start;
        }

        .contact-info-panel {
            padding: 40px;
        }

        .contact-info-panel h3 {
            font-size: 1.6rem;
            margin-bottom: 24px;
        }

        .city-select-box {
            margin-bottom: 30px;
        }

        .city-select-box label {
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 8px;
            display: block;
        }

        .city-dropdown {
            width: 100%;
            padding: 14px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            background: var(--bg-base);
            cursor: pointer;
            font-weight: 600;
        }

        .sede-detail-card {
            display: none;
            animation: fadeInTab 0.4s ease forwards;
        }

        .sede-detail-card.active {
            display: block;
        }

        .sede-info-line {
            display: flex;
            gap: 16px;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        .sede-info-line span {
            color: var(--primary-light);
            font-size: 1.6rem;
            margin-top: 2px;
        }

        .sede-info-line h4 {
            font-size: 1rem;
            margin-bottom: 2px;
        }

        .sede-info-line p {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .contact-channels {
            margin-top: 36px;
            border-top: 1px solid var(--border-color);
            padding-top: 24px;
        }

        .contact-channels h4 {
            font-size: 1.1rem;
            margin-bottom: 16px;
        }

        .channel-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            font-size: 0.95rem;
        }

        .channel-name {
            font-weight: 500;
            color: var(--text-muted);
        }

        .channel-value {
            font-weight: 700;
            color: var(--primary);
        }

        .contact-form-box {
            padding: 40px;
        }

        .contact-form-box h3 {
            font-size: 1.6rem;
            margin-bottom: 24px;
        }

        /* Leaflet Map Mockup styling */
        .map-mockup {
            width: 100%;
            height: 220px;
            background: #e0f0f5;
            margin-top: 24px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .dark .map-mockup {
            background: #152230;
        }

        .map-grid-lines {
            position: absolute;
            width: 100%;
            height: 100%;
            background-size: 30px 30px;
            background-image: 
                linear-gradient(to right, rgba(0, 100, 150, 0.05) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(0, 100, 150, 0.05) 1px, transparent 1px);
        }

        .dark .map-grid-lines {
            background-image: 
                linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        }

        .map-pin {
            font-size: 3rem;
            color: var(--accent);
            animation: bounce-pin 2s infinite ease-in-out;
            position: relative;
            z-index: 2;
        }

        .map-label {
            position: absolute;
            bottom: 20px;
            background: var(--bg-surface-solid);
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 700;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border-color);
            z-index: 2;
        }

        @keyframes bounce-pin {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        /* ---------------------------------------------------- */
        /* FOOTER */
        /* ---------------------------------------------------- */
        footer {
            background: hsl(var(--primary-hue), 85%, 12%);
            color: #d1d5db;
            padding: 60px 0 30px 0;
            font-size: 0.9rem;
            border-top: 1px solid var(--border-color);
        }

        .dark footer {
            background: hsl(var(--primary-hue), 40%, 4%);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-logo h3 {
            color: white;
            font-size: 1.6rem;
            margin-bottom: 16px;
        }

        .footer-desc {
            color: #9ca3af;
            margin-bottom: 20px;
            max-width: 280px;
        }

        .footer-socials {
            display: flex;
            gap: 16px;
        }

        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: var(--transition-fast);
        }

        .social-link:hover {
            background: var(--primary-light);
            color: white;
            transform: translateY(-2px);
        }

        .footer-col h4 {
            color: white;
            font-size: 1.1rem;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .footer-links a:hover {
            color: var(--secondary-light);
            padding-left: 4px;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            color: #9ca3af;
            font-size: 0.8rem;
        }

        .footer-bottom-links {
            display: flex;
            gap: 24px;
        }

        /* Float Buttons */
        .float-buttons {
            position: fixed;
            bottom: 30px;
            right: 30px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 90;
        }

        .float-btn {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            box-shadow: var(--shadow-lg);
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .float-btn:hover {
            transform: scale(1.1) translateY(-4px);
        }

        .float-wp {
            background: #25d366;
        }

        .float-wp span {
            font-size: 2.2rem;
        }

        /* ---------------------------------------------------- */
        /* RESPONSIVE STYLES */
        /* ---------------------------------------------------- */
        @media (max-width: 1024px) {
            .hero-grid {
                grid-template-columns: 1fr;
                gap: 40px;
                text-align: center;
            }

            .hero-tagline {
                justify-content: center;
            }

            .hero-desc {
                margin-left: auto;
                margin-right: auto;
            }

            .hero-btns {
                justify-content: center;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .nosotros-main {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .values-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .services-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .legal-grid {
                grid-template-columns: 1fr;
            }

            .payment-container {
                grid-template-columns: 1fr;
            }

            .card-view-box {
                position: static;
            }

            .contact-grid {
                grid-template-columns: 1fr;
            }

            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .nav-menu {
                display: none;
                position: absolute;
                top: 80px;
                left: 0;
                width: 100%;
                background: var(--bg-surface-solid);
                flex-direction: column;
                padding: 20px;
                border-bottom: 1px solid var(--border-color);
                box-shadow: var(--shadow-md);
                gap: 16px;
            }

            header.scrolled .nav-menu {
                top: 70px;
            }

            .nav-menu.active {
                display: flex;
            }

            .menu-toggle {
                display: block;
            }

            .hero-title {
                font-size: 2.5rem;
            }

            .ruta-flow {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .ruta-flow::after {
                display: none;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .values-grid {
                grid-template-columns: 1fr;
            }

            .services-grid {
                grid-template-columns: 1fr;
            }

            .footer-grid {
                grid-template-columns: 1fr;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }
        }
    
        /* NAV MENÚ INDICATOR */
        .nav-menu {
            position: relative;
        }
        
        .nav-indicator {
            position: absolute;
            bottom: -6px;
            left: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-light) 0%, var(--secondary-light) 100%);
            border-radius: 3px;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
            opacity: 0;
            z-index: 10;
        }
        
        @media (max-width: 991px) {
            .nav-indicator {
                display: none;
            }
        }
        
        /* CTA HERO ENHANCEMENT */
        .btn-cta-large {
            padding: 14px 28px !important;
            font-size: 1.05rem !important;
            font-weight: 700 !important;
            box-shadow: 0 8px 20px rgba(var(--primary-hue), 85%, 26%, 0.25) !important;
            transform: translateY(0);
            transition: var(--transition-fast) !important;
        }
        .btn-cta-large:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 24px rgba(var(--primary-hue), 85%, 26%, 0.35) !important;
        }
        
        .btn-secondary-large {
            padding: 14px 28px !important;
            font-size: 1.05rem !important;
        }
        
        /* HEADER CTA BUTTON HIGHLIGHT */
        .nav-actions .btn-primary {
            background: linear-gradient(135deg, var(--secondary-light) 0%, var(--primary-light) 100%) !important;
            box-shadow: 0 4px 10px rgba(var(--secondary-hue), 70%, 40%, 0.2) !important;
            font-weight: 700;
            border: none !important;
        }
        .nav-actions .btn-primary:hover {
            box-shadow: 0 6px 15px rgba(var(--secondary-hue), 70%, 40%, 0.35) !important;
        }
        
        /* MODAL STRUCTURED GRID */
        .modal-header-desc {
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 16px;
            margin-bottom: 20px;
        }
        .modal-header-desc h3 {
            font-size: 1.9rem;
            margin-bottom: 10px;
            color: var(--primary);
        }
        .modal-header-desc p {
            font-size: 1rem;
            line-height: 1.5;
            color: var(--text-muted);
            margin: 0;
        }
        
        .modal-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 28px;
            text-align: left;
        }
        
        .modal-subtitle {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--primary-light);
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .modal-bullet-list {
            list-style: none;
            padding: 0 !important;
            margin: 0 !important;
        }
        .modal-bullet-list li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 12px;
            font-size: 0.95rem;
            line-height: 1.5;
            padding-left: 0 !important;
        }
        .modal-bullet-list li::before {
            display: none !important; /* Hide previous check_circle */
        }
        .modal-bullet-list li span.bullet-icon {
            color: var(--secondary-light);
            font-size: 1.3rem;
            flex-shrink: 0;
            margin-top: 1px;
        }
        
        .modal-info-card {
            padding: 20px;
            border-radius: 16px;
            margin-bottom: 16px;
            background: var(--bg-surface);
            border: 1px solid var(--border-color);
        }
        .modal-info-card:last-child {
            margin-bottom: 0;
        }
        .modal-card-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 8px;
        }
        .modal-info-card p {
            margin: 0;
            font-size: 0.88rem;
            line-height: 1.5;
            color: var(--text-muted);
        }
        
        @media (max-width: 768px) {
            .modal-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }
    
    
        /* FAQ Accordion Styles */
        .faq-section {
            padding: 80px 0;
            background: var(--bg-gradient);
            border-top: 1px solid var(--border-color);
        }
        
        .faq-accordion {
            max-width: 800px;
            margin: 40px auto 0 auto;
            display: flex;
            flex-direction: column;
            gap: 16px;
            text-align: left;
        }
        
        .faq-item {
            border-radius: 16px;
            overflow: hidden;
            transition: var(--transition-smooth);
            cursor: pointer;
            border: 1px solid var(--border-color);
        }
        
        .faq-question {
            padding: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            user-select: none;
        }
        
        .faq-question h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-main);
            margin: 0;
            padding-right: 16px;
        }
        
        .faq-icon {
            font-size: 1.6rem;
            color: var(--primary-light);
            transition: var(--transition-smooth);
            flex-shrink: 0;
        }
        
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            padding: 0 24px;
        }
        
        .faq-answer p {
            margin: 0;
            padding-bottom: 24px;
            font-size: 0.95rem;
            line-height: 1.6;
            color: var(--text-muted);
        }
        
        .faq-item.active {
            border-color: var(--border-hover);
            box-shadow: var(--shadow-md);
        }
        
        .faq-item.active .faq-icon {
            transform: rotate(180deg);
            color: var(--secondary-light);
        }

        /* Scroll to Top Button */
        .scroll-to-top {
            position: fixed;
            bottom: 100px; /* Placed above the WhatsApp icon */
            right: 30px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 150;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-md);
        }
        .scroll-to-top.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .scroll-to-top:hover {
            background: var(--primary-container);
            color: var(--primary-light);
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }

        /* Card Shimmer / Reflection Effect */
        .service-card, .nosotros-detail-card {
            position: relative;
            overflow: hidden;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
        }
        
        .service-card::after, .nosotros-detail-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: -150%;
            width: 50%;
            height: 100%;
            background: linear-gradient(
                to right,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.25) 50%,
                rgba(255, 255, 255, 0) 100%
            );
            transform: skewX(-25deg);
            transition: 0.75s;
            pointer-events: none;
            z-index: 5;
        }
        
        .service-card:hover::after, .nosotros-detail-card:hover::after {
            left: 150%;
        }
        
        .service-card:hover, .nosotros-detail-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-lg);
            border-color: var(--border-hover);
        }
    
    

.footer-logo { text-align: center; }
@media (min-width: 768px) {
    .footer-logo { text-align: left; justify-content: flex-start !important; }
}

/* Custom Auth Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}
.auth-modal-content {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 30, 80, 0.1);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 45px -10px rgba(0, 30, 80, 0.2);
    position: relative;
}
.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main, #1e293b);
}
.auth-hidden {
    display: none !important;
}

/* =========================================================
   DROPDOWN & SUBMENU NAVIGATION - FONDO BLANCO SÓLIDO (100% OPACO)
   ========================================================= */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff !important;
    background-color: #ffffff !important;
    min-width: 260px;
    box-shadow: 0 14px 35px -5px rgba(0, 30, 80, 0.15), 0 8px 16px -6px rgba(0, 30, 80, 0.1) !important;
    border-radius: 14px !important;
    z-index: 1050;
    border: 1px solid rgba(0, 30, 80, 0.08) !important;
    padding: 10px 0;
    margin-top: 4px;
}

.nav-dropdown-content a {
    color: var(--text-main, #1e293b) !important;
    padding: 11px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-dropdown-content a:hover {
    background-color: var(--primary-container, #e0f2fe) !important;
    color: var(--primary, #0369a1) !important;
}

.nav-dropdown:hover > .nav-dropdown-content,
.nav-dropdown:focus-within > .nav-dropdown-content {
    display: block;
}

/* Submenu Styles - Fondo Blanco Sólido */
.nav-dropdown-submenu {
    position: relative;
}

.nav-dropdown-submenu > a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.nav-dropdown-submenu::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -25px;
    bottom: -15px;
    left: 0;
    z-index: 1;
}

.nav-dropdown-submenu-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #ffffff !important;
    background-color: #ffffff !important;
    min-width: 260px;
    box-shadow: 0 14px 35px -5px rgba(0, 30, 80, 0.15), 0 8px 16px -6px rgba(0, 30, 80, 0.1) !important;
    border-radius: 14px !important;
    z-index: 1100;
    border: 1px solid rgba(0, 30, 80, 0.08) !important;
    padding: 10px 0;
    margin-left: 2px;
}

.nav-dropdown-submenu-content a {
    color: var(--text-main, #1e293b) !important;
    padding: 11px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-dropdown-submenu-content a:hover {
    background-color: var(--primary-container, #e0f2fe) !important;
    color: var(--primary, #0369a1) !important;
}

.nav-dropdown-submenu:hover > .nav-dropdown-submenu-content {
    display: block;
}

/* Modo Oscuro (si se activa) */
.dark .nav-dropdown-content,
.dark .nav-dropdown-submenu-content {
    background: #111d2e !important;
    background-color: #111d2e !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.dark .nav-dropdown-content a,
.dark .nav-dropdown-submenu-content a {
    color: #e2e8f0 !important;
}

.dark .nav-dropdown-content a:hover,
.dark .nav-dropdown-submenu-content a:hover {
    background-color: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .nav-dropdown-content {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        background-color: transparent !important;
        padding-left: 15px;
    }
    .nav-dropdown-submenu-content {
        position: static !important;
        left: 0 !important;
        min-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 15px;
        background: transparent !important;
        background-color: transparent !important;
        margin-top: 5px;
    }
}
