/**
 * FUDECA 2026 - Estilos Principales
 * Glassmorphism + Modo Oscuro + Animaciones modernas
 * 
 * Desarrollo: Acuciante Design
 * Web: www.acuciante.design
 * 
 * Paleta de colores:
 * - Primario (Azul Cielo): #4AABE3
 * - Secundario (Verde): #5CB85C
 * - Oscuro (Azul Profundo): #2B7CB3
 * - Acento: #E67E22
 */

/* ================================================
   CSS VARIABLES / CUSTOM PROPERTIES
   ================================================ */
:root {
    /* Colores principales */
    --color-primary: #4AABE3;
    --color-primary-dark: #2B7CB3;
    --color-primary-light: #7DC4ED;
    --color-secondary: #5CB85C;
    --color-secondary-dark: #449D44;
    --color-accent: #E67E22;
    
    /* Colores de texto */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    
    /* Fondos */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-bg-dark: #1A1A2E;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: blur(12px);
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Bordes */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Tipografía */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', var(--font-sans);
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* Modo Oscuro */
[data-theme="dark"] {
    --color-text: #E5E7EB;
    --color-text-light: #9CA3AF;
    --color-text-muted: #6B7280;
    
    --color-bg: #0F172A;
    --color-bg-alt: #1E293B;
    --color-bg-dark: #020617;
    
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(74, 171, 227, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(92, 184, 92, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(43, 124, 179, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

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

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

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

p {
    margin-bottom: var(--spacing-md);
}

ul, ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-sm);
}

/* ================================================
   LAYOUT
   ================================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-sm { max-width: 768px; }
.container-lg { max-width: 1440px; }

.section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-top: var(--spacing-lg);
}

/* ================================================
   GLASSMORPHISM COMPONENTS
   ================================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    padding: var(--spacing-xl);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* ================================================
   HEADER / NAVIGATION
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.header.scrolled .header-inner {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .header.scrolled .header-inner {
    background: rgba(15, 23, 42, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-normal);
}

/* Logo switching for light/dark mode */
.logo-dark {
    display: none;
}

.logo-light {
    display: block;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

[data-theme="dark"] .logo-light {
    display: none;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary-dark);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    margin: 0;
}

/* Ocultar iconos sociales en desktop */
.nav-social-links {
    display: none;
}

.nav-item {
    position: relative;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateY(-50%) scaleY(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(74, 171, 227, 0.1);
    padding-left: calc(var(--spacing-md) + 8px);
}

.nav-link i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: var(--spacing-sm);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    list-style: none;
    margin: 0;
    z-index: 1000;
}

[data-theme="dark"] .nav-dropdown {
    background: #1e293b;
}

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

.nav-dropdown li {
    margin: 0;
}

.nav-dropdown a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: #334155;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-weight: 400;
    position: relative;
}

[data-theme="dark"] .nav-dropdown a {
    color: #e2e8f0;
}

.nav-dropdown a:hover {
    color: var(--color-primary);
    background: rgba(74, 171, 227, 0.1);
    padding-left: calc(var(--spacing-md) + 8px);
}

.nav-dropdown a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
}

.nav-dropdown a:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* Submenu (tercer nivel) */
.nav-dropdown li.has-submenu {
    position: relative;
}

.nav-dropdown li.has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-dropdown li.has-submenu > a .submenu-icon {
    font-size: 0.7rem;
    margin-left: auto;
    opacity: 0.6;
    transition: transform var(--transition-fast);
}

.nav-dropdown li.has-submenu:hover > a .submenu-icon {
    transform: translateX(3px);
    opacity: 1;
}

.nav-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    padding: var(--spacing-sm);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all var(--transition-normal);
    list-style: none;
    margin: 0;
    z-index: 1001;
}

[data-theme="dark"] .nav-submenu {
    background: #1e293b;
}

.nav-dropdown li.has-submenu:hover > .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-submenu li {
    margin: 0;
}

.nav-submenu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: #334155;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-weight: 400;
    font-size: 0.9rem;
}

[data-theme="dark"] .nav-submenu a {
    color: #e2e8f0;
}

.nav-submenu a:hover {
    color: var(--color-secondary);
    background: rgba(52, 211, 153, 0.1);
    padding-left: calc(var(--spacing-md) + 5px);
}

/* Search Box */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--color-text);
}

.search-toggle:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.search-box {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.search-box.active {
    width: 320px;
    opacity: 1;
    right: 50px;
}

.search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    padding: 6px;
    box-shadow: 0 8px 32px rgba(74, 171, 227, 0.25);
}

[data-theme="dark"] .search-form {
    background: #1e293b;
    border-color: var(--color-primary);
    box-shadow: 0 8px 32px rgba(74, 171, 227, 0.3);
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 0.95rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-light);
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-submit:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

/* Search Results AJAX */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results-list {
    list-style: none;
    padding: 8px;
    margin: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.15s ease;
}

.search-result-item:hover {
    background: var(--color-bg);
}

.search-result-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--color-bg);
}

.search-result-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-size: 1.2rem;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-excerpt {
    font-size: 0.8rem;
    color: var(--color-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.search-result-type {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
}

.search-result-type.noticia {
    background: var(--color-primary);
    color: white;
}

.search-result-type.pagina {
    background: var(--color-secondary);
    color: white;
}

.search-result-date {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--color-text-light);
}

.search-no-results i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.search-loading {
    padding: 20px;
    text-align: center;
}

.search-loading i {
    font-size: 1.5rem;
    color: var(--color-primary);
    animation: spin 1s linear infinite;
}

.search-view-all {
    display: block;
    padding: 12px;
    text-align: center;
    background: var(--color-bg);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: all 0.15s ease;
}

.search-view-all:hover {
    background: var(--color-primary);
    color: white;
}

[data-theme="dark"] .search-results {
    background: var(--color-surface);
    border: 1px solid var(--glass-border);
}

[data-theme="dark"] .search-form {
    background: rgba(30, 41, 59, 0.95);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    background: var(--color-primary);
    color: white;
    transform: rotate(180deg);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--color-text);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .theme-toggle i {
    color: #FFD93D;
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--color-primary);
}

[data-theme="dark"] .theme-toggle:hover i {
    color: white;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

/* ================================================
   HACEMOS FUDECA - Logos Section
   ================================================ */
.hacemos-section {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg);
}

.hacemos-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xl);
}

.hacemos-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-md) 0;
}

.hacemos-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    background: #ffffff !important;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 130px;
    min-width: 300px;
}

.hacemos-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.hacemos-logo img {
    max-height: 90px;
    max-width: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all var(--transition-normal);
}

/* Animación secuencial de logos - 6 logos, cada uno se agranda 1.15x */
.hacemos-logo:nth-child(1) img {
    animation: logoPulse 6s ease-in-out infinite;
    animation-delay: 0s;
}

.hacemos-logo:nth-child(2) img {
    animation: logoPulse 6s ease-in-out infinite;
    animation-delay: 1s;
}

.hacemos-logo:nth-child(3) img {
    animation: logoPulse 6s ease-in-out infinite;
    animation-delay: 2s;
}

.hacemos-logo:nth-child(4) img {
    animation: logoPulse 6s ease-in-out infinite;
    animation-delay: 3s;
}

.hacemos-logo:nth-child(5) img {
    animation: logoPulse 6s ease-in-out infinite;
    animation-delay: 4s;
    max-height: 90px;
    max-width: 300px;
}

.hacemos-logo:nth-child(6) img {
    animation: logoPulse 6s ease-in-out infinite;
    animation-delay: 5s;
}

@keyframes logoPulse {
    0%, 15%, 100% {
        transform: scale(1);
    }
    5%, 10% {
        transform: scale(1.1);
    }
}

.hacemos-logo:hover img {
    transform: scale(1.15) !important;
}

@media (max-width: 768px) {
    .hacemos-logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        justify-items: center;
    }
    
    .hacemos-logo {
        min-width: unset;
        width: 100%;
        height: 100px;
        padding: var(--spacing-md);
    }
    
    .hacemos-logo img {
        max-height: 60px;
        max-width: 100%;
    }
    
    .hacemos-title {
        font-size: 1.5rem;
    }
    
    /* Mantener animación más visible en mobile */
    @keyframes logoPulse {
        0%, 15%, 100% {
            transform: scale(1);
        }
        5%, 10% {
            transform: scale(1.1);
        }
    }
    
    /* Ocultar elementos en mobile */
    .hide-mobile {
        display: none !important;
    }
}

/* ================================================
   HERO SECTION - Split Design 50/50
   ================================================ */
.hero-split {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: hidden;
    overflow-y: visible;
    background: #ffffff;
}

/* Fondo con puntos animados */
.hero-dots-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.dots-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(circle, rgba(74, 171, 227, 0.35) 2px, transparent 2px);
    background-size: 28px 28px;
    background-position: 0 0;
    animation: dotsFloat 40s linear infinite, dotsPulse 6s ease-in-out infinite;
}

@keyframes dotsFloat {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 56px 56px;
    }
}

@keyframes dotsPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Lado de la imagen */
.hero-image-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: var(--spacing-2xl);
    /* Evitar que las animaciones se corten */
    overflow: visible;
}

.hero-image-container {
    position: relative;
    max-width: 100%;
}

/* Hero con capas animadas */
.hero-layers-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 1 / 1;
    /* Espacio para animaciones que salen del contenedor */
    overflow: visible;
    padding: 20px;
    margin: -20px;
}

.hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Capa 1 - Fondo base (sin animación, aparece primero) */
.hero-layer-1 {
    z-index: 1;
    opacity: 0;
    animation: layerFadeIn 0.8s ease-out 0.2s forwards;
}

/* Capa 2 */
.hero-layer-2 {
    z-index: 2;
    opacity: 0;
    animation: 
        layerFadeIn 0.8s ease-out 0.5s forwards,
        layerPulse1 4s ease-in-out 1.3s infinite;
}

/* Capa 3 */
.hero-layer-3 {
    z-index: 3;
    opacity: 0;
    animation: 
        layerFadeIn 0.8s ease-out 0.8s forwards,
        layerPulse2 5s ease-in-out 1.6s infinite;
}

/* Capa 4 */
.hero-layer-4 {
    z-index: 4;
    opacity: 0;
    animation: 
        layerFadeIn 0.8s ease-out 1.1s forwards,
        layerPulse3 4.5s ease-in-out 1.9s infinite;
}

/* Capa 5 */
.hero-layer-5 {
    z-index: 5;
    opacity: 0;
    animation: 
        layerFadeIn 0.8s ease-out 1.4s forwards,
        layerPulse4 5.5s ease-in-out 2.2s infinite;
}

/* Capa 6 */
.hero-layer-6 {
    z-index: 6;
    opacity: 0;
    animation: 
        layerFadeIn 0.8s ease-out 1.6s forwards,
        layerPulse5 5s ease-in-out 2.4s infinite;
}

/* Capa 8 */
.hero-layer-8 {
    z-index: 7;
    opacity: 0;
    animation: 
        layerFadeIn 0.8s ease-out 1.8s forwards,
        layerPulse6 4.5s ease-in-out 2.6s infinite;
}

/* Capa 9 */
.hero-layer-9 {
    z-index: 8;
    opacity: 0;
    animation: 
        layerFadeIn 0.8s ease-out 2s forwards,
        layerPulse7 6s ease-in-out 2.8s infinite;
}

/* Capa 10 */
.hero-layer-10 {
    z-index: 9;
    opacity: 0;
    animation: 
        layerFadeIn 0.8s ease-out 2.2s forwards,
        layerPulse8 5.5s ease-in-out 3s infinite;
}

/* Capas grandes con movimiento inverso */
.layer-reverse.hero-layer-2 {
    animation: 
        layerFadeIn 0.8s ease-out 0.5s forwards,
        layerPulseReverse1 4s ease-in-out 1.3s infinite;
}

.layer-reverse.hero-layer-3 {
    animation: 
        layerFadeIn 0.8s ease-out 0.7s forwards,
        layerPulseReverse2 3.5s ease-in-out 1.5s infinite;
}

.layer-reverse.hero-layer-4 {
    animation: 
        layerFadeIn 0.8s ease-out 1.1s forwards,
        layerPulseReverse3 4.5s ease-in-out 1.9s infinite;
}

.layer-reverse.hero-layer-5 {
    animation: 
        layerFadeIn 0.8s ease-out 1.4s forwards,
        layerPulseReverse4 5.5s ease-in-out 2.2s infinite;
}

/* Animación de aparición - con más impacto */
@keyframes layerFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(30px);
        filter: blur(5px);
    }
    60% {
        opacity: 0.8;
        transform: scale(1.05) translateY(-5px);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Animaciones de pulso MÁS INTENSAS - diferentes ritmos */
@keyframes layerPulse1 {
    0%, 100% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
    25% {
        transform: scale(1.06) translateY(-8px) rotate(1deg);
    }
    50% {
        transform: scale(1.08) translateY(-12px) rotate(0deg);
    }
    75% {
        transform: scale(1.05) translateY(-6px) rotate(-0.5deg);
    }
}

@keyframes layerPulse2 {
    0%, 100% {
        transform: scale(1) translateX(0) rotate(0deg);
    }
    33% {
        transform: scale(1.07) translateX(8px) rotate(1.5deg);
    }
    66% {
        transform: scale(1.05) translateX(-5px) rotate(-1deg);
    }
}

@keyframes layerPulse3 {
    0%, 100% {
        transform: scale(1) translate(0, 0);
    }
    25% {
        transform: scale(1.05) translate(6px, -10px);
    }
    50% {
        transform: scale(1.09) translate(-4px, -15px);
    }
    75% {
        transform: scale(1.04) translate(3px, -8px);
    }
}

@keyframes layerPulse4 {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    30% {
        transform: scale(1.08) rotate(2deg);
    }
    60% {
        transform: scale(1.06) rotate(-1.5deg);
    }
}

/* Animaciones inversas para capas grandes - MÁS DINÁMICAS */
@keyframes layerPulseReverse1 {
    0%, 100% {
        transform: scale(1) rotate(0deg) translateY(0);
    }
    25% {
        transform: scale(0.94) rotate(-2deg) translateY(10px);
    }
    50% {
        transform: scale(0.92) rotate(0deg) translateY(15px);
    }
    75% {
        transform: scale(0.95) rotate(1deg) translateY(8px);
    }
}

@keyframes layerPulseReverse2 {
    0%, 100% {
        transform: scale(1) rotate(0deg) translateX(0);
    }
    33% {
        transform: scale(0.93) rotate(2deg) translateX(-10px);
    }
    66% {
        transform: scale(0.95) rotate(-1.5deg) translateX(8px);
    }
}

@keyframes layerPulseReverse3 {
    0%, 100% {
        transform: scale(1) rotate(0deg) translate(0, 0);
    }
    25% {
        transform: scale(0.95) rotate(-1.5deg) translate(-8px, 6px);
    }
    50% {
        transform: scale(0.92) rotate(0.5deg) translate(5px, 12px);
    }
    75% {
        transform: scale(0.96) rotate(1deg) translate(-3px, 5px);
    }
}

@keyframes layerPulseReverse4 {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    30% {
        transform: scale(0.94) rotate(2.5deg);
    }
    60% {
        transform: scale(0.96) rotate(-2deg);
    }
}

/* Animaciones de pulso para capas nuevas (6, 8, 9, 10) - MÁS FUERTES */
@keyframes layerPulse5 {
    0%, 100% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
    25% {
        transform: scale(1.08) translateY(-10px) rotate(1.5deg);
    }
    50% {
        transform: scale(1.1) translateY(-15px) rotate(0deg);
    }
    75% {
        transform: scale(1.06) translateY(-8px) rotate(-1deg);
    }
}

@keyframes layerPulse6 {
    0%, 100% {
        transform: scale(1) translate(0, 0) rotate(0deg);
    }
    33% {
        transform: scale(1.09) translate(10px, -8px) rotate(2deg);
    }
    66% {
        transform: scale(1.06) translate(-6px, -12px) rotate(-1.5deg);
    }
}

@keyframes layerPulse7 {
    0%, 100% {
        transform: scale(1) translateX(0);
    }
    25% {
        transform: scale(1.07) translateX(-12px);
    }
    50% {
        transform: scale(1.1) translateX(0);
    }
    75% {
        transform: scale(1.05) translateX(10px);
    }
}

@keyframes layerPulse8 {
    0%, 100% {
        transform: scale(1) rotate(0deg) translateY(0);
    }
    30% {
        transform: scale(1.12) rotate(-2deg) translateY(-12px);
    }
    60% {
        transform: scale(1.08) rotate(1.5deg) translateY(-8px);
    }
}

.hero-main-image {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
    animation: heroImageFloat 6s ease-in-out infinite;
}

@keyframes heroImageFloat {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
    }
    25% {
        transform: translateY(-20px) scale(1.04) rotate(1deg);
        filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.12));
    }
    50% {
        transform: translateY(-30px) scale(1.06) rotate(0deg);
        filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.15));
    }
    75% {
        transform: translateY(-15px) scale(1.03) rotate(-0.5deg);
        filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.1));
    }
}

/* Lado del contenido */
.hero-content-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 1;
    padding: var(--spacing-2xl);
    background: transparent;
}

.hero-text-wrapper {
    max-width: 600px;
}

.hero-title-split {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #2b7cb3 0%, #2eb85c 25%, #4aabe3 50%, #2eb85c 75%, #2b7cb3 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: 
        heroTitleEnter 0.8s ease-out 0.3s forwards,
        gradientFlow 4s ease-in-out 1.1s infinite;
}

@keyframes heroTitleEnter {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(5px);
    }
    60% {
        opacity: 0.9;
        transform: translateY(-5px) scale(1.02);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 100%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle-split {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: #475569;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: heroSubtitleEnter 0.7s ease-out 0.6s forwards;
}

@keyframes heroSubtitleEnter {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón Conocer más */
.btn-hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2b7cb3 0%, #2eb85c 100%);
    background-size: 200% 200%;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(43, 124, 179, 0.3);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: heroBtnEnter 0.6s ease-out 0.9s forwards;
}

@keyframes heroBtnEnter {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    60% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-hero-scroll:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(43, 124, 179, 0.5);
    background-position: 100% 100%;
    color: white;
}

.btn-hero-scroll i {
    animation: bounceDown 1s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Dark mode */
[data-theme="dark"] .hero-split {
    background: #0f172a;
}

[data-theme="dark"] .dots-pattern {
    background-image: 
        radial-gradient(circle, rgba(74, 171, 227, 0.3) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(46, 184, 92, 0.25) 1px, transparent 1px);
}

[data-theme="dark"] .hero-title-split {
    background: linear-gradient(135deg, #4aabe3 0%, #2eb85c 50%, #60c6f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .hero-subtitle-split {
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-split {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
    }
    
    .hero-image-side {
        order: 2;
        padding: var(--spacing-lg);
    }
    
    .hero-content-side {
        order: 1;
        padding: calc(80px + var(--spacing-xl)) var(--spacing-lg) var(--spacing-lg);
        text-align: center;
    }
    
    .hero-text-wrapper {
        max-width: 100%;
    }
    
    .hero-layers-container {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .hero-main-image {
        max-height: 50vh;
    }
}

@media (max-width: 576px) {
    .hero-split {
        min-height: auto;
    }
    
    .hero-content-side {
        padding: calc(70px + var(--spacing-md)) var(--spacing-md) var(--spacing-md);
    }
    
    .hero-image-side {
        padding: var(--spacing-md);
        /* Evitar que las animaciones se corten */
        overflow: visible;
    }
    
    .hero-title-split {
        font-size: 1.75rem;
    }
    
    .hero-subtitle-split {
        font-size: 1rem;
    }
    
    .hero-layers-container {
        max-width: 95%;
        /* Espacio extra para las animaciones */
        margin: 20px auto;
        padding: 15px;
    }
    
    /* MANTENER intensidad de animaciones en mobile - ¡Más impacto! */
    .hero-layer-2,
    .hero-layer-3,
    .hero-layer-4,
    .hero-layer-5,
    .hero-layer-6,
    .hero-layer-8,
    .hero-layer-9,
    .hero-layer-10 {
        animation-duration: 3s !important;
        animation-timing-function: ease-in-out !important;
    }
    
    /* Aparición más rápida y dramática en mobile */
    .hero-layer-1 { animation: layerFadeInMobile 0.6s ease-out 0.1s forwards; }
    .hero-layer-2 { animation: layerFadeInMobile 0.6s ease-out 0.25s forwards, layerPulseMobile1 3s ease-in-out 0.85s infinite; }
    .hero-layer-3 { animation: layerFadeInMobile 0.6s ease-out 0.4s forwards, layerPulseMobile2 3.5s ease-in-out 1s infinite; }
    .hero-layer-4 { animation: layerFadeInMobile 0.6s ease-out 0.55s forwards, layerPulseMobile3 3s ease-in-out 1.15s infinite; }
    .hero-layer-5 { animation: layerFadeInMobile 0.6s ease-out 0.7s forwards, layerPulseMobile1 3.2s ease-in-out 1.3s infinite; }
    .hero-layer-6 { animation: layerFadeInMobile 0.6s ease-out 0.85s forwards, layerPulseMobile2 2.8s ease-in-out 1.45s infinite; }
    .hero-layer-8 { animation: layerFadeInMobile 0.6s ease-out 1s forwards, layerPulseMobile3 3s ease-in-out 1.6s infinite; }
    .hero-layer-9 { animation: layerFadeInMobile 0.6s ease-out 1.15s forwards, layerPulseMobile1 3.5s ease-in-out 1.75s infinite; }
    .hero-layer-10 { animation: layerFadeInMobile 0.6s ease-out 1.3s forwards, layerPulseMobile2 3s ease-in-out 1.9s infinite; }
}

/* Animaciones específicas para mobile - MUY VISIBLES */
@keyframes layerFadeInMobile {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px) rotate(-5deg);
        filter: blur(8px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) translateY(-10px) rotate(2deg);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes layerPulseMobile1 {
    0%, 100% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
    25% {
        transform: scale(1.1) translateY(-15px) rotate(2deg);
    }
    50% {
        transform: scale(1.15) translateY(-20px) rotate(0deg);
    }
    75% {
        transform: scale(1.08) translateY(-10px) rotate(-1.5deg);
    }
}

@keyframes layerPulseMobile2 {
    0%, 100% {
        transform: scale(1) translateX(0) rotate(0deg);
    }
    33% {
        transform: scale(1.12) translateX(15px) rotate(3deg);
    }
    66% {
        transform: scale(1.08) translateX(-12px) rotate(-2deg);
    }
}

@keyframes layerPulseMobile3 {
    0%, 100% {
        transform: scale(1) translate(0, 0) rotate(0deg);
    }
    25% {
        transform: scale(1.08) translate(-10px, -12px) rotate(-2deg);
    }
    50% {
        transform: scale(1.15) translate(8px, -18px) rotate(1deg);
    }
    75% {
        transform: scale(1.05) translate(-5px, -8px) rotate(2deg);
    }
}

/* Legacy hero styles (mantener para compatibilidad) */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 124, 179, 0.9) 0%, rgba(74, 171, 227, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: var(--spacing-2xl);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: white;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Animated shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite;
}

.hero-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.hero-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 171, 227, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 171, 227, 0.5);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(92, 184, 92, 0.5);
    color: white;
}

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

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

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--color-text);
}

.btn-glass:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.1rem;
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
}

/* Botón con animación flotante suave */
.btn-float {
    animation: btnFloat 2.5s ease-in-out infinite;
}

@keyframes btnFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.btn-float:hover {
    animation: none;
    transform: translateY(-8px);
}

/* Imagen con animación de pulso suave */
.about-image-card {
    overflow: visible !important;
}

.about-image-pulse {
    animation: imagePulse 4s ease-in-out infinite;
}

@keyframes imagePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(74, 171, 227, 0.2);
    }
}

.about-image-pulse:hover {
    animation: none;
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(74, 171, 227, 0.25);
}

/* ================================================
   CARDS
   ================================================ */
.card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

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

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

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

.card-body {
    padding: var(--spacing-xl);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 25%, #ffffff 50%, #f5f5f5 75%, #ffffff 100%);
    background-size: 400% 400%;
    animation: cardBgMove 8s ease-in-out infinite;
}

@keyframes cardBgMove {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.service-card:hover {
    animation-duration: 3s;
}

[data-theme="dark"] .service-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 25%, #1e293b 50%, #0f172a 75%, #1e293b 100%);
    background-size: 400% 400%;
    animation: cardBgMove 8s ease-in-out infinite;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, #2b7cb3 0%, #2eb85c 50%, #2b7cb3 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(43, 124, 179, 0.35);
    transition: all var(--transition-normal);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(43, 124, 179, 0.5);
    animation-duration: 1.5s;
}

/* Team Cards */
.team-card {
    text-align: center;
}

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.team-position {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ================================================
   FORMS (Glassmorphism Ultra Moderno)
   ================================================ */
.form-group {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.form-control {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-md);
    padding-top: var(--spacing-xl);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-normal);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(74, 171, 227, 0.15);
    background: white;
}

[data-theme="dark"] .form-control {
    background: var(--color-surface);
    border-color: var(--glass-border);
    color: var(--color-text);
}

[data-theme="dark"] .form-control:focus {
    background: var(--color-surface);
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: 8px;
    font-size: 0.75rem;
    color: var(--color-primary);
}

.form-label {
    position: absolute;
    top: 50%;
    left: var(--spacing-md);
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
}

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

textarea.form-control + .form-label {
    top: var(--spacing-xl);
    transform: translateY(0);
}

.form-control.error {
    border-color: #E74C3C;
}

.form-error {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: #E74C3C;
}

/* ================================================
   CONTACT FORM ULTRA MODERN
   ================================================ */
.contact-form-wrapper {
    position: relative;
    padding: var(--spacing-2xl);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(74, 171, 227, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.contact-form {
    position: relative;
    z-index: 1;
}

/* Success Animation */
.form-success {
    text-align: center;
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(92, 184, 92, 0.1) 0%, rgba(46, 184, 92, 0.05) 100%);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-secondary);
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.form-success h4 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.form-success p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.success-animation {
    font-size: 4rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
    animation: successPulse 1s ease infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    border-radius: var(--radius-full);
    color: white;
    font-size: 3rem;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Loading Spinner */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================================
   ADMIN BAR (WordPress-style)
   ================================================ */
.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: #1d2327;
    color: #c3c4c7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    z-index: 99999;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.admin-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    max-width: 100%;
}

.admin-bar-left,
.admin-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-bar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    height: 32px;
    color: #c3c4c7;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.admin-bar-logo:hover {
    background: #32373c;
    color: #72aee6;
}

.admin-bar-logo i {
    font-size: 16px;
}

.admin-bar-sep {
    width: 1px;
    height: 16px;
    background: #3c4146;
    margin: 0 8px;
}

.admin-bar-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    height: 32px;
    color: #c3c4c7;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.admin-bar-link:hover {
    background: #32373c;
    color: #72aee6;
}

.admin-bar-link i {
    font-size: 14px;
}

.admin-bar-user {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    color: #c3c4c7;
}

.admin-bar-user i {
    font-size: 14px;
}

/* Ajustar el body cuando hay admin bar */
body.has-admin-bar {
    padding-top: 32px;
}

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

/* Mobile admin bar */
@media (max-width: 768px) {
    .admin-bar {
        height: 46px;
    }
    
    body.has-admin-bar {
        padding-top: 46px;
    }
    
    body.has-admin-bar .header {
        top: 46px;
    }
    
    .admin-bar-user {
        display: none;
    }
    
    .admin-bar-link span,
    .admin-bar-logo span {
        display: none;
    }
    
    .admin-bar-logo i,
    .admin-bar-link i {
        font-size: 18px;
    }
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #0F172A 100%);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    position: relative;
}

/* Línea degradada animada en la parte superior del footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #2b7cb3 0%, 
        #4aabe3 15%, 
        #2eb85c 30%, 
        #5cb85c 45%, 
        #2b7cb3 60%, 
        #4aabe3 75%, 
        #2eb85c 90%, 
        #2b7cb3 100%);
    background-size: 200% 100%;
    animation: footerGradientMove 4s linear infinite;
}

@keyframes footerGradientMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 60px;
    margin-bottom: var(--spacing-lg);
}

.footer-slogan {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: white;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        #2b7cb3 0%, 
        #4aabe3 15%, 
        #2eb85c 30%, 
        #5cb85c 45%, 
        #2b7cb3 60%, 
        #4aabe3 75%, 
        #2eb85c 90%, 
        #2b7cb3 100%);
    background-size: 200% 100%;
    animation: footerGradientMove 4s linear infinite;
    border-radius: var(--radius-full);
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: var(--spacing-sm);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--color-primary);
    width: 20px;
    text-align: center;
    margin-top: 4px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-dev {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-dev a {
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-dev a:hover {
    opacity: 1;
}

/* ================================================
   WHATSAPP FLOATING WIDGET
   ================================================ */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: var(--z-fixed);
}

.whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: var(--radius-full);
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all var(--transition-normal);
    animation: whatsappPulse 2s infinite;
    border: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.whatsapp-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-popup-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.whatsapp-popup-header > i {
    font-size: 2rem;
    margin-top: 4px;
}

.whatsapp-popup-header div {
    flex: 1;
}

.whatsapp-popup-header strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.whatsapp-popup-header span {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

.whatsapp-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

.whatsapp-close:hover {
    opacity: 1;
}

.whatsapp-popup-body {
    padding: 16px;
}

.whatsapp-response-time {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
    text-align: center;
}

.whatsapp-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.whatsapp-contact-item:hover {
    background: #f5f5f5;
    border-color: #25D366;
}

.whatsapp-contact-item:last-child {
    margin-bottom: 0;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.whatsapp-contact-item span {
    flex: 1;
    font-weight: 500;
}

.whatsapp-icon-right {
    color: #25D366;
    font-size: 1.3rem;
}

[data-theme="dark"] .whatsapp-popup {
    background: var(--color-surface);
    border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .whatsapp-contact-item {
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .whatsapp-contact-item:hover {
    background: rgba(255,255,255,0.05);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ================================================
   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);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ================================================
   UTILITIES
   ================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-text-muted); }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-alt { background-color: var(--color-bg-alt); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.py-1 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-2 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-3 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-4 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }
.gap-4 { gap: var(--spacing-xl); }

/* Grid */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ================================================
   PAGE SPECIFIC STYLES
   ================================================ */
/* Page Header */
.page-header {
    padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: white;
    text-align: center;
}

/* Page Header Animado con Gradiente */
.page-header-animated {
    position: relative;
    padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    color: white;
    text-align: center;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgb(43, 124, 179) 0%, 
        rgb(46, 184, 92) 25%, 
        rgb(74, 171, 227) 50%, 
        rgb(46, 184, 92) 75%, 
        rgb(43, 124, 179) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.page-header-animated .container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.page-header-animated .page-title {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-header-animated .breadcrumb {
    color: white;
}

.page-header-animated .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

.page-header-animated .breadcrumb a:hover {
    color: white;
}

.page-header-animated .breadcrumb .active {
    color: white;
}

/* Page Header con imagen de fondo */
.page-header-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-bg .container {
    position: relative;
    z-index: 2;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.85) 0%, rgba(var(--color-primary-rgb), 0.7) 100%);
    z-index: 1;
}

.page-header-logo {
    filter: brightness(0) invert(1);
}

.page-header h1 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.page-header .breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb a:hover {
    color: white;
}

/* Documents List */
.documents-section {
    margin-bottom: var(--spacing-2xl);
}

.documents-section h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--color-primary-dark);
}

.documents-list {
    display: grid;
    gap: var(--spacing-md);
}

.document-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

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

.document-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.5rem;
}

.document-icon.xlsx {
    background: linear-gradient(135deg, #27AE60 0%, #1E8449 100%);
}

.document-info {
    flex: 1;
}

.document-title {
    font-weight: 600;
    margin-bottom: 0;
}

.document-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Pagination */
.pagination-nav {
    margin-top: var(--spacing-2xl);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination li {
    display: flex;
}

.pagination-link,
.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--spacing-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination-dots {
    background: transparent;
    border: none;
    min-width: 30px;
    color: var(--color-text-muted);
}

.pagination-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.pagination-link.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    pointer-events: none;
}

@media (max-width: 480px) {
    .pagination-link,
    .pagination-dots {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Categories Filter (horizontal scroll on mobile) */
.categories-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 768px) {
    .categories-filter {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: var(--spacing-sm);
        margin: 0 calc(-1 * var(--spacing-md));
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .categories-filter::-webkit-scrollbar {
        display: none;
    }
    
    .categories-filter .btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

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

/* Pantallas medianas - menú compacto */
@media (max-width: 1200px) {
    .logo img {
        height: 40px;
    }
    
    .nav-menu {
        gap: var(--spacing-xs);
    }
    
    .nav-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }
    
    .nav {
        gap: var(--spacing-md);
    }
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    
    .logo img {
        height: 36px;
    }
    
    .nav-link {
        padding: var(--spacing-xs) var(--spacing-xs);
        font-size: 0.85rem;
    }
    
    .header-inner {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

@media (max-width: 768px) {
    /* Barra de búsqueda móvil - centrada y mejor posicionada */
    .search-wrapper {
        position: static;
    }
    
    .search-box {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        z-index: 9999;
    }
    
    .search-box.active {
        width: calc(100vw - 32px);
        max-width: 400px;
        right: auto;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-results {
        position: fixed;
        top: 130px;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: calc(100vh - 160px);
    }

    :root {
        --spacing-2xl: 2rem;
        --spacing-3xl: 3rem;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        background: #ffffff !important;
        gap: 0;
        z-index: 9998;
        padding: 80px 20px 40px;
        overflow-y: auto;
    }
    
    .nav-menu .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    
    .nav-menu .nav-link {
        color: #0A2540 !important;
        font-size: 1.1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 10px;
        width: 100%;
    }
    
    .nav-menu .nav-link i {
        transition: transform 0.3s ease;
    }
    
    .nav-menu .nav-item.open > .nav-link i {
        transform: rotate(180deg);
    }
    
    .nav-menu .nav-link:hover {
        color: var(--color-primary) !important;
        background: rgba(74, 171, 227, 0.05);
    }
    
    [data-theme="dark"] .nav-menu {
        background: #0f172a !important;
    }
    
    [data-theme="dark"] .nav-menu .nav-item {
        border-bottom-color: rgba(255,255,255,0.1);
    }
    
    [data-theme="dark"] .nav-menu .nav-link {
        color: #ffffff !important;
    }
    
    [data-theme="dark"] .nav-menu .nav-link:hover {
        background: rgba(255,255,255,0.05);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Social links in mobile menu */
    .nav-social-links {
        display: flex;
        justify-content: center;
        gap: var(--spacing-lg);
        margin-top: auto;
        padding: var(--spacing-xl) 10px;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    [data-theme="dark"] .nav-social-links {
        border-top-color: rgba(255,255,255,0.1);
    }
    
    .nav-social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(var(--color-primary-rgb), 0.1);
        color: var(--color-primary);
        font-size: 1.3rem;
        transition: all var(--transition-fast);
    }
    
    .nav-social-links a:hover {
        background: var(--color-primary);
        color: white;
        transform: scale(1.1);
    }
    
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.03);
        text-align: left;
        display: none;
        padding: 0;
        margin: 0;
    }
    
    .nav-item.open > .nav-dropdown {
        display: block;
    }
    
    .nav-dropdown li {
        border-bottom: none;
    }
    
    .nav-dropdown a {
        padding: 12px 20px 12px 30px !important;
        font-size: 0.95rem;
        color: #555 !important;
        display: block;
    }
    
    .nav-dropdown a:hover {
        color: var(--color-primary) !important;
        background: rgba(74, 171, 227, 0.08);
    }
    
    [data-theme="dark"] .nav-dropdown {
        background: rgba(255,255,255,0.03);
    }
    
    [data-theme="dark"] .nav-dropdown a {
        color: #aaa !important;
    }
    
    [data-theme="dark"] .nav-dropdown a:hover {
        color: var(--color-primary) !important;
        background: rgba(255,255,255,0.05);
    }
    
    /* Submenu (tercer nivel) en móvil */
    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.02);
        display: none;
        padding: 0;
        margin: 0;
    }
    
    .nav-dropdown li.has-submenu.open > .nav-submenu {
        display: block;
    }
    
    .nav-dropdown li.has-submenu > a .submenu-icon {
        transition: transform 0.3s ease;
    }
    
    .nav-dropdown li.has-submenu.open > a .submenu-icon {
        transform: rotate(90deg);
    }
    
    .nav-submenu a {
        padding: 10px 20px 10px 50px !important;
        font-size: 0.9rem;
        color: #666 !important;
    }
    
    .nav-submenu a:hover {
        color: var(--color-secondary) !important;
        background: rgba(52, 211, 153, 0.08);
    }
    
    [data-theme="dark"] .nav-submenu {
        background: rgba(255,255,255,0.02);
    }
    
    [data-theme="dark"] .nav-submenu a {
        color: #888 !important;
    }
    
    [data-theme="dark"] .nav-submenu a:hover {
        color: var(--color-secondary) !important;
    }
    
    .mobile-toggle {
        display: flex;
        position: relative;
        z-index: 9999;
    }
    
    .mobile-toggle.active {
        position: fixed;
        top: 20px;
        right: 20px;
    }
    
    .mobile-toggle.active span {
        background: var(--color-text);
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .footer-contact p {
        justify-content: center;
        text-align: center;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ================================================
   INSTAGRAM FEED SECTION
   ================================================ */
.instagram-section {
    background: transparent;
    padding: 60px 0;
}

[data-theme="dark"] .instagram-section {
    background: transparent;
}

.instagram-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.instagram-profile-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: inherit;
    padding: var(--spacing-md) var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

[data-theme="dark"] .instagram-profile-link {
    background: var(--dark-card-bg);
}

.instagram-profile-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.instagram-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
}

.instagram-info {
    text-align: left;
}

.instagram-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

[data-theme="dark"] .instagram-title {
    color: var(--dark-text);
}

.instagram-title i {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-handle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.instagram-feed {
    margin-bottom: var(--spacing-lg);
}

.instagram-feed behold-widget {
    --behold-grid-gap: 15px;
}

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

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
    color: white;
}

.btn-instagram i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .instagram-profile-link {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
    }
    
    .instagram-info {
        text-align: center;
    }
    
    .instagram-avatar {
        width: 80px;
        height: 80px;
    }
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .theme-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .page-header {
        background: none;
        color: black;
        padding: 20px 0;
    }
}
