@media (max-width: 900px) {
    .footer {
        padding-bottom: 10px !important;
    }
}
/* ========================================
   Variables CSS y Configuración Global
   ======================================== */
:root {
    /* Colores Primarios */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    
    /* Colores Secundarios */
    --secondary-color: #ec4899;
    --secondary-dark: #db2777;
    
    /* Colores de Acento */
    --accent-cyan: #06b6d4;
    --accent-purple: #a855f7;
    --accent-orange: #f97316;
    
    /* Colores de Texto */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    /* Colores de Fondo */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-cool: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', var(--font-primary);
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Bordes */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ========================================
   Reset y Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================================
   Tipografía
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

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

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

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

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

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: var(--z-sticky);
    padding: 1rem 0;
    height: 75px;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    height: 100%;
}

.logo-image {
    height: 80px;
    width: auto;
    transition: transform var(--transition-base);
    display: block;
    margin-top: -5px;
}

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

.logo-icon {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

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

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a.story-link {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a.story-link i {
    animation: gamepadPulse 2s ease-in-out infinite;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-base);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--bg-tertiary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    margin-left: var(--spacing-sm);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.theme-toggle i {
    font-size: 1.125rem;
}

/* ========================================
   Dark Mode Styles
   ======================================== */
body.dark-mode {
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #64748b;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

body.dark-mode .navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

body.dark-mode .grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(100, 116, 139, 0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100, 116, 139, 0.2) 1px, transparent 1px);
}

body.dark-mode .hero-tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

body.dark-mode .btn-secondary {
    background: var(--bg-card);
    border-color: var(--bg-tertiary);
}

body.dark-mode .code-window {
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.3);
}

body.dark-mode .about-section {
    background: var(--bg-primary);
}

body.dark-mode .floating-card {
    background: var(--bg-card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .skill-category,
body.dark-mode .project-card,
body.dark-mode .info-card,
body.dark-mode .contact-form-container {
    background: var(--bg-card);
    border-color: var(--bg-tertiary);
}

body.dark-mode .skill-item {
    background: var(--bg-tertiary);
}

body.dark-mode .skill-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

body.dark-mode .projects-section {
    background: var(--bg-primary);
}

body.dark-mode .projects-section .decorative-orb {
    opacity: 0.15;
}

body.dark-mode .project-card::after {
    color: var(--bg-tertiary);
    opacity: 0.2;
}

body.dark-mode .carousel-btn {
    background: var(--bg-card);
    border-color: var(--bg-tertiary);
}

body.dark-mode .carousel-dot {
    background: var(--bg-tertiary);
}

body.dark-mode .carousel-autoplay-indicator,
body.dark-mode .carousel-counter {
    background: rgba(30, 41, 59, 0.95);
    color: var(--text-secondary);
}

body.dark-mode .filter-btn {
    background: var(--bg-card);
    border-color: var(--bg-tertiary);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: var(--bg-tertiary);
    border-color: var(--bg-tertiary);
    color: var(--text-primary);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    background: var(--bg-card);
}

body.dark-mode .project-image {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
}

body.dark-mode .scroll-to-top {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(226, 232, 240, 0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 232, 240, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-text {
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.hero-tag i {
    color: var(--accent-orange);
}

.hero-title {
    margin-bottom: var(--spacing-md);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--bg-tertiary);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Hero Visual - Code Window */
.hero-visual {
    z-index: 1;
}

.code-window {
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: floatSlow 6s ease-in-out infinite;
}

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

.window-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-buttons {
    display: flex;
    gap: 0.5rem;
}

.window-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f56; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #27c93f; }

.window-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.window-content {
    padding: var(--spacing-lg);
}

.window-content pre {
    margin: 0;
}

.window-content code {
    color: #e5e7eb;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

.code-keyword { color: #c792ea; }
.code-variable { color: #82aaff; }
.code-property { color: #f07178; }
.code-string { color: #c3e88d; }
.code-boolean { color: #ff9800; }
.code-function { color: #89ddff; }
.code-comment { color: #676e95; font-style: italic; }

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-tertiary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-text h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.highlight {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.highlight i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
}

.highlight h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.highlight p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 150%; /* Aumentado de 100% a 120% */
    aspect-ratio: 1;
    max-width: 550px; /* Añadido límite máximo */
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    transition: transform var(--transition-slow);
}

.profile-image:hover {
    transform: scale(1.02);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10rem;
    color: white;
    opacity: 0.8;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.card-1 {
    top: 10%;
    right: -10%;
    color: var(--accent-orange);
}

.card-2 {
    bottom: 30%;
    left: -10%;
    color: var(--primary-color);
    animation-delay: -1s;
}

.card-3 {
    bottom: 10%;
    right: 10%;
    color: var(--accent-purple);
    animation-delay: -2s;
}

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

/* ========================================
   Skills Section
   ======================================== */
.skills-section {
    padding: var(--spacing-3xl) 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.skill-category {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--bg-tertiary);
}

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

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.25rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.skill-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateX(5px);
}

.skill-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.skill-item span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   Projects Section
   ======================================== */
.projects-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos de fondo */
.projects-section .decorative-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    animation: floatOrb 20s ease-in-out infinite;
}

.projects-section .decorative-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 10%;
    left: -5%;
}

.projects-section .decorative-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
}

.projects-section .decorative-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-warm);
    top: 50%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 20px) scale(1.05); }
}

.projects-section .container {
    position: relative;
    z-index: 1;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--bg-tertiary);
    background: white;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Contenedor del carrusel */
.projects-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-2xl);
}

.projects-grid {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: var(--spacing-xl);
    padding: var(--spacing-sm) 0;
    align-items: stretch;
}

/* Carrusel - mostrar 3 tarjetas a la vez en desktop */
.project-card {
    min-width: calc((100% - (var(--spacing-xl) * 2)) / 3);
    max-width: calc((100% - (var(--spacing-xl) * 2)) / 3);
    flex-shrink: 0;
}

/* Controles del carrusel */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-primary);
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.carousel-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.carousel-dot.active {
    background: var(--gradient-primary);
    width: 32px;
    border-radius: var(--radius-full);
}

.carousel-dot:hover:not(.active) {
    background: var(--primary-light);
    transform: scale(1.2);
}

/* Indicador de autoplay */
.carousel-autoplay-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-tertiary);
    font-size: 0.875rem;
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.carousel-autoplay-indicator.paused {
    color: var(--secondary-color);
}

.carousel-autoplay-indicator i {
    font-size: 0.75rem;
    animation: pulse 2s ease-in-out infinite;
}

.carousel-autoplay-indicator.paused i {
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Contador de proyectos */
.carousel-counter {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.project-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid var(--bg-tertiary);
    position: relative;
    opacity: 1;
    transform: translateY(0) rotateX(0);
    animation: slideInProject 0.6s ease-out;
    display: flex;
    flex-direction: column;
    height: auto;
}

@keyframes slideInProject {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efecto hover mejorado con transformación 3D */
.project-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    box-shadow: var(--shadow-2xl), 0 0 40px rgba(99, 102, 241, 0.2);
}

.project-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(236, 72, 153, 0.02) 100%);
}

.project-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 0;
}

.project-card.featured:hover::before {
    opacity: 1;
}

/* Número de proyecto */
.project-card::after {
    content: attr(data-project-number);
    position: absolute;
    top: -10px;
    left: var(--spacing-lg);
    font-size: 4rem;
    font-weight: 900;
    color: var(--bg-tertiary);
    font-family: var(--font-heading);
    z-index: 0;
    opacity: 0.3;
    transition: all var(--transition-base);
}

.project-card:hover::after {
    transform: scale(1.2);
    opacity: 0.15;
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gradient-primary);
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

/* Gradientes dinámicos según categoría */
.project-card[data-category*="fintech"] .project-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-card[data-category*="ecommerce"] .project-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-card[data-category*="saas"] .project-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-card[data-category*="versatil"] .project-image {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Efecto de brillo animado */
.project-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all var(--transition-slow);
}

.project-card:hover .project-image::before {
    left: 100%;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-base);
    transform: scale(0.8);
    pointer-events: none;
    z-index: 10;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: white;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-base);
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    z-index: 20;
    position: relative;
}

.btn-view:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-base);
}

.project-card:hover .image-placeholder {
    transform: scale(1.1) rotate(5deg);
    color: rgba(255, 255, 255, 0.8);
}

.featured-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--gradient-warm);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
}

.project-content {
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.project-tags {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Colores específicos por tipo de tag */
.tag:nth-child(1) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.15) 100%);
    color: var(--primary-color);
    border-color: rgba(99, 102, 241, 0.2);
}

.tag:nth-child(2) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(219, 39, 119, 0.15) 100%);
    color: var(--secondary-color);
    border-color: rgba(236, 72, 153, 0.2);
}

.tag:nth-child(3) {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(8, 145, 178, 0.15) 100%);
    color: var(--accent-cyan);
    border-color: rgba(6, 182, 212, 0.2);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: auto;
}

.project-tech span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.project-tech i {
    color: var(--primary-color);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: var(--spacing-3xl) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.info-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--bg-tertiary);
    text-align: center;
    transition: all var(--transition-base);
}

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

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.info-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.info-card a,
.info-card p {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-card a:hover {
    color: var(--primary-color);
}

.contact-form-container {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--bg-tertiary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Sección de Donaciones
   ======================================== */
.donation-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    position: relative;
    overflow: hidden;
}

/* El contenedor principal para centrar todo */
.crypto-widget-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: transparent;
}

/* La tarjeta con efecto cristal */
.crypto-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    max-width: 100%;
    width: max-content;
}

/* Efecto de brillo al pasar el mouse (Hover) */
.crypto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(66, 133, 244, 0.4);
    border-color: rgba(66, 133, 244, 0.6);
}

/* Ajustes para el iframe */
.crypto-card iframe {
    display: block;
    border-radius: 16px;
    max-width: 100%;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-sm);
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-xs);
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: var(--spacing-xs);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom i {
    color: var(--secondary-color);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .hero-visual {
        order: -1;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Ajustar tamaño de imagen en móvil */
    .image-wrapper {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Carrusel en tablet - 2 tarjetas */
    .project-card {
        min-width: calc((100% - var(--spacing-xl)) / 2);
        max-width: calc((100% - var(--spacing-xl)) / 2);
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    /* Simplificar animaciones en móvil */
    .project-card:hover {
        transform: translateY(-8px) scale(1.01) !important;
    }
    
    /* Ocultar números grandes en móvil */
    .project-card::after {
        font-size: 3rem;
        opacity: 0.2;
    }
    
    .projects-section .decorative-orb {
        opacity: 0.2;
    }
    
    .carousel-autoplay-indicator {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .carousel-counter {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 640px) {
    /* Carrusel en móvil - 1 tarjeta */
    .project-card {
        min-width: 100%;
        max-width: 100%;
    }
    
    .carousel-controls {
        gap: var(--spacing-md);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .project-card::after {
        display: none;
    }
    
    .projects-section .decorative-orb {
        display: none;
    }
    
    .carousel-autoplay-indicator,
    .carousel-counter {
        position: static;
        margin: var(--spacing-sm) auto;
        display: inline-flex;
    }
    
    .projects-carousel {
        padding: var(--spacing-md) 0;
    }
    
    .project-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .code-window {
        font-size: 0.75rem;
    }
    
    .window-content {
        padding: var(--spacing-md);
    }
    
    .floating-card {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .floating-card i {
        font-size: 1.25rem;
    }
    
    /* Reducir aún más la imagen en móviles pequeños */
    .image-wrapper {
        width: 90%;
        max-width: 280px;
    }
}

/* ========================================
   Sección CTA Historia Interactiva
   ======================================== */
.story-cta-section {
    position: relative;
    padding: var(--spacing-4xl) 0;
    overflow: hidden;
    background: var(--bg-secondary);
}

.story-cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.story-grid-pattern {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(rgba(102, 126, 234, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridFloat 20s linear infinite;
}

@keyframes gridFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.story-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatOrb 20s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(30px, 30px) scale(1.05); }
}

.story-cta-section .orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.story-cta-section .orb-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-accent);
    bottom: -150px;
    right: -150px;
    animation-delay: 4s;
}

.story-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.story-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    margin-bottom: var(--spacing-lg);
    animation: iconPulse 3s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5); }
}

.story-cta-icon i {
    font-size: 2.5rem;
    color: white;
}

.story-cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    color: var(--text-primary);
}

.story-cta-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.story-cta-features {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.story-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.story-feature:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
}

.story-feature i {
    font-size: 2rem;
    color: var(--primary-color);
}

.story-feature span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-story-cta {
    font-size: 1.2rem;
    padding: var(--spacing-md) var(--spacing-2xl);
    gap: var(--spacing-md);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2); }
    50% { box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4); }
}

.btn-story {
    position: relative;
    overflow: hidden;
}

.btn-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-story:hover::before {
    left: 100%;
}

/* Responsive Story CTA */
@media (max-width: 768px) {
    .story-cta-section {
        padding: var(--spacing-3xl) 0;
    }

    .story-cta-icon {
        width: 60px;
        height: 60px;
    }

    .story-cta-icon i {
        font-size: 2rem;
    }

    .story-cta-features {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .story-feature {
        width: 100%;
        max-width: 300px;
    }

    .btn-story-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Utilidades
   ======================================== */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn var(--transition-slow) ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth Scrolling for Safari */
@supports (-webkit-overflow-scrolling: touch) {
    html {
        scroll-behavior: auto;
    }
}
