

:root {
    /* Colores UNIR Azul */
    --unir-blue: #0066CC;
    --unir-blue-light: #3385D6;
    --unir-blue-dark: #004C99;
    --unir-blue-accent: #0052A3;
    
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f4f8;
    --text-primary: #0a192f;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent-primary: var(--unir-blue);
    --accent-secondary: var(--unir-blue-light);
    --accent-tertiary: #00a8e8;
    --gradient-1: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
    --gradient-2: linear-gradient(135deg, #3385D6 0%, #0066CC 100%);
    --gradient-3: linear-gradient(135deg, #00a8e8 0%, #0066CC 100%);
    --gradient-text: linear-gradient(135deg, #0066CC 0%, #004C99 50%, #00a8e8 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 102, 204, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 102, 204, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 102, 204, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 102, 204, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 102, 204, 0.15);
    --shadow-glow: 0 0 60px -15px rgba(0, 102, 204, 0.4);
    --grid-color: rgba(0, 102, 204, 0.08);
}

/* Dark Theme - UNIR Blue */
[data-theme="dark"] {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --bg-tertiary: #1d3557;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-muted: #64ffda;
    --accent-primary: #64ffda;
    --accent-secondary: #00a8e8;
    --accent-tertiary: #0066CC;
    --gradient-1: linear-gradient(135deg, #0066CC 0%, #00a8e8 100%);
    --gradient-2: linear-gradient(135deg, #64ffda 0%, #0066CC 100%);
    --gradient-3: linear-gradient(135deg, #00a8e8 0%, #64ffda 100%);
    --gradient-text: linear-gradient(135deg, #64ffda 0%, #0066CC 50%, #00a8e8 100%);
    --glass-bg: rgba(17, 34, 64, 0.8);
    --glass-border: rgba(100, 255, 218, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px -15px rgba(100, 255, 218, 0.3);
    --grid-color: rgba(0, 102, 204, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    line-height: 1.6;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    opacity: 0.5;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.bg-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 102, 204, 0.1) 0%, 
        transparent 50%);
    animation: gradient-pulse 8s ease-in-out infinite;
}

@keyframes gradient-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: var(--shadow-glow);
}

.toggle-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.toggle-icon i {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 24px;
    transition: all 0.4s ease;
}

.sun {
    color: #fbbf24;
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.moon {
    color: var(--unir-blue);
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.toggle-glow {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--gradient-1);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.theme-toggle:hover .toggle-glow {
    opacity: 0.5;
    filter: blur(10px);
}

/* Admin Button */
.admin-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s;
}

.admin-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.auth-modal h2,
.dashboard-modal h2 {
    margin-bottom: 30px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--gradient-1);
    color: white;
}

.tab-btn .badge {
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.tab-content.hidden {
    display: none;
}

/* Chat List Admin */
.chat-list {
    max-height: 400px;
    overflow-y: auto;
}

.chat-item {
    padding: 15px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.chat-item.unread {
    border-left: 4px solid var(--accent-primary);
    background: rgba(0, 102, 204, 0.05);
}

.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.chat-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 5px 0;
}

.unread-badge {
    background: var(--gradient-1);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-style: italic;
}

/* Admin Chat View */
.admin-chat-view {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.admin-chat-view.hidden {
    display: none;
}

.admin-chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 15px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.admin-chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.admin-message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-message.user {
    align-self: flex-start;
}

.admin-message.admin {
    align-self: flex-end;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
}

.admin-message.user .message-bubble {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.admin-message.admin .message-bubble {
    background: var(--gradient-1);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-chat-input {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.admin-chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}

.admin-chat-input input:focus {
    border-color: var(--accent-primary);
}

.admin-chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-1);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-chat-input button:hover {
    transform: scale(1.1);
}

/* Chat Widget - ESPECTACULAR */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    background: var(--bg-secondary);
    border-radius: 24px;
    box-shadow: var(--shadow-lg), 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    z-index: 998;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-widget.minimized {
    height: 70px;
}

.chat-widget.minimized .chat-body {
    display: none;
}

.chat-header {
    background: var(--gradient-1);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 1;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.8); }
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

#unreadCount {
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

#unreadCount.hidden {
    display: none;
}

.chat-body {
    height: 450px;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: message-pop 0.3s ease;
    position: relative;
}

@keyframes message-pop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.message.bot {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--glass-border);
}

.message.user {
    background: var(--gradient-1);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.message-content {
    margin-bottom: 5px;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    display: block;
    text-align: right;
}

.chat-input-area {
    padding: 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 12px;
}

.chat-input-area input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.chat-input-area input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.chat-input-area input::placeholder {
    color: var(--text-muted);
}

.chat-input-area button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-1);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.chat-input-area button:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.chat-powered {
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
    transition: all 0.3s;
}

.nav-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.code-tag {
    color: var(--accent-primary);
    opacity: 0.7;
}

.brand-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Main Container */
.cv-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 50px 0;
    page-break-inside: avoid;
}

.hero-content {
    animation: fade-up 1s ease-out;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    overflow: hidden;
}

.text-reveal {
    display: block;
    animation: text-reveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    transform: translateY(100%);
    opacity: 0;
}

.title-line:nth-child(1) .text-reveal {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) .text-reveal {
    animation-delay: 0.4s;
}

@keyframes text-reveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
    border-right: 3px solid var(--accent-primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    width: 0;
    animation-fill-mode: forwards;
    max-width: 100%;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-primary); }
}

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.contact-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.contact-pill i {
    color: var(--accent-primary);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.photo-orbit {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-ring {
    position: absolute;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    animation: orbit 20s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation-duration: 30s;
}

.ring-2 {
    width: 80%;
    height: 80%;
    animation-duration: 25s;
    animation-direction: reverse;
}

.ring-3 {
    width: 60%;
    height: 60%;
    animation-duration: 20s;
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.photo-container {
    position: relative;
    width: 280px;
    height: 280px;
    z-index: 10;
}

.photo-glass {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: 
        var(--glass-shadow),
        0 0 100px -20px rgba(0, 102, 204, 0.3);
    transition: transform 0.3s;
}

.photo-glass:hover {
    transform: scale(1.05) rotate(2deg);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    /* 👇 AQUÍ ESTÁ LA MAGIA */
  object-position: center 35%;

  border-radius: 28px;
  z-index: 3;
}

.photo-glass:hover .profile-photo {
    transform: scale(1.1);
}

.photo-reflection {
    position: absolute;
    bottom: -20px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
    filter: blur(10px);
}

.floating-badges {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-badge {
    position: absolute;
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--glass-shadow);
    animation: float 6s ease-in-out infinite;
}

.float-badge i {
    color: var(--accent-primary);
}

.badge-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 2s;
}

.badge-3 {
    bottom: 10%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    page-break-inside: avoid;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.section-header.centered {
    flex-direction: column;
    text-align: center;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 102, 204, 0.5);
}

.header-icon.pulse {
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
    0%, 100% { box-shadow: 0 10px 30px -10px rgba(0, 102, 204, 0.5); }
    50% { box-shadow: 0 10px 40px -5px rgba(0, 102, 204, 0.8); }
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -30px;
}

/* Glitch Text */
.glitch-text {
    position: relative;
    font-family: 'JetBrains Mono', monospace;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--unir-blue-light);
    animation: glitch-1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
    color: var(--accent-tertiary);
    animation: glitch-2 2s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-5px, 0); }
    94% { transform: translate(5px, 0); }
    96% { transform: translate(-2px, 0); }
    98% { transform: translate(2px, 0); }
}

@keyframes glitch-2 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(5px, 0); }
    94% { transform: translate(-5px, 0); }
    96% { transform: translate(2px, 0); }
    98% { transform: translate(-2px, 0); }
}

/* About Section */
.about-section {
    margin: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.code-block {
    background: #1e1e2e;
    border-radius: 16px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
}

.code-header {
    background: #313244;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca40; }

.code-filename {
    color: #6c7086;
    font-size: 0.8rem;
    margin-left: auto;
}

.code-content {
    padding: 20px;
    overflow-x: auto;
    line-height: 1.8;
}

.code-keyword { color: #ff79c6; }
.code-variable { color: #8be9fd; }
.code-property { color: #50fa7b; }
.code-string { color: #f1fa8c; }

.about-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight-text {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}





























:root {
    /* Colores UNIR Azul */
    --unir-blue: #0066CC;
    --unir-blue-light: #3385D6;
    --unir-blue-dark: #004C99;
    --unir-blue-accent: #0052A3;
    
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f4f8;
    --text-primary: #0a192f;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent-primary: var(--unir-blue);
    --accent-secondary: var(--unir-blue-light);
    --accent-tertiary: #00a8e8;
    --gradient-1: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
    --gradient-2: linear-gradient(135deg, #3385D6 0%, #0066CC 100%);
    --gradient-3: linear-gradient(135deg, #00a8e8 0%, #0066CC 100%);
    --gradient-text: linear-gradient(135deg, #0066CC 0%, #004C99 50%, #00a8e8 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 102, 204, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 102, 204, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 102, 204, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 102, 204, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 102, 204, 0.15);
    --shadow-glow: 0 0 60px -15px rgba(0, 102, 204, 0.4);
    --grid-color: rgba(0, 102, 204, 0.08);
}

/* Dark Theme - UNIR Blue */
[data-theme="dark"] {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --bg-tertiary: #1d3557;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-muted: #64ffda;
    --accent-primary: #64ffda;
    --accent-secondary: #00a8e8;
    --accent-tertiary: #0066CC;
    --gradient-1: linear-gradient(135deg, #0066CC 0%, #00a8e8 100%);
    --gradient-2: linear-gradient(135deg, #64ffda 0%, #0066CC 100%);
    --gradient-3: linear-gradient(135deg, #00a8e8 0%, #64ffda 100%);
    --gradient-text: linear-gradient(135deg, #64ffda 0%, #0066CC 50%, #00a8e8 100%);
    --glass-bg: rgba(17, 34, 64, 0.8);
    --glass-border: rgba(100, 255, 218, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px -15px rgba(100, 255, 218, 0.3);
    --grid-color: rgba(0, 102, 204, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    line-height: 1.6;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    opacity: 0.5;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.bg-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 102, 204, 0.1) 0%, 
        transparent 50%);
    animation: gradient-pulse 8s ease-in-out infinite;
}

@keyframes gradient-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: var(--shadow-glow);
}

.toggle-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.toggle-icon i {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 24px;
    transition: all 0.4s ease;
}

.sun {
    color: #fbbf24;
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.moon {
    color: var(--unir-blue);
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.toggle-glow {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--gradient-1);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.theme-toggle:hover .toggle-glow {
    opacity: 0.5;
    filter: blur(10px);
}

/* Admin Button */
.admin-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s;
}

.admin-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.auth-modal h2,
.dashboard-modal h2 {
    margin-bottom: 30px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--gradient-1);
    color: white;
}

.tab-btn .badge {
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.tab-content.hidden {
    display: none;
}

/* Chat List Admin */
.chat-list {
    max-height: 400px;
    overflow-y: auto;
}

.chat-item {
    padding: 15px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.chat-item.unread {
    border-left: 4px solid var(--accent-primary);
    background: rgba(0, 102, 204, 0.05);
}

.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.chat-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 5px 0;
}

.unread-badge {
    background: var(--gradient-1);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-style: italic;
}

/* Admin Chat View */
.admin-chat-view {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.admin-chat-view.hidden {
    display: none;
}

.admin-chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 15px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.admin-chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.admin-message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-message.user {
    align-self: flex-start;
}

.admin-message.admin {
    align-self: flex-end;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
}

.admin-message.user .message-bubble {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.admin-message.admin .message-bubble {
    background: var(--gradient-1);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-chat-input {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.admin-chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}

.admin-chat-input input:focus {
    border-color: var(--accent-primary);
}

.admin-chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-1);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-chat-input button:hover {
    transform: scale(1.1);
}

/* Chat Widget - ESPECTACULAR */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    background: var(--bg-secondary);
    border-radius: 24px;
    box-shadow: var(--shadow-lg), 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    z-index: 998;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-widget.minimized {
    height: 70px;
}

.chat-widget.minimized .chat-body {
    display: none;
}

.chat-header {
    background: var(--gradient-1);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 1;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.8); }
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

#unreadCount {
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

#unreadCount.hidden {
    display: none;
}

.chat-body {
    height: 450px;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: message-pop 0.3s ease;
    position: relative;
}

@keyframes message-pop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.message.bot {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--glass-border);
}

.message.user {
    background: var(--gradient-1);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.message-content {
    margin-bottom: 5px;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    display: block;
    text-align: right;
}

.chat-input-area {
    padding: 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 12px;
}

.chat-input-area input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.chat-input-area input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.chat-input-area input::placeholder {
    color: var(--text-muted);
}

.chat-input-area button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-1);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.chat-input-area button:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.chat-powered {
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
    transition: all 0.3s;
}

.nav-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.code-tag {
    color: var(--accent-primary);
    opacity: 0.7;
}

.brand-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Main Container */
.cv-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 50px 0;
    page-break-inside: avoid;
}

.hero-content {
    animation: fade-up 1s ease-out;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    overflow: hidden;
}

.text-reveal {
    display: block;
    animation: text-reveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    transform: translateY(100%);
    opacity: 0;
}

.title-line:nth-child(1) .text-reveal {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) .text-reveal {
    animation-delay: 0.4s;
}

@keyframes text-reveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
    border-right: 3px solid var(--accent-primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    width: 0;
    animation-fill-mode: forwards;
    max-width: 100%;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-primary); }
}

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.contact-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.contact-pill i {
    color: var(--accent-primary);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.photo-orbit {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-ring {
    position: absolute;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    animation: orbit 20s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation-duration: 30s;
}

.ring-2 {
    width: 80%;
    height: 80%;
    animation-duration: 25s;
    animation-direction: reverse;
}

.ring-3 {
    width: 60%;
    height: 60%;
    animation-duration: 20s;
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.photo-container {
    position: relative;
    width: 280px;
    height: 280px;
    z-index: 10;
}

.photo-glass {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: 
        var(--glass-shadow),
        0 0 100px -20px rgba(0, 102, 204, 0.3);
    transition: transform 0.3s;
}

.photo-glass:hover {
    transform: scale(1.05) rotate(2deg);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    /* 👇 AQUÍ ESTÁ LA MAGIA */
  object-position: center 35%;

  border-radius: 28px;
  z-index: 3;
}

.photo-glass:hover .profile-photo {
    transform: scale(1.1);
}

.photo-reflection {
    position: absolute;
    bottom: -20px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
    filter: blur(10px);
}

.floating-badges {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-badge {
    position: absolute;
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--glass-shadow);
    animation: float 6s ease-in-out infinite;
}

.float-badge i {
    color: var(--accent-primary);
}

.badge-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 2s;
}

.badge-3 {
    bottom: 10%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    page-break-inside: avoid;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.section-header.centered {
    flex-direction: column;
    text-align: center;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 102, 204, 0.5);
}

.header-icon.pulse {
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
    0%, 100% { box-shadow: 0 10px 30px -10px rgba(0, 102, 204, 0.5); }
    50% { box-shadow: 0 10px 40px -5px rgba(0, 102, 204, 0.8); }
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -30px;
}

/* Glitch Text */
.glitch-text {
    position: relative;
    font-family: 'JetBrains Mono', monospace;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--unir-blue-light);
    animation: glitch-1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
    color: var(--accent-tertiary);
    animation: glitch-2 2s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-5px, 0); }
    94% { transform: translate(5px, 0); }
    96% { transform: translate(-2px, 0); }
    98% { transform: translate(2px, 0); }
}

@keyframes glitch-2 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(5px, 0); }
    94% { transform: translate(-5px, 0); }
    96% { transform: translate(2px, 0); }
    98% { transform: translate(-2px, 0); }
}

/* About Section */
.about-section {
    margin: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.code-block {
    background: #1e1e2e;
    border-radius: 16px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
}

.code-header {
    background: #313244;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca40; }

.code-filename {
    color: #6c7086;
    font-size: 0.8rem;
    margin-left: auto;
}

.code-content {
    padding: 20px;
    overflow-x: auto;
    line-height: 1.8;
}

.code-keyword { color: #ff79c6; }
.code-variable { color: #8be9fd; }
.code-property { color: #50fa7b; }
.code-string { color: #f1fa8c; }

.about-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight-text {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Skills Matrix */
.skills-section {
    margin: 100px 0;
}

.skills-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
    page-break-inside: avoid;
}

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-category.frontend {
    border-top: 3px solid #0066CC;
}

.skill-category.backend {
    border-top: 3px solid #004C99;
}

.skill-category.tools {
    border-top: 3px solid #00a8e8;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.category-header i {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-percent {
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
}

.skill-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Experience Timeline */
.experience-section {
    margin: 100px 0;
}

.timeline-container {
    position: relative;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bg-tertiary);
}

.timeline-progress {
    width: 100%;
    height: 50%;
    background: var(--gradient-1);
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.5);
}

.timeline-card {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slide-in 0.6s forwards;
    page-break-inside: avoid;
}

.timeline-card:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--bg-tertiary);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 2;
}

.timeline-card.active .timeline-marker {
    background: var(--accent-primary);
    box-shadow: 0 0 0 8px rgba(0, 102, 204, 0.2);
}

.marker-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.3);
    animation: marker-pulse 2s infinite;
}

@keyframes marker-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0; }
}

.timeline-content {
    padding: 30px;
}

.timeline-date {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.date-badge {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.company {
    color: var(--accent-primary);
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 6px 14px;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s;
}

.tech-tag:hover {
    background: rgba(0, 102, 204, 0.2);
    transform: translateY(-2px);
}

/* Education Grid */
.education-section {
    margin: 100px 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.edu-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: start;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    page-break-inside: avoid;
}

.edu-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.edu-card.featured {
    grid-column: 1 / -1;
    background: var(--gradient-1);
    color: white;
    border: none;
}

.edu-card.featured .edu-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.edu-card.featured .edu-level {
    background: rgba(255,255,255,0.2);
    color: white;
}

.edu-card.featured h3,
.edu-card.featured p {
    color: white;
}

.edu-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.edu-content {
    flex: 1;
}

.edu-level {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edu-content h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.edu-institution {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.edu-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(146, 144, 144, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.edu-card:hover .edu-glow {
    opacity: 1;
}
    
    .edu-card.featured {
        grid-column: 1 / -1;
        background: #0066CC !important;
        color: white !important;
    }
    
    .edu-card.featured h3,
    .edu-card.featured p {
        color: white !important;
    }
    
    .edu-icon {
        width: 40px;
        height: 40px;
        background: #f0f4f8 !important;
        color: #0066CC !important;
    }
    
    .edu-card.featured .edu-icon {
        background: rgba(255,255,255,0.2) !important;
        color: white !important;
    }
    
    .edu-level {
        background: rgba(0, 102, 204, 0.1) !important;
        color: #0066CC !important;
        font-size: 7pt;
    }
    
    .edu-card.featured .edu-level {
        background: rgba(255,255,255,0.2) !important;
        color: white !important;
    }
    
    .edu-content h3 {
        font-size: 11pt;
        color: #666769 !important;
    }
    
    .edu-card.featured .edu-content h3 {
        color: white !important;
    }
    
    .edu-institution {
        color: #718096 !important;
        font-size: 9pt;
    }
    
    .edu-card.featured .edu-institution {
        color: rgba(255,255,255,0.8) !important;
    }
    
    


/* ============================================
   SECCIÓN PROYECTOS CON SUBCATEGORÍAS
   ============================================ */

.projects-section {
    margin: 100px 0;
}

/* Tabs de Categorías */
.project-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.category-btn {
    padding: 12px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.category-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.category-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 25px -5px rgba(0, 102, 204, 0.4);
}

.category-btn i {
    font-size: 1rem;
}

/* Grid de Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.project-card.featured .project-image {
    height: 100%;
    min-height: 300px;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.5;
    transition: all 0.3s;
}

.project-card:hover .project-placeholder {
    opacity: 0.3;
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.project-card:hover .project-links {
    transform: translateY(0);
}

.project-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-link:hover {
    transform: scale(1.1);
    background: var(--accent-primary);
    color: white;
}

.project-content {
    padding: 25px;
}

.project-card.featured .project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.project-tag {
    padding: 6px 12px;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-card.featured .project-content h3 {
    font-size: 1.8rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-card:hover .project-glow {
    opacity: 1;
}

.projects-cta {
    text-align: center;
    margin-top: 50px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Marquee */
.specs-section {
    margin: 80px 0;
    overflow: hidden;
    padding: 30px 0;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.marquee-container {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-dot {
    color: var(--accent-primary);
}

/* CTA Section */
.cta-section {
    margin: 100px 0;
    text-align: center;
    padding: 60px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 30px -10px rgba(0, 102, 204, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(0, 102, 204, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 102, 204, 0.1);
}

/* Footer */
.main-footer {
    margin-top: 100px;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}

/* Print Header - Solo visible en impresión */
.print-header {
    display: none;
    background: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
    color: white;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 16px;
    text-align: center;
}

.print-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.print-title {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.print-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.print-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cv-container {
        padding: 90px 20px 50px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card.featured {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
    
    .project-card.featured .project-image {
        height: 250px;
        min-height: auto;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .photo-orbit {
        width: 350px;
        height: 350px;
    }
    
    .photo-container {
        width: 250px;
        height: 250px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skills-matrix {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-widget {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 15px 20px;
        background: var(--bg-primary);
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 101;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 100;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.3rem;
    }
    
    .theme-toggle {
        top: 15px;
        right: 70px;
        width: 50px;
        height: 50px;
    }
    
    .admin-btn {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        white-space: normal;
        border: none;
        animation: none;
        width: 100%;
    }
    
    .hero-contact {
        justify-content: center;
    }
    
    .contact-pill {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .photo-orbit {
        width: 280px;
        height: 280px;
    }
    
    .photo-container {
        width: 200px;
        height: 200px;
    }
    
    .floating-badges {
        display: none;
    }
    
    .timeline-container {
        padding-left: 20px;
    }
    
    .glass-card {
        padding: 25px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .dashboard-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .project-categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
    
    .project-card.featured .project-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .photo-orbit {
        width: 240px;
        height: 240px;
    }
    
    .photo-container {
        width: 180px;
        height: 180px;
    }
    
    .contact-pill span {
        display: none;
    }
    
    .contact-pill i {
        margin: 0;
    }
    
    .contact-pill {
        padding: 12px;
    }
    
    .skills-matrix,
    .education-grid,
    .projects-grid {
        gap: 15px;
    }
    
    .timeline-card {
        margin-bottom: 30px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .chat-widget {
        bottom: 80px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .category-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .category-btn i {
        display: none;
    }
}


























/* ============================================
   ESTILOS DE IMPRESIÓN - PDF PERFECTO
   ============================================ */

@media print {
    @page {
        size: A4;
        margin: 15mm;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        background: white !important;
        color: #0a192f !important;
        font-size: 11pt;
        line-height: 1.4;
    }
    
    /* Ocultar elementos innecesarios */
    .no-print,
    .bg-animation,
    .chat-widget,
    .admin-btn,
    .theme-toggle,
    .modal,
    .mobile-menu-btn,
    .marquee-container,
    .floating-badges,
    .orbit-ring,
    .marker-pulse,
    .skill-shine,
    .project-categories,
    .project-overlay,
    .project-glow,
    .edu-glow,
    /* NUEVO: Ocultar CTA section y footer específicos */
    .cta-section,
    .main-footer {
        display: none !important;
    }
    
    /* ===== HEADER DE IMPRESIÓN CON FOTO Y NOMBRE ===== */
    .print-header {
        display: flex !important;
        align-items: center;
        gap: 25px;
        padding: 25px 0;
        border-bottom: 3px solid #0066CC;
        margin-bottom: 30px;
        page-break-inside: avoid;
    }
    
    .print-header .profile-photo {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #0066CC;
        box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    }
    
    .print-header .header-info {
        flex: 1;
    }
    
    .print-header .header-info h1 {
        font-size: 28pt;
        color: #f8f8f8 !important;
        margin: 0 0 8px 0;
        font-weight: 700;
        letter-spacing: -0.5px;
    }
    
    .print-header .header-info .title {
        font-size: 14pt;
        color: #ffffff !important;
        margin: 0 0 5px 0;
        font-weight: 500;
    }
    
    .print-header .header-info .subtitle {
        font-size: 11pt;
        color: #f6f8fa !important;
        margin: 0;
    }
    
    /* Ocultar hero section original (se reemplaza por print-header) */
    .hero-section {
        display: none !important;
    }
    
    .main-nav {
        position: relative;
        background: white !important;
        padding: 10px 0;
        border-bottom: 2px solid #0066CC;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .cv-container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    /* Glass cards en impresión */
    .glass-card {
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
        padding: 20px !important;
        margin: 15px 0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
        border-radius: 12px;
    }
    
    /* Sección Sobre Mí - CÓDIGO NEGRO CONSERVADO */
    .about-section {
        margin: 20px 0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px;
    }
    
    /* BLOQUE DE CÓDIGO - SE MANTIENE NEGRO ESPECTACULAR */
    .code-block {
        background: #1e1e2e !important;
        border: 1px solid #313244 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .code-header {
        background: #313244 !important;
        border-bottom: 1px solid #45475a !important;
    }
    
    .code-dots span:nth-child(1) { background: #ff5f56 !important; }
    .code-dots span:nth-child(2) { background: #ffbd2e !important; }
    .code-dots span:nth-child(3) { background: #27ca40 !important; }
    
    .code-content {
        background: #1e1e2e !important;
        color: #cdd6f4 !important;
        font-size: 9pt !important;
        line-height: 1.6 !important;
    }
    
    .code-keyword { color: #ff79c6 !important; }
    .code-variable { color: #8be9fd !important; }
    .code-property { color: #50fa7b !important; }
    .code-string { color: #f1fa8c !important; }
    
    /* Texto sobre mí */
    .about-text {
        color: #4a5568 !important;
        font-size: 10pt;
    }
    
    .highlight-text {
        font-size: 11pt;
        color: #0a192f !important;
    }
    
    .accent {
        color: #0066CC !important;
        background: none !important;
        -webkit-text-fill-color: #0066CC !important;
    }
    
    /* Headers */
    .section-header {
        margin-bottom: 15px;
        page-break-after: avoid;
        break-after: avoid;
    }
    
    .section-header h2 {
        font-size: 16pt !important;
        color: #0066CC !important;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
        background: #0066CC !important;
        border-radius: 8px;
    }
    
    .section-subtitle {
        color: #718096 !important;
        font-size: 10pt;
        position: relative;
        top: 8px;
    }
    
    /* Skills */
    .skills-section {
        margin: 20px 0 !important;
    }
    
    .skills-matrix {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
    }
    
    .skill-category {
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        padding: 15px !important;
        page-break-inside: avoid;
        break-inside: avoid;
        border-top: 3px solid #0066CC !important;
    }
    
    .skill-category h3 {
        font-size: 12pt;
        color: #0066CC !important;
    }
    
    .skill-bar {
        background: #e2e8f0 !important;
        height: 6px;
    }
    
    .skill-progress {
        background: #0066CC !important;
    }
    
    .skill-info {
        font-size: 9pt;
    }
    
    .skill-percent {
        color: #0066CC !important;
    }
    
    /* Timeline */
    .experience-section {
        margin: 20px 0 !important;
    }
    
    .timeline-container {
        padding-left: 25px;
    }
    
    .timeline-line {
        background: #e2e8f0 !important;
        left: 10px;
    }
    
    .timeline-progress {
        background: #0066CC !important;
    }
    
    .timeline-marker {
        width: 12px;
        height: 12px;
        left: -26px;
        border-color: #0066CC !important;
        background: white !important;
    }
    
    .timeline-card.active .timeline-marker {
        background: #0066CC !important;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-content h3 {
        font-size: 12pt;
        color: #0066CC !important;
    }
    
    .company {
        color: #004C99 !important;
        font-size: 10pt;
    }
    
    .description {
        color: #4a5568 !important;
        font-size: 9pt;
    }
    
    .date-badge {
        background: #f0f4f8 !important;
        color: #4a5568 !important;
        font-size: 8pt;
    }
    
    .status-badge.active {
        background: rgba(34, 197, 94, 0.1) !important;
        color: #22c55e !important;
        border: 1px solid rgba(34, 197, 94, 0.3) !important;
    }
    
    .tech-tag {
        background: rgba(0, 102, 204, 0.1) !important;
        color: #0066CC !important;
        border: 1px solid rgba(0, 102, 204, 0.2) !important;
        padding: 4px 10px;
        font-size: 8pt;
    }
    
    /* Education */
    .education-section {
        margin: 20px 0 !important;
    }
    
    .education-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .edu-card {
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        padding: 15px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .edu-card.featured {
        grid-column: 1 / -1;
        background: #0066CC !important;
        color: white !important;
    }
    
    .edu-card.featured h3,
    .edu-card.featured p {
        color: white !important;
    }
    
    .edu-icon {
        width: 40px;
        height: 40px;
        background: #f0f4f8 !important;
        color: #0066CC !important;
    }
    
    .edu-card.featured .edu-icon {
        background: rgba(255,255,255,0.2) !important;
        color: white !important;
    }
    
    .edu-level {
        background: rgba(0, 102, 204, 0.1) !important;
        color: #0066CC !important;
        font-size: 7pt;
    }
    
    .edu-card.featured .edu-level {
        background: rgba(255,255,255,0.2) !important;
        color: white !important;
    }
    
    .edu-content h3 {
        font-size: 11pt;
        color: #0a192f !important;
    }
    
    .edu-card.featured .edu-content h3 {
        color: white !important;
    }
    
    .edu-institution {
        color: #718096 !important;
        font-size: 9pt;
    }
    
    .edu-card.featured .edu-institution {
        color: rgba(255,255,255,0.8) !important;
    }
    
    /* Projects Section en PDF */
    .projects-section {
        margin: 20px 0 !important;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .project-card {
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    }
    
    .project-card.featured {
        grid-column: 1 / -1;
        display: block;
    }
    
    .project-image {
        height: 120px !important;
        background: #f0f4f8 !important;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .project-placeholder {
        font-size: 2.5rem;
        color: #0066CC !important;
        opacity: 0.6 !important;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-tags {
        margin-bottom: 10px;
    }
    
    .project-tag {
        background: rgba(0, 102, 204, 0.1) !important;
        color: #0066CC !important;
        border: 1px solid rgba(0, 102, 204, 0.2) !important;
        font-size: 7pt;
        padding: 3px 8px;
    }
    
    .project-content h3 {
        font-size: 11pt;
        color: #0066CC !important;
        margin-bottom: 8px;
    }
    
    .project-content p {
        font-size: 9pt;
        color: #4a5568 !important;
        line-height: 1.5;
    }
    
    /* Gradient text fallback */
    .gradient-text,
    .glitch-text {
        color: #0066CC !important;
        background: none !important;
        -webkit-text-fill-color: #0066CC !important;
    }
    
    /* Código mantenido perfecto */
    pre, code {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        font-family: 'JetBrains Mono', monospace !important;
    }
    
    /* Evitar cortes de página */
    section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .about-section,
    .skills-section,
    .experience-section,
    .education-section,
    .projects-section {
        margin: 20px 0 !important;
    }
    
    .skill-item,
    .timeline-card,
    .edu-card,
    .project-card {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    /* Mostrar todos los proyectos en PDF sin filtro */
    .project-card {
        display: block !important;
    }
    
    /* Quitar sombras y efectos de glassmorphism en impresión */
    .glass-card,
    .skill-category,
    .edu-card,
    .project-card,
    .timeline-content {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* ============================================
   ESTILOS PANTALLA (SCREEN) - HEADER OCULTO
   ============================================ */

@media screen {
    /* Ocultar el header de impresión en pantalla */
    .print-header {
        display: none !important;
    }
}

/* Animaciones de entrada suaves */
@media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }
    
    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Selección de texto */
::selection {
    background: rgba(0, 102, 204, 0.3);
    color: var(--text-primary);
}














/* ============================================
   CATEGORÍAS DE PROYECTOS - NAVEGACIÓN
   ============================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 10px 30px -10px rgba(0, 102, 204, 0.5);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px -10px rgba(0, 102, 204, 0.6);
}

.category-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 25px;
    background: var(--gradient-1);
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.3s;
}

.category-card:hover .category-icon::after {
    opacity: 0.5;
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.category-card:hover .category-content h3 {
    color: var(--accent-primary);
}

.category-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.category-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.project-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 600;
    background: rgba(0, 102, 204, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
}

.category-stats i {
    color: var(--text-muted);
    transition: all 0.3s;
    font-size: 1.2rem;
}

.category-card:hover .category-stats i {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.category-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.category-card:hover .category-glow {
    opacity: 1;
}

/* Categoría destacada (Ver Todos) */
.category-card.featured-category {
    grid-column: 1 / -1;
    flex-direction: row;
    text-align: left;
    padding: 50px;
    background: var(--gradient-1);
    border-color: transparent;
}

.category-card.featured-category .category-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
    margin-right: 30px;
    flex-shrink: 0;
}

.category-card.featured-category .category-content {
    flex: 1;
}

.category-card.featured-category .category-content h3 {
    color: white;
    font-size: 1.8rem;
}

.category-card.featured-category .category-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.category-card.featured-category .category-stats {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.category-card.featured-category .project-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.category-card.featured-category .category-stats i {
    color: rgba(255, 255, 255, 0.8);
}

.category-card.featured-category:hover .category-stats i {
    color: white;
}

.category-card.featured-category .category-glow {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-card.featured-category {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        padding: 30px 20px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .category-card.featured-category {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .category-card.featured-category .category-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .category-card.featured-category .category-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .category-content h3 {
        font-size: 1.2rem;
    }
    
    .category-content p {
        font-size: 0.85rem;
    }
    
    .project-count {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* ============================================
   PDF - OCULTAR SECCIÓN PROYECTOS
   ============================================ */

@media print {
    /* Ocultar toda la sección de proyectos */
    .projects-section {
        display: none !important;
    }
    
    /* También ocultar elementos relacionados a proyectos */
    .projects-grid,
    .project-categories,
    .category-card,
    .categories-grid {
        display: none !important;
    }
}





























/* ============================================
   CATEGORÍAS DE PROYECTOS - NAVEGACIÓN COMPLETA
   ============================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px 25px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    min-height: 280px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--accent-primary);
    box-shadow: 0 25px 50px -12px rgba(0, 102, 204, 0.25);
}

.category-icon {
    width: 75px;
    height: 75px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 102, 204, 0.4);
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 20px 40px -10px rgba(0, 102, 204, 0.6);
}

.category-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 28px;
    background: var(--gradient-1);
    opacity: 0;
    z-index: -1;
    filter: blur(25px);
    transition: opacity 0.4s;
}

.category-card:hover .category-icon::after {
    opacity: 0.6;
}

.category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.category-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: color 0.3s;
    font-weight: 700;
}

.category-card:hover .category-content h3 {
    color: var(--accent-primary);
}

.category-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.category-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.project-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
    background: rgba(0, 102, 204, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.category-stats i {
    color: var(--text-muted);
    transition: all 0.3s;
    font-size: 1.1rem;
}

.category-card:hover .category-stats i {
    color: var(--accent-primary);
    transform: translateX(8px);
}

.category-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.category-card:hover .category-glow {
    opacity: 1;
}

/* Categoría destacada - Inteligencia Artificial */
.category-card.featured-ia {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 168, 232, 0.1) 100%);
    border: 2px solid rgba(0, 102, 204, 0.3);
}

.category-card.featured-ia .category-icon {
    background: linear-gradient(135deg, #0066CC 0%, #00a8e8 100%);
    box-shadow: 0 10px 30px -10px rgba(0, 168, 232, 0.5);
}

.category-card.featured-ia:hover {
    border-color: #00a8e8;
    box-shadow: 0 25px 50px -12px rgba(0, 168, 232, 0.3);
}

/* Responsive Categorías */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        min-height: auto;
        padding: 30px 20px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ============================================
   PÁGINAS DE CATEGORÍA - SUBCATEGORÍAS
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a:hover {
    color: var(--accent-secondary);
    transform: translateX(-3px);
}

.breadcrumb i {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.category-header-section {
    margin-bottom: 40px;
}

.category-header-section .section-header {
    flex-direction: column;
    text-align: center;
}

/* Grid de Subcategorías */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.subcategory-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
}

.subcategory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.subcategory-card:hover::before {
    opacity: 0.05;
}

.subcategory-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.subcategory-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    box-shadow: 0 8px 20px -8px rgba(0, 102, 204, 0.4);
}

.subcategory-card:hover .subcategory-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px -10px rgba(0, 102, 204, 0.5);
}

.subcategory-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.subcategory-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.subcategory-card:hover .subcategory-content h4 {
    color: var(--accent-primary);
}

.subcategory-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 5px 12px;
    border-radius: 15px;
    display: inline-block;
    transition: all 0.3s;
}

.subcategory-card:hover .subcategory-count {
    background: rgba(0, 102, 204, 0.1);
    color: var(--accent-primary);
}

/* Sección de Proyectos por Categoría */
.category-projects-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.category-projects-section .section-header {
    margin-bottom: 30px;
}

/* Grid de Proyectos Finales */
.projects-final-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-final-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.project-final-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.project-final-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.project-final-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.6;
    transition: all 0.4s;
}

.project-final-card:hover .project-final-placeholder {
    opacity: 0.4;
    transform: scale(1.1);
}

.project-final-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s;
    backdrop-filter: blur(5px);
}

.project-final-card:hover .project-final-overlay {
    opacity: 1;
}

.project-final-links {
    display: flex;
    gap: 15px;
    transform: translateY(30px);
    transition: transform 0.4s;
}

.project-final-card:hover .project-final-links {
    transform: translateY(0);
}

.project-final-link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.project-final-link:hover {
    transform: scale(1.15);
    background: var(--accent-primary);
    color: white;
}

.project-final-content {
    padding: 25px;
}

.project-final-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.project-final-tag {
    padding: 5px 12px;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
}

.project-final-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-final-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-final-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-final-card:hover .project-final-glow {
    opacity: 1;
}

/* Botón de volver */
.back-section {
    margin: 50px 0;
    text-align: center;
}

.back-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Responsive páginas de categoría */
@media (max-width: 768px) {
    .subcategories-grid {
        grid-template-columns: 1fr;
    }
    
    .subcategory-card {
        padding: 25px;
    }
    
    .projects-final-grid {
        grid-template-columns: 1fr;
    }
    
    .project-final-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .subcategory-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .subcategory-content h4 {
        font-size: 1.1rem;
    }
    
    .project-final-content h3 {
        font-size: 1.15rem;
    }
}

/* ============================================
   PDF - OCULTAR SECCIÓN PROYECTOS COMPLETA
   ============================================ */

@media print {
    /* Ocultar toda la sección de proyectos y navegación relacionada */
    .projects-section,
    .categories-grid,
    .category-card,
    .breadcrumb,
    .subcategories-grid,
    .subcategory-card,
    .category-projects-section,
    .projects-final-grid,
    .project-final-card,
    .back-section {
        display: none !important;
    }
}

















/* ============================================
   TRIO ICONS - HTML5 + CSS3 + JS
   ============================================ */

.subcategory-icon.trio-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    position: relative;
    width: 70px;
    height: 60px;
}

.trio-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: absolute;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.trio-html {
    background: linear-gradient(135deg, #E34F26 0%, #EF652A 100%);
    color: white;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.trio-css {
    background: linear-gradient(135deg, #264DE4 0%, #2965F1 100%);
    color: white;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
}

.trio-js {
    background: linear-gradient(135deg, #F0DB4F 0%, #F7DF1E 100%);
    color: #323330;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.subcategory-card:hover .trio-icon {
    transform: translateY(-50%) scale(1.1);
}

.subcategory-card:hover .trio-html {
    transform: translateY(-60%) translateX(-5px) scale(1.15) rotate(-10deg);
}

.subcategory-card:hover .trio-css {
    transform: translateX(-50%) translateY(-10px) scale(1.15);
}

.subcategory-card:hover .trio-js {
    transform: translateY(-60%) translateX(5px) scale(1.15) rotate(10deg);
}














/* ============================================
   MODAL DE EMAIL
   ============================================ */

.email-modal {
    max-width: 450px;
    text-align: center;
}

.email-modal h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.email-modal h2 i {
    color: var(--accent-primary);
}

.email-modal > p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.checkbox-group {
    text-align: left;
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 5px;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 5px;
    background: var(--bg-primary);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkbox-label:hover .checkmark {
    border-color: var(--accent-primary);
}

.checkbox-label input:checked ~ .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkmark::after {
    content: '';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    display: none;
}

.checkbox-label input:checked ~ .checkmark::after {
    display: block;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   TOAST DE NOTIFICACIONES
   ============================================ */

.notification-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 3000;
    max-width: 400px;
    animation: slide-in-right 0.3s ease;
}

.notification-toast.hidden {
    display: none;
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-lg), 0 10px 40px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--accent-primary);
}

.toast-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    min-width: 0;
}

.toast-message strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.toast-message span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ============================================
   MEJORAS EN MENSAJES DEL CHAT
   ============================================ */

.message-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 5px;
}

.read-status {
    color: var(--accent-primary);
    font-size: 0.7rem;
    opacity: 0.6;
}

.message.read .read-status {
    opacity: 1;
}

.read-status i {
    font-size: 0.65rem;
}

/* Indicador de escribiendo */
.message.typing {
    background: var(--bg-tertiary);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.typing-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   DASHBOARD MEJORADO - INFO DE USUARIO
   ============================================ */

.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-item-header strong {
    color: var(--accent-primary);
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-item-header .user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
    display: block;
    margin-top: 2px;
}

.chat-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 8px 0;
    line-height: 1.4;
}

.chat-item small {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-item small::before {
    content: '\\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
}

/* Indicador de typing en lista de chats */
.chat-item.typing {
    border-color: var(--accent-primary);
    background: rgba(0, 102, 204, 0.05);
}

.chat-item.typing::after {
    content: 'escribiendo...';
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-style: italic;
    animation: pulse 1.5s infinite;
}

/* ============================================
   ANIMACIONES ADICIONALES
   ============================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Efecto de "nuevo mensaje" en el widget */
.chat-widget.has-new {
    animation: widget-pulse 2s infinite;
}

@keyframes widget-pulse {
    0%, 100% {
        box-shadow: var(--shadow-lg);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0.1), var(--shadow-lg);
    }
}

/* Badge de notificación mejorado */
.unread-badge {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: badge-pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ============================================
   RESPONSIVE PARA NUEVOS ELEMENTOS
   ============================================ */

@media (max-width: 768px) {
    .notification-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 80px;
    }
    
    .toast-content {
        padding: 15px;
    }
    
    .email-modal {
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .typing-text {
        display: none;
    }
    
    .message.typing {
        min-width: 60px;
        justify-content: center;
    }
}















/* ============================================
   BOTÓN CERRAR EN MODAL DE EMAIL
   ============================================ */

.email-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.email-close:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    transform: rotate(90deg);
}

/* Ajuste para el modal de email con el botón de cerrar */
.email-modal {
    position: relative;
    padding-top: 50px;
}

/* ============================================
   BOTONES DE BORRAR EN CHATS DEL ADMIN
   ============================================ */

.chat-item {
    position: relative;
    padding-right: 45px; /* Espacio para el botón de borrar */
}

.chat-delete-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s;
    z-index: 2;
}

.chat-item:hover .chat-delete-btn {
    opacity: 1;
}

.chat-delete-btn:hover {
    background: #ff4757;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Confirmación de borrado */
.chat-item.deleting {
    animation: slide-out-left 0.3s forwards;
}

@keyframes slide-out-left {
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Modal de confirmación de borrado */
.delete-confirm-modal {
    max-width: 400px;
    text-align: center;
}

.delete-confirm-modal h3 {
    color: #ff4757;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.delete-confirm-modal p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.delete-confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 71, 87, 0.4);
}

/* Animación de shake para advertencia */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.delete-confirm-modal.shake {
    animation: shake 0.5s;
}























/* ============================================
   EDITOR DE PROYECTOS - ADMIN DASHBOARD
   ============================================ */

#projectsTab .form-group {
    margin-bottom: 20px;
}

#projectsTab label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

#projectsTab input[type="text"],
#projectsTab input[type="url"],
#projectsTab textarea,
#projectsTab select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

#projectsTab input:focus,
#projectsTab textarea:focus,
#projectsTab select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

#projectsTab select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

#projectsTab small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
}

#projectsTab small code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

#projectsEditor hr {
    border: none;
    border-top: 2px solid var(--glass-border);
    margin: 25px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

#projectsTab .checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-secondary);
}

#projectsTab .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.form-actions .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.form-actions .btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
    margin-left: auto;
}

.form-actions .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 71, 87, 0.4);
}

.project-preview {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
}

.project-preview h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.preview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

/* Estilos para las tarjetas de proyectos en las páginas de categoría */
.projects-final-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-final-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.project-final-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.project-final-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-final-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.6;
    transition: all 0.4s;
}

.project-final-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-final-card:hover .project-final-placeholder {
    opacity: 0.4;
    transform: scale(1.1);
}

.project-final-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s;
    backdrop-filter: blur(5px);
}

.project-final-card:hover .project-final-overlay {
    opacity: 1;
}

.project-final-links {
    display: flex;
    gap: 15px;
    transform: translateY(30px);
    transition: transform 0.4s;
}

.project-final-card:hover .project-final-links {
    transform: translateY(0);
}

.project-final-link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.project-final-link:hover {
    transform: scale(1.15);
    background: var(--accent-primary);
    color: white;
}

.project-final-content {
    padding: 25px;
}

.project-final-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.project-final-tag {
    padding: 5px 12px;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
}

.project-final-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-final-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-final-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-final-card:hover .project-final-glow {
    opacity: 1;
}

/* Estado vacío para categorías sin proyectos */
.empty-projects {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-projects i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-projects h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-projects p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}






















/* Estilos para el admin de proyectos */
.projects-admin-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.admin-projects-list {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.admin-project-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.admin-project-item:hover {
    border-color: var(--unir-blue);
    transform: translateX(5px);
}

.admin-project-info {
    flex: 1;
    min-width: 0;
}

.admin-project-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-project-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-project-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.admin-project-image i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.admin-project-actions {
    display: flex;
    gap: 8px;
}

.project-form-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
}

#projectImageFile {
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

#imagePreview {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Scrollbar personalizada para el contenedor */
.projects-admin-container::-webkit-scrollbar {
    width: 8px;
}

.projects-admin-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.projects-admin-container::-webkit-scrollbar-thumb {
    background: var(--unir-blue);
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-project-actions {
        width: 100%;
        justify-content: flex-end;
    }
}






























.admin-message.sending {
    opacity: 0.6;
}

.admin-message.sending .message-meta i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-messages {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

.error-text {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
}



























/* ============================================
   SISTEMA DE CANDADOS - CSS CORREGIDO
   ============================================ */

/* ---------- Grid de Categorías Públicas ---------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px 25px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    min-height: 280px;
}

/* ============================================
SISTEMA DE CANDADOS - CORREGIDO Y FUNCIONAL
============================================ */





/* ---------- Animación del Candado ---------- */
@keyframes pulse-lock {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1); 
        opacity: 0.8; 
    }
}

/* ---------- Mensaje de Categoría Bloqueada ---------- */
.category-locked-message {
    text-align: center;
    padding: 80px 40px;
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: 24px;
    margin: 40px auto;
    max-width: 600px;
}

.category-locked-message i {
    font-size: 5rem;
    margin-bottom: 25px;
    color: #ff4757;
    opacity: 0.8;
    animation: float-lock 3s ease-in-out infinite;
}

@keyframes float-lock {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.category-locked-message h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.category-locked-message p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.category-locked-message .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}





/* ---------- Subcategorías con Candados ---------- */
.subcategory-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative; /* IMPORTANTE: para posicionar el overlay */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}







/* ============================================
   PANEL ADMIN DE LOCKS - CORREGIDO
   ============================================ */

/* FIX: ELIMINAR display: none; de .lock-subcategories 
   La visibilidad se controla con la clase .active */

/* Estado por defecto: visible (grid) */
.lock-subcategories {
    display: grid;
    padding: 0 20px 20px;
    background: var(--bg-primary);
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    /* Animación suave */
    max-height: 1000px;
    opacity: 1;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* FIX: Cuando NO tiene la clase active, colapsar pero mantener en DOM */
.lock-subcategories:not(.active) {
    display: none; /* Esto funciona porque tiene menor especificidad que .active */
}

/* FIX: Cuando SÍ tiene la clase active, mostrar como grid */
.lock-subcategories.active {
    display: grid !important; /* Forzar con !important para sobreescribir cualquier otra regla */
    animation: expandDown 0.3s ease;
}

@keyframes expandDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FIX: Responsive para subcategorías en admin */
@media (max-width: 768px) {
    .lock-subcategories,
    .lock-subcategories.active {
        grid-template-columns: 1fr;
    }
}

/* ---------- Item de Subcategoría en Admin ---------- */
.lock-subitem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: all 0.3s;
}

.lock-subitem:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.lock-subitem.locked {
    opacity: 0.7;
    background: rgba(255, 71, 87, 0.05);
    border-color: rgba(255, 71, 87, 0.2);
}

.lock-subitem.unlocked {
    background: rgba(46, 213, 115, 0.05);
    border-color: rgba(46, 213, 115, 0.2);
}

.lock-subitem span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.lock-subitem i {
    font-size: 0.9rem;
}

.lock-subitem.locked i {
    color: #ff4757;
}

.lock-subitem.unlocked i {
    color: #2ed573;
}

/* ---------- Botón Toggle Individual ---------- */
.lock-toggle-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 130px;
    justify-content: center;
}

.lock-toggle-btn.lock {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
}

.lock-toggle-btn.unlock {
    background: linear-gradient(135deg, #2ed573 0%, #26de81 100%);
    color: white;
}

.lock-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.2);
}

.lock-toggle-btn:active {
    transform: translateY(0);
}

.lock-toggle-btn.small {
    padding: 8px 15px;
    min-width: auto;
    font-size: 0.85rem;
}

.lock-toggle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   MENSAJE DE CATEGORÍA BLOQUEADA
   ============================================ */

.category-locked-message {
    text-align: center;
    padding: 80px 40px;
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: 24px;
    margin: 40px auto;
    max-width: 600px;
}

.category-locked-message i {
    font-size: 5rem;
    margin-bottom: 25px;
    color: #ff4757;
    opacity: 0.8;
    animation: float-lock 3s ease-in-out infinite;
}

@keyframes float-lock {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.category-locked-message h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.category-locked-message p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.category-locked-message .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   IMPRESIÓN (OCULTAR EN PDF)
   ============================================ */

@media print {
    .categories-grid,
    .category-card,
    .lock-overlay,
    .locks-admin-container,
    .locks-actions,
    .locks-header,
    .lock-category,
    .lock-subcategories,
    .category-locked-message,
    .subcategory-card.locked .lock-overlay {
        display: none !important;
    }
}






























/* AÑADIR/VERIFICAR en styles.css */

/* ---------- Subcategorías Bloqueadas ---------- */
.subcategory-card {
    position: relative;
    /* ... tus estilos existentes ... */
}





@keyframes pulse-lock {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ---------- Candados en Admin ---------- */
.lock-subcategories {
    display: none; /* Oculto por defecto, se muestra con toggle */
    padding: 0 20px 20px;
    background: var(--bg-primary);
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.lock-subcategories.active {
    display: grid;
}

.lock-subitem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: all 0.3s;
}

.lock-subitem.locked {
    opacity: 0.7;
    background: rgba(255, 71, 87, 0.05);
    border-color: rgba(255, 71, 87, 0.2);
}

.lock-subitem.unlocked {
    background: rgba(46, 213, 115, 0.05);
    border-color: rgba(46, 213, 115, 0.2);
}













/* ============================================
SISTEMA DE CANDADOS - CSS CORREGIDO Y FUNCIONAL
============================================ */

/* ---------- Categorías Bloqueadas ---------- */
.category-card.locked {
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.category-card.locked::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    z-index: 10;
}

.category-card.locked::after {
    content: '\f023';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-style: normal;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: #23e40a;
    z-index: 11;
    animation: pulse-lock 2s infinite;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
}

.category-card.locked .category-icon,
.category-card.locked .category-content,
.category-card.locked .category-stats {
    position: relative;
    z-index: 5;
    opacity: 0.3;
    filter: blur(2px);
}

/* ---------- Subcategorías Bloqueadas ---------- */
.subcategory-card.locked {
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.subcategory-card.locked::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    z-index: 10;
}

.subcategory-card.locked::after {
    content: '\f023';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-style: normal;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #ff4757;
    z-index: 11;
    animation: pulse-lock 2s infinite;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
}

.subcategory-card.locked .subcategory-icon,
.subcategory-card.locked .subcategory-content {
    position: relative;
    z-index: 5;
    opacity: 0.3;
    filter: blur(2px);
}

/* ---------- Animación Candado ---------- */
@keyframes pulse-lock {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* ---------- Mensaje de Categoría Bloqueada ---------- */
.category-locked-message {
    text-align: center;
    padding: 80px 40px;
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: 24px;
    margin: 40px auto;
    max-width: 600px;
    display: none;
}

.category-locked-message i {
    font-size: 5rem;
    margin-bottom: 25px;
    color: #ff4757;
    opacity: 0.8;
    animation: float-lock 3s ease-in-out infinite;
}

@keyframes float-lock {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.category-locked-message h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.category-locked-message p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.category-locked-message .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .category-card.locked::after {
        font-size: 2.5rem;
    }
    
    .subcategory-card.locked::after {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .category-card.locked::after {
        font-size: 2rem;
    }
    
    .subcategory-card.locked::after {
        font-size: 2rem;
    }
}

/* ---------- Panel Admin de Candados ---------- */
.lock-subcategories {
    display: grid;
    padding: 0 20px 20px;
    background: var(--bg-primary);
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 1000px;
    opacity: 1;
    transition: all 0.3s ease;
    overflow: hidden;
}

.lock-subcategories:not(.active) {
    display: none;
}

.lock-subcategories.active {
    display: grid !important;
    animation: expandDown 0.3s ease;
}

@keyframes expandDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lock-subitem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: all 0.3s;
}

.lock-subitem:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.lock-subitem.locked {
    opacity: 0.7;
    background: rgba(255, 71, 87, 0.05);
    border-color: rgba(255, 71, 87, 0.2);
}

.lock-subitem.unlocked {
    background: rgba(46, 213, 115, 0.05);
    border-color: rgba(46, 213, 115, 0.2);
}

.lock-subitem span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.lock-toggle-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 130px;
    justify-content: center;
}

.lock-toggle-btn.lock {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
}

.lock-toggle-btn.unlock {
    background: linear-gradient(135deg, #2ed573 0%, #26de81 100%);
    color: white;
}

.lock-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.2);
}

.lock-toggle-btn:active {
    transform: translateY(0);
}


































/* ============================================
PANEL ADMIN DE CANDADOS
============================================ */
.locks-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.locks-actions .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid de Subcategorías en Admin */
.lock-subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.lock-subitem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lock-subitem:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
    background: rgba(0, 102, 204, 0.05);
}

.lock-subitem.locked {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
}

.lock-subitem.unlocked {
    background: rgba(46, 213, 115, 0.1);
    border-color: rgba(46, 213, 115, 0.3);
}

.lock-subitem span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.lock-toggle-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.lock-toggle-btn.lock {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
}

.lock-toggle-btn.unlock {
    background: linear-gradient(135deg, #2ed573 0%, #26de81 100%);
    color: white;
}

.lock-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.2);
}

.lock-toggle-btn:active {
    transform: translateY(0);
}

.lock-toggle-btn i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .locks-actions {
        flex-direction: column;
    }
    
    .lock-subcategories {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .lock-subitem {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .lock-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}

















/* ============================================
PANEL ADMIN DE CANDADOS
============================================ */
.locks-admin-container {
    padding: 20px;
}

.locks-header h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.locks-header p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.locks-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.locks-actions .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid de Subcategorías en Admin */
.lock-subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.lock-subitem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lock-subitem:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
    background: rgba(0, 102, 204, 0.05);
}

.lock-subitem.locked {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
}

.lock-subitem.unlocked {
    background: rgba(46, 213, 115, 0.1);
    border-color: rgba(46, 213, 115, 0.3);
}

.lock-subitem span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.lock-toggle-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.lock-toggle-btn.lock {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
}

.lock-toggle-btn.unlock {
    background: linear-gradient(135deg, #2ed573 0%, #26de81 100%);
    color: white;
}

.lock-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.2);
}

.lock-toggle-btn:active {
    transform: translateY(0);
}

.lock-toggle-btn i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .locks-actions {
        flex-direction: column;
    }
    
    .lock-subcategories {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .lock-subitem {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .lock-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}























/* ============================================
PANEL ADMIN DE CANDADOS
============================================ */
.locks-admin-container {
    padding: 20px;
}

.locks-header h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.locks-header p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.locks-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.locks-actions .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid de Subcategorías en Admin */
.lock-subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.lock-subitem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lock-subitem:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
    background: rgba(0, 102, 204, 0.05);
}

.lock-subitem.locked {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
}

.lock-subitem.unlocked {
    background: rgba(46, 213, 115, 0.1);
    border-color: rgba(46, 213, 115, 0.3);
}

.lock-subitem span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.lock-toggle-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.lock-toggle-btn.lock {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
}

.lock-toggle-btn.unlock {
    background: linear-gradient(135deg, #2ed573 0%, #26de81 100%);
    color: white;
}

.lock-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.2);
}

.lock-toggle-btn:active {
    transform: translateY(0);
}

.lock-toggle-btn i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .locks-actions {
        flex-direction: column;
    }
    
    .lock-subcategories {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .lock-subitem {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .lock-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}











/* Responsive para la sección de proyectos en dispositivos móviles */
@media (max-width: 768px) {
  .projects-section {
    padding: 0 15px;
  }
  
  .project-categories {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 10px;
  }
  
  .category-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-width: 120px;
  }
  
  .category-btn i {
    display: none;
  }
  
  /* Ajuste de la cuadrícula para tablets y móviles */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Ajustes para tarjetas en dispositivos móviles */
  .project-card {
    border-radius: 16px;
    overflow: hidden;
  }
  
  .project-card.featured {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  
  .project-card.featured .project-image {
    height: 220px;
    min-height: 200px;
  }
  
  .project-content {
    padding: 18px 20px;
  }
  
  .project-content h3 {
    font-size: 1.2rem;
  }
  
  .project-content p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .project-tags {
    gap: 6px;
  }
  
  .project-tag {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  
  /* Ajustes para el contenido de las tarjetas */
  .project-card.featured .project-content h3 {
    font-size: 1.4rem;
  }
  
  .project-image {
    height: 180px;
  }
}
/* Responsive para la sección de proyectos en dispositivos móviles */
@media (max-width: 768px) {
  .projects-section {
    padding: 0 15px;
  }
  
  .project-categories {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 10px;
  }
  
  .category-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-width: 120px;
  }
  
  .category-btn i {
    display: none;
  }
  
  /* Ajuste de la cuadrícula para tablets y móviles */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Ajustes para tarjetas en dispositivos móviles */
  .project-card {
    border-radius: 16px;
    overflow: hidden;
  }
  
  .project-card.featured {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  
  .project-card.featured .project-image {
    height: 220px;
    min-height: 200px;
  }
  
  .project-content {
    padding: 18px 20px;
  }
  
  .project-content h3 {
    font-size: 1.2rem;
  }
  
  .project-content p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .project-tags {
    gap: 6px;
  }
  
  .project-tag {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  
  /* Ajustes para el contenido de las tarjetas */
  .project-card.featured .project-content h3 {
    font-size: 1.4rem;
  }
  
  .project-image {
    height: 180px;
  }
}




















/* ---------- Categorías Desbloqueadas (Navegables) ---------- */
.category-card.unlocked {
    cursor: pointer;
    pointer-events: all !important;
}

.category-card.unlocked::before,
.category-card.unlocked::after {
    display: none !important;
}

.category-card.unlocked .category-icon,
.category-card.unlocked .category-content,
.category-card.unlocked .category-stats {
    opacity: 1 !important;
    filter: none !important;
}

/* ---------- Subcategorías Desbloqueadas (Navegables) ---------- */
.subcategory-card.unlocked {
    cursor: pointer;
    pointer-events: all !important;
}

.subcategory-card.unlocked::before,
.subcategory-card.unlocked::after {
    display: none !important;
}

.subcategory-card.unlocked .subcategory-icon,
.subcategory-card.unlocked .subcategory-content {
    opacity: 1 !important;
    filter: none !important;
}