/* ============================================
   CARLOS FERNANDEZ MENDEZ - PORTFOLIO
   Diseño profesional tipo CEO con toques personales
   ============================================ */

/* CSS Variables - Referencias sutiles a series favoritas */
:root {
    --primary: #1a1a1a;
    --primary-light: #2a2a2a;
    --accent: #8b6914; /* Dorado GoT/HotD más oscuro y elegante para modo claro */
    --accent-dark: #6b5010;
    --accent-light: #b8860b;
    --sw-blue: #0052a3; /* Azul más profundo para modo claro */
    --sw-green: #008855; /* Verde más profundo para modo claro */
    --st-red: #b91c1c; /* Rojo más profundo para modo claro */
    --st-dark: #1a1a2e;
    --got-fire: #b8451f; /* Fuego más profundo para modo claro */
    --text-primary: #1a1a1a;
    --text-secondary: #525252;
    --text-light: #737373;
    --bg-main: #f8f8f8;
    --bg-secondary: #f0f0f0;
    --bg-tertiary: #e8e8e8;
    --border: #d4d4d4;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-sw: 0 0 20px rgba(0, 82, 163, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary: #e8e8e8;
    --primary-light: #d0d0d0;
    --accent: #c9a961;
    --accent-dark: #8b6f3d;
    --sw-blue: #4a9eff;
    --sw-green: #00ff88;
    --st-red: #e63946;
    --st-dark: #1a1a2e;
    --got-fire: #ff6b35;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-light: #808080;
    --bg-main: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --border: #2a2a2a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-sw: 0 0 20px rgba(74, 158, 255, 0.5);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mejora del modo claro - fondo más suave y cálido */
:root body {
    background: linear-gradient(180deg, #f8f8f8 0%, #f5f5f5 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(248, 248, 248, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .header {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.brand-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.brand-link:hover .brand-text {
    color: var(--accent);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: var(--transition);
}

.theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.navbar-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.navbar-menu a:hover {
    color: var(--text-primary);
}

.navbar-menu a:hover::after {
    width: 100%;
}

.theme-toggle-item {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 4rem;
    overflow: hidden;
    background: var(--bg-main);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 105, 20, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

[data-theme="dark"] .hero-gradient {
    background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
}

/* Referencia NOTORIA a Star Wars - efecto de energía tipo sable de luz */
.hero-gradient::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 82, 163, 0.2) 0%, rgba(0, 136, 85, 0.18) 50%, transparent 70%);
    border-radius: 50%;
    animation: energyPulse 3s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(0, 82, 163, 0.25), 0 0 80px rgba(0, 136, 85, 0.2);
}

[data-theme="dark"] .hero-gradient::before {
    background: radial-gradient(circle, rgba(74, 158, 255, 0.4) 0%, rgba(0, 255, 136, 0.3) 50%, transparent 70%);
    box-shadow: 0 0 60px rgba(74, 158, 255, 0.5), 0 0 100px rgba(0, 255, 136, 0.3);
}

@keyframes energyPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.6; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, var(--text-primary) 2px, var(--text-primary) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, var(--text-primary) 2px, var(--text-primary) 4px);
    background-size: 40px 40px;
}

/* Referencia NOTORIA a Stranger Things - efecto "upside down" */
.hero-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(185, 28, 28, 0.08) 30%, 
        rgba(185, 28, 28, 0.12) 50%, 
        rgba(185, 28, 28, 0.08) 70%, 
        transparent 100%);
    animation: upsideDown 6s ease-in-out infinite;
    box-shadow: inset 0 0 80px rgba(185, 28, 28, 0.1);
}

[data-theme="dark"] .hero-pattern::after {
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(230, 57, 70, 0.15) 30%, 
        rgba(230, 57, 70, 0.25) 50%, 
        rgba(230, 57, 70, 0.15) 70%, 
        transparent 100%);
    box-shadow: inset 0 0 100px rgba(230, 57, 70, 0.2);
}

@keyframes upsideDown {
    0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.15; }
    50% { transform: translateY(-20px) scaleY(1.1); opacity: 0.3; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    color: var(--text-primary);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 105, 20, 0.08);
    border: 1px solid rgba(139, 105, 20, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 600;
}

[data-theme="dark"] .hero-badge {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-secondary);
    font-weight: 400;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    box-shadow: 0 0 8px var(--accent);
}

[data-theme="dark"] .badge-dot {
    box-shadow: none;
}

/* Referencia NOTORIA a Stranger Things - pulso rojo */
.badge-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--st-red);
    border-radius: 50%;
    opacity: 0;
    animation: stPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px var(--st-red);
}

@keyframes stPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(3); opacity: 0.6; box-shadow: 0 0 30px var(--st-red), 0 0 50px var(--st-red); }
}

[data-theme="dark"] .badge-dot::after {
    background: #e63946;
    box-shadow: 0 0 20px #e63946;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: 'Crimson Text', serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.title-line-1 {
    display: block;
}

.title-line-2 {
    display: block;
    color: var(--accent);
}

[data-theme="dark"] .title-line-2 {
    color: #c9a961;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

[data-theme="dark"] .hero-subtitle {
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-main);
    border: 1px solid var(--primary);
    font-weight: 600;
}

[data-theme="dark"] .btn-primary {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Referencia NOTORIA a Game of Thrones - efecto de fuego en hover */
.btn-primary:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(204, 68, 0, 0.5), 
        rgba(255, 140, 0, 0.7), 
        rgba(204, 68, 0, 0.5), 
        transparent);
    animation: fireSweep 0.8s ease-out;
    box-shadow: 0 0 20px rgba(204, 68, 0, 0.6);
}

[data-theme="dark"] .btn-primary:hover::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 107, 53, 0.6), 
        rgba(255, 200, 87, 0.8), 
        rgba(255, 107, 53, 0.6), 
        transparent);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
}

@keyframes fireSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(204, 68, 0, 0.4), var(--shadow-hover);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5), var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .social-link {
    background: var(--bg-secondary);
    box-shadow: none;
}

/* Hero Card */
.hero-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

[data-theme="dark"] .hero-card {
    background: var(--bg-secondary);
    border-color: var(--border);
}

.hero-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card-header {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .card-header {
    background: var(--bg-tertiary);
    border-bottom-color: var(--border);
}

.card-dots {
    display: flex;
    gap: 0.5rem;
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.card-dots span:nth-child(1) {
    background: #ff5f56;
}

.card-dots span:nth-child(2) {
    background: #ffbd2e;
}

.card-dots span:nth-child(3) {
    background: #27c93f;
}

.card-body {
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    position: relative;
    overflow: hidden;
    background: var(--bg-main);
    color: #1a1a1a;
}

[data-theme="dark"] .card-body {
    background: transparent;
    color: inherit;
}

.code-line {
    margin-bottom: 0.75rem;
}

.code-keyword {
    color: #7c3aed;
    font-weight: 600;
}

.code-string {
    color: #059669;
    font-weight: 500;
}

.code-variable {
    color: #dc2626;
    font-weight: 500;
}

.code-function {
    color: #0284c7;
    font-weight: 600;
}

.code-operator {
    color: #525252;
}

.code-bracket {
    color: #525252;
}

[data-theme="dark"] .code-keyword {
    color: #c678dd;
    font-weight: normal;
}

[data-theme="dark"] .code-string {
    color: #98c379;
    font-weight: normal;
}

[data-theme="dark"] .code-variable {
    color: #e06c75;
    font-weight: normal;
}

[data-theme="dark"] .code-function {
    color: #61afef;
    font-weight: normal;
}

[data-theme="dark"] .code-operator {
    color: #abb2bf;
}

[data-theme="dark"] .code-bracket {
    color: #abb2bf;
}

/* Referencia NOTORIA a Star Wars - efecto de energía en código */
.card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--sw-blue), 
        var(--sw-green), 
        var(--sw-blue), 
        transparent);
    opacity: 0.7;
    animation: energyFlow 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--sw-blue), 0 0 20px var(--sw-green);
}

[data-theme="dark"] .card-body::before {
    opacity: 0.8;
    box-shadow: 0 0 10px #4a9eff, 0 0 20px #00ff88;
}

@keyframes energyFlow {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(200%); }
}

.code-variable {
    color: #e06c75;
}

.code-string {
    color: #98c379;
}

.code-function {
    color: #61afef;
}

.code-operator {
    color: var(--text-secondary);
}

.code-bracket {
    color: var(--text-secondary);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: var(--text-secondary);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-number {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    min-width: 60px;
}

[data-theme="dark"] .section-number {
    color: #c9a961;
}

.section-title {
    font-family: 'Crimson Text', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-divider {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin-left: auto;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .stat-number {
    color: #c9a961;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Section */
.skills {
    background: var(--bg-main);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.skill-category:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--accent);
}

[data-theme="dark"] .skill-category {
    background: var(--bg-secondary);
    box-shadow: none;
}

.category-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-level {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 2px;
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .skill-bar {
    background: linear-gradient(90deg, #c9a961, #8b6f3d);
}

/* Referencia NOTORIA a Star Wars - brillo tipo sable de luz en barras */
.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 102, 204, 0.7), 
        rgba(0, 170, 85, 0.8), 
        rgba(0, 102, 204, 0.7), 
        transparent);
    animation: lightsaberGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.6), 0 0 25px rgba(0, 170, 85, 0.5);
}

[data-theme="dark"] .skill-bar::after {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(74, 158, 255, 0.8), 
        rgba(0, 255, 136, 0.9), 
        rgba(74, 158, 255, 0.8), 
        transparent);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.8), 0 0 25px rgba(0, 255, 136, 0.6);
}

@keyframes lightsaberGlow {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.skill-bar {
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

[data-theme="dark"] .skill-bar {
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.4);
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

/* Company Section */
.company-section {
    margin-bottom: 4rem;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.company-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.company-badge {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--bg-main);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] .company-badge {
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.4);
}

.company-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .product-card {
    box-shadow: none;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
    position: relative;
}

.product-card.featured {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, var(--bg-main) 0%, rgba(184, 134, 11, 0.08) 100%);
}

[data-theme="dark"] .product-card.featured {
    background: linear-gradient(135deg, var(--bg-main) 0%, rgba(201, 169, 97, 0.05) 100%);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-link-text {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.product-content {
    padding: 1.5rem;
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.product-year {
    color: var(--accent);
    font-weight: 600;
}

[data-theme="dark"] .product-year {
    color: #c9a961;
}

.product-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-tags span {
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.company-card {
    margin-top: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .project-card {
    box-shadow: none;
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
    position: relative;
}

/* Referencia NOTORIA a House of the Dragon - borde dorado animado */
.project-card:hover::before,
.product-card:hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    opacity: 1;
    animation: dragonGlow 1.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes dragonGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(184, 134, 11, 0.5), 
                    0 0 40px rgba(184, 134, 11, 0.3),
                    inset 0 0 20px rgba(184, 134, 11, 0.15);
        border-color: var(--accent);
    }
    50% { 
        box-shadow: 0 0 30px rgba(218, 165, 32, 0.7), 
                    0 0 60px rgba(218, 165, 32, 0.5),
                    inset 0 0 30px rgba(218, 165, 32, 0.25);
        border-color: var(--accent-light);
    }
}

[data-theme="dark"] .project-card:hover::before,
[data-theme="dark"] .product-card:hover::before {
    animation: dragonGlowDark 1.5s ease-in-out infinite;
}

@keyframes dragonGlowDark {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(201, 169, 97, 0.6), 
                    0 0 40px rgba(201, 169, 97, 0.4),
                    inset 0 0 20px rgba(201, 169, 97, 0.2);
        border-color: var(--accent);
    }
    50% { 
        box-shadow: 0 0 30px rgba(201, 169, 97, 0.9), 
                    0 0 60px rgba(201, 169, 97, 0.6),
                    inset 0 0 30px rgba(201, 169, 97, 0.3);
        border-color: #ffd700;
    }
}

.project-image {
    width: 100%;
    height: 250px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link-text {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.project-content {
    padding: 2rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.project-year {
    color: var(--accent);
    font-weight: 600;
}

[data-theme="dark"] .project-year {
    color: #c9a961;
}

.project-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Experience Section */
.experience {
    background: var(--bg-main);
}

.experience-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.experience-text {
    margin-bottom: 0;
}

.experience-cta {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .experience-cta {
    background: var(--bg-secondary);
    box-shadow: none;
}

.experience-cta h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.experience-cta > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .contact-method {
    box-shadow: none;
}

.contact-method:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 105, 20, 0.1);
    border-radius: 8px;
    color: var(--accent);
    flex-shrink: 0;
    border: 1px solid rgba(139, 105, 20, 0.2);
}

[data-theme="dark"] .method-icon {
    background: var(--bg-secondary);
    border: none;
}

.method-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.method-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-form-container {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .contact-form-container {
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-main);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-main);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .experience-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* Referencia NOTORIA a Game of Thrones - efecto de fuego en títulos */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--got-fire), var(--accent));
    transition: width 1s ease;
    box-shadow: 0 0 15px var(--got-fire);
}

.section-header:hover .section-title::after {
    width: 100px;
}

[data-theme="dark"] .section-title::after {
    box-shadow: 0 0 15px #ff6b35;
}

.section-title {
    position: relative;
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-main);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: var(--transition);
        border-top: 1px solid var(--border);
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .theme-toggle-item {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-top: 1rem;
        margin-top: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 5rem 0 3rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .company-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .company-title {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-divider {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .company-title {
        font-size: 1.75rem;
    }

    .product-content {
        padding: 1.25rem;
    }
}
