/* ===== HERO SECTION - 3 COLUMN LAYOUT (FULL WIDTH) ===== */

/* Hero Section Base */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-container {
    max-width: 1600px; /* Ampliado desde 1200px */
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: var(--spacing-2xl); /* Más espacio entre columnas */
    align-items: center;
    margin: 0 auto;
    min-height: 80vh; /* Asegurar altura mínima */
}

/* Column Base Styling */
.hero-column {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Column 1: Code Image - FULL SIZE */
.hero-code {
    justify-content: flex-end;
    height: 100%;
}

.code-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Mucho más grande */
    max-width: 500px; /* Límite máximo */
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(205, 127, 50, 0.1);
}

.code-image-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(205, 127, 50, 0.2);
}

.code-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%) contrast(1.1) brightness(1.05);
    transition: all var(--transition-normal);
}

.code-image-wrapper:hover .code-image {
    filter: grayscale(0%) contrast(1.2) brightness(1.1);
    transform: scale(1.05);
}

.code-overlay {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.code-tag {
    background: rgba(205, 127, 50, 0.95);
    color: var(--text-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Column 2: Main Content */
.hero-content {
    text-align: center;
    padding: 0 var(--spacing-lg);
    z-index: 2;
}

.hero-content-inner {
    max-width: 700px; /* Ampliado */
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem); /* Más grande */
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    font-weight: var(--font-bold);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-weight: var(--font-medium);
}

/* Tech Stack */
.tech-stack {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
    max-width: 100%;
}

.tech-badge {
    background: var(--gradient-card);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-size: var(--text-base); /* Más grande */
    font-weight: var(--font-semibold);
    color: var(--text-light);
    transition: var(--transition-normal);
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tech-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
    background: rgba(205, 127, 50, 0.15);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: var(--spacing-md) var(--spacing-xl); /* Botones más grandes */
    font-size: var(--text-lg);
    min-width: 180px;
}

/* Column 3: Personal Image - FULL SIZE */
.hero-personal {
    justify-content: flex-start;
    height: 100%;
}

.personal-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Igual que la imagen de código */
    max-width: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gradient-primary);
    padding: 4px; /* Borde sutil */
    transition: all var(--transition-normal);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(205, 127, 50, 0.15);
}

.personal-image-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(205, 127, 50, 0.25);
}

.personal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
    transition: all var(--transition-normal);
}

.personal-image-wrapper:hover .personal-image {
    filter: brightness(1.15) contrast(1.15) saturate(1.2);
    transform: scale(1.03);
}

.personal-overlay {
    position: absolute;
    bottom: var(--spacing-lg);
    left: var(--spacing-lg);
    right: var(--spacing-lg);
}

.status-badge {
    background: rgba(10, 10, 15, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.status-dot {
    width: 12px; /* Más grande */
    height: 12px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse-status 2s infinite;
}

.status-badge span {
    color: var(--text-light);
    font-size: var(--text-base); /* Más grande */
    font-weight: var(--font-semibold);
}

@keyframes pulse-status {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

/* Gaming Enhancement Effects */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 85%, rgba(205, 127, 50, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(184, 134, 11, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Floating Animation for Images */
@keyframes float-code {
    0%, 100% { transform: translateY(0px); }
    33% { transform: translateY(-12px); }
    66% { transform: translateY(6px); }
}

@keyframes float-personal {
    0%, 100% { transform: translateY(0px); }
    33% { transform: translateY(10px); }
    66% { transform: translateY(-8px); }
}

.code-image-wrapper {
    animation: float-code 8s ease-in-out infinite;
}

.personal-image-wrapper {
    animation: float-personal 9s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .hero-container {
        max-width: 1300px;
        gap: var(--spacing-xl);
    }
    
    .code-image-wrapper,
    .personal-image-wrapper {
        height: 500px;
        max-width: 400px;
    }
}

@media (max-width: 1200px) {
    .hero-container {
        max-width: 1100px;
        gap: var(--spacing-lg);
    }
    
    .code-image-wrapper,
    .personal-image-wrapper {
        height: 450px;
        max-width: 350px;
    }
    
    .hero-content h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
}

@media (max-width: 968px) {
    .hero {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: var(--spacing-xl);
        text-align: center;
        max-width: 800px;
    }
    
    .hero-code {
        order: 2;
        justify-content: center;
    }
    
    .hero-content {
        order: 1;
        padding: 0;
    }
    
    .hero-personal {
        order: 3;
        justify-content: center;
    }
    
    .code-image-wrapper,
    .personal-image-wrapper {
        height: 400px;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .hero-container {
        gap: var(--spacing-lg);
    }
    
    .code-image-wrapper,
    .personal-image-wrapper {
        height: 350px;
        max-width: 280px;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .tech-stack {
        margin-bottom: var(--spacing-lg);
        gap: var(--spacing-sm);
    }
    
    .tech-badge {
        font-size: var(--text-sm);
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero-container {
        gap: var(--spacing-md);
    }
    
    .code-image-wrapper,
    .personal-image-wrapper {
        height: 300px;
        max-width: 250px;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .tech-stack {
        justify-content: center;
        gap: 0.4rem;
    }
    
    .tech-badge {
        font-size: var(--text-xs);
        padding: 0.3rem 0.6rem;
    }
    
    .code-tag {
        font-size: var(--text-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .status-badge span {
        font-size: var(--text-sm);
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .code-image-wrapper,
    .personal-image-wrapper {
        animation: none;
    }
    
    .status-dot {
        animation: none;
    }
    
    .code-image-wrapper:hover,
    .personal-image-wrapper:hover {
        transform: none;
    }
}

/* High Performance Mode for Low-end Devices */
@media (max-width: 480px) and (max-height: 667px) {
    .hero::before {
        display: none;
    }
    
    .code-image-wrapper,
    .personal-image-wrapper {
        animation: none;
        transition: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
}

/* Ultra Wide Screens */
@media (min-width: 1600px) {
    .hero-container {
        max-width: 1800px;
    }
    
    .code-image-wrapper,
    .personal-image-wrapper {
        height: 700px;
        max-width: 550px;
    }
    
    .hero-content h1 {
        font-size: clamp(3.5rem, 5vw, 6rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.3rem, 2vw, 1.8rem);
    }
}

/* Print Styles */
@media print {
    .hero {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .code-image-wrapper,
    .personal-image-wrapper {
        box-shadow: none;
        animation: none;
        height: 400px;
    }
    
    .tech-badge {
        border: 1px solid #000;
        background: transparent;
    }
}