/* ============================================== */
/* SECCIÓN REDISEÑADA V2 - EFECTO NEÓN MEJORADO */
/* ============================================== */

.showcase-section {
    margin: 50px 0 70px 0;
    padding: 20px 0;
    width: 100%;
    position: relative;
}

/* Efecto de fondo ambiental */
.showcase-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(88, 166, 255, 0.08) 0%, transparent 60%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.showcase-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ============================================== */
/* DISEÑO DE CARDS - VERSIÓN 2 */
/* ============================================== */

.showcase-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    
    background: rgba(18, 22, 28, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(88, 166, 255, 0.15);
    border-radius: 36px;
    padding: 30px;
    
    text-decoration: none;
    position: relative;
    overflow: hidden;
    
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    
    box-shadow: 
        0 25px 45px -20px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(88, 166, 255, 0.03);
    
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Patrón de fondo geométrico */
.card-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(88, 166, 255, 0.04) 0px, transparent 30%),
        radial-gradient(circle at 90% 70%, rgba(139, 92, 246, 0.04) 0px, transparent 40%),
        repeating-linear-gradient(45deg, transparent 0px, transparent 20px, rgba(88, 166, 255, 0.01) 20px, rgba(88, 166, 255, 0.01) 21px);
    pointer-events: none;
    z-index: 0;
}

/* Efecto Aurora/Neón - más suave y elegante */
.card-aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(88, 166, 255, 0.04) 20%,
        rgba(139, 92, 246, 0.04) 40%,
        rgba(88, 166, 255, 0.04) 60%,
        transparent 80%
    );
    background-size: 250% 250%;
    animation: auroraWave 12s ease infinite;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: soft-light;
}

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

/* Contenido principal */
.card-content {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 22px;
    align-items: center;
}

/* Icono con efecto glow mejorado */
.card-icon-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75px;
    height: 75px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* Badge mejorado con animación */
.card-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #58a6ff, #9f7aea);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 40px;
    border: 2px solid #0d1117;
    letter-spacing: 0.5px;
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.6);
    z-index: 10;
    animation: badgeGlow 2.5s ease infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 35px rgba(159, 122, 234, 0.8);
    }
}

/* Texto - legibilidad prioritaria */
.card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.neon-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, 
        #f0f6fc 0%,
        #ffffff 40%,
        #d9e6f2 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
    text-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
    transition: all 0.3s ease;
}

.card-subtitle {
    font-size: 1rem;
    color: #9aa4b2;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.card-path {
    font-size: 0.85rem;
    color: #58a6ff;
    font-family: 'Fira Code', 'Courier New', monospace;
    background: rgba(88, 166, 255, 0.07);
    padding: 6px 14px;
    border-radius: 40px;
    display: inline-block;
    align-self: flex-start;
    border: 1px solid rgba(88, 166, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Stats con diseño limpio */
.card-stats {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 30px;
    padding: 18px 0 8px;
    border-top: 1px solid rgba(88, 166, 255, 0.12);
    margin-top: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #58a6ff;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

.stat-label {
    font-size: 0.8rem;
    color: #7d8590;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

/* Barra de progreso mejorada */
.card-progress {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #58a6ff, #b980f0, #58a6ff);
    border-radius: 10px;
    position: relative;
    background-size: 200% 100%;
    animation: progressShine 2.5s linear infinite;
}

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

.progress-text {
    position: absolute;
    right: 0;
    top: -18px;
    font-size: 0.75rem;
    color: #8b949e;
    font-weight: 500;
}

/* Borde neón animado */
.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 36px;
    padding: 2px;
    background: linear-gradient(
        145deg,
        transparent 20%,
        rgba(88, 166, 255, 0.3) 40%,
        rgba(139, 92, 246, 0.3) 60%,
        transparent 80%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 20;
    background-size: 300% 300%;
    animation: borderFlow 8s linear infinite;
}

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

/* ============================================== */
/* HOVER EFFECTS - MEJORADOS */
/* ============================================== */

.showcase-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: transparent;
    box-shadow: 
        0 35px 60px -25px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(88, 166, 255, 0.3),
        inset 0 0 35px rgba(88, 166, 255, 0.1);
}

.showcase-card:hover .card-border {
    opacity: 1;
}

.showcase-card:hover .icon-glow {
    opacity: 0.6;
    animation: glowIntensity 2s ease infinite;
}

@keyframes glowIntensity {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.showcase-card:hover .card-icon {
    transform: scale(1.1) rotate(3deg);
}

.showcase-card:hover .neon-title {
    background: linear-gradient(135deg, 
        #58a6ff 0%,
        #c084fc 60%,
        #58a6ff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 25px rgba(88, 166, 255, 0.5);
}

.showcase-card:hover .card-path {
    background: rgba(88, 166, 255, 0.15);
    border-color: rgba(88, 166, 255, 0.5);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
}

/* ============================================== */
/* ANIMACIÓN DE FLOTACIÓN SUTIL */
/* ============================================== */

.showcase-container:not(:hover) .showcase-card {
    animation: elegantFloat 7s ease-in-out infinite;
}

#profile-card {
    animation-delay: 0s;
}

#repo-card {
    animation-delay: 3.5s;
}

@keyframes elegantFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.01);
    }
}

/* ============================================== */
/* RESPONSIVE DESIGN - COMPLETO */
/* ============================================== */

/* Tablets y pantallas medianas */
@media (max-width: 1000px) {
    .showcase-container {
        gap: 25px;
        padding: 0 20px;
    }
    
    .showcase-card {
        padding: 25px;
    }
    
    .neon-title {
        font-size: 1.3rem;
    }
    
    .card-icon-wrapper {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
}

/* Móviles en landscape y tablets pequeñas */
@media (max-width: 800px) {
    .showcase-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .showcase-card {
        width: 100%;
        max-width: 550px;
    }
    
    .showcase-container:not(:hover) .showcase-card {
        animation: mobileFloat 7s ease-in-out infinite;
    }
    
    @keyframes mobileFloat {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-8px) scale(1.01);
        }
    }
}

/* Móviles pequeños */
@media (max-width: 600px) {
    .showcase-section {
        margin: 30px 0 50px;
    }
    
    .showcase-card {
        padding: 22px;
        border-radius: 32px;
    }
    
    .card-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .card-text {
        align-items: center;
    }
    
    .card-path {
        align-self: center;
    }
    
    .card-icon-wrapper {
        width: 75px;
        height: 75px;
        min-width: 75px;
        margin-bottom: 5px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
    }
    
    .neon-title {
        font-size: 1.25rem;
    }
    
    .card-subtitle {
        font-size: 0.95rem;
    }
    
    .card-stats {
        justify-content: center;
        gap: 25px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .showcase-container:not(:hover) .showcase-card {
        animation: none; /* Sin animación en móviles muy pequeños */
    }
    
    .card-badge {
        top: -5px;
        right: -5px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

/* Móviles muy pequeños */
@media (max-width: 400px) {
    .showcase-card {
        padding: 18px;
    }
    
    .card-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .stat-item {
        min-width: 70px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .progress-text {
        font-size: 0.7rem;
        top: -16px;
    }
    
    .card-path {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* Ajuste para pantallas muy grandes */
@media (min-width: 1400px) {
    .showcase-container {
        max-width: 1200px;
    }
    
    .showcase-card {
        padding: 35px;
    }
    
    .neon-title {
        font-size: 1.7rem;
    }
    
    .card-subtitle {
        font-size: 1.1rem;
    }
    
    .card-icon-wrapper {
        width: 100px;
        height: 100px;
        min-width: 100px;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
    }
}