/* ========================================================
   ARCHIVO DE COMPONENTES - BOTONES, TARJETAS, INPUTS, ETC.
   ======================================================== */

/* ==================== BOTONES ==================== */

/* Botón principal (capsule) */
.nike-capsule {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #c9a961 100%);
    border: none;
    color: var(--text-light);
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-gold);
}

.nike-capsule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nike-capsule:hover::before {
    opacity: 1;
}

.nike-capsule:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-hover);
}

.nike-capsule:active {
    transform: translateY(0);
}

/* Botón secundario */
.nike-btn-secondary {
    background: var(--bg-secondary);
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

.nike-btn-secondary:hover {
    background: var(--text-primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Botones neon (para acciones) */
.nike-btn-neon {
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
}

.nike-btn-neon:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Variantes de botones neon */
.nike-btn-neon.lime {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--text-light);
}

.nike-btn-neon.cyan {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--text-light);
}

.nike-btn-neon.magenta {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--text-light);
}

.nike-btn-neon.orange {
    background: var(--color-highlight);
    border-color: var(--color-highlight);
    color: var(--text-light);
}

/* Efecto de crecimiento en botones */
.btn-grow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-grow:hover {
    transform: translateY(-2px);
}

.btn-grow:active {
    transform: translateY(0);
}

.btn-grow:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* ==================== TARJETAS ==================== */

/* Tarjeta de valor */
.value-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.value-card:hover::before {
    opacity: 1;
}

.value-card:hover {
    background: var(--bg-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        var(--shadow-lg),
        0 0 30px rgba(212, 175, 55, 0.2);
}

.value-card.expanded {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--color-accent);
    background: var(--bg-secondary);
    box-shadow: 
        var(--shadow-xl),
        0 0 40px rgba(44, 95, 141, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.value-card.expanded::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(44, 95, 141, 0.08) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.value-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 24px;
    color: var(--color-secondary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    width: 100%;
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotateY(10deg);
    filter: drop-shadow(0 8px 16px rgba(212, 175, 55, 0.4));
}

.value-card.expanded .value-icon {
    transform: scale(1.1) rotateY(0deg);
    color: var(--color-accent);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1.1);
        filter: drop-shadow(0 4px 12px rgba(44, 95, 141, 0.4));
    }
    50% { 
        transform: scale(1.15);
        filter: drop-shadow(0 8px 20px rgba(44, 95, 141, 0.6));
    }
}

.value-card h3 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0;
    color: var(--text-primary);
}

.value-preview {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 300;
}

.expand-indicator {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 16px;
    opacity: 0.6;
}

.value-card:hover .expand-indicator {
    opacity: 1;
    transform: translateY(3px);
    color: var(--color-secondary);
}

.value-card.expanded > .expand-indicator {
    transform: rotate(180deg) scale(1.1);
    color: var(--color-accent);
    opacity: 1;
}

.expand-indicator i {
    display: inline-block;
    transition: all 0.3s ease;
}

.value-card:hover .expand-indicator i {
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0);
    }
    50% { 
        transform: translateY(5px);
    }
}

/* Contenido expandido */
.value-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    margin-top: 20px;
    transform: translateY(-10px);
}

.value-card.expanded > .value-content {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.content-inner {
    padding-top: 24px;
    border-top: 2px solid var(--border-light);
    animation: contentSlideIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.content-inner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    animation: lineExpand 0.8s ease-out;
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

.content-inner h4 {
    color: var(--color-secondary);
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.content-inner p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    font-weight: 300;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.content-inner ul {
    list-style: none;
    padding: 0;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.content-inner li {
    color: var(--text-primary);
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 300;
    opacity: 0;
    animation: fadeInLeft 0.5s ease-out forwards;
}

.content-inner li:nth-child(1) { animation-delay: 0.5s; }
.content-inner li:nth-child(2) { animation-delay: 0.6s; }
.content-inner li:nth-child(3) { animation-delay: 0.7s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-inner li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.content-inner li:hover {
    color: var(--color-secondary);
    padding-left: 32px;
    transform: translateX(4px);
}

.content-inner li:hover::before {
    transform: translateX(4px) scale(1.2);
    color: var(--color-accent);
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== CHIPS ==================== */
.chip {
    padding: 8px 16px;
    border: 2px solid var(--border-light);
    border-radius: 25px;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.chip:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: var(--shadow-sm);
}

.chip.active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

/* ==================== BLOQUES DE MATERIA ==================== */
.subject-block {
    background: rgba(212, 175, 55, 0.08);
    border: 2px solid var(--color-secondary);
    padding: 10px;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.subject-block:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.subject-block:active {
    cursor: grabbing;
    transform: scale(0.98);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-secondary);
    border-left: 5px solid var(--color-secondary);
    color: var(--text-primary);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    animation: toastSlide 0.3s ease-out forwards;
    box-shadow: var(--shadow-lg);
}

.toast.success {
    border-color: var(--color-success);
}

.toast.error {
    border-color: var(--color-error);
}

@keyframes toastSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== ESTADÍSTICAS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-bar-bg {
    background: var(--bg-tertiary);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    height: 100%;
    transition: width 0.5s ease;
}


/* ==================== RESPONSIVE PARA COMPONENTES ==================== */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Tabletas */
    .nike-capsule {
        padding: 16px 42px;
        font-size: 0.95rem;
    }
    
    .nike-btn-secondary {
        padding: 15px 38px;
        font-size: 0.95rem;
    }
    
    .value-card {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    /* Móviles y tabletas pequeñas */
    .nike-capsule {
        padding: 15px 36px;
        font-size: 0.9rem;
        border-radius: 40px;
    }
    
    .nike-btn-secondary {
        padding: 14px 34px;
        font-size: 0.9rem;
        border-radius: 40px;
    }
    
    .nike-btn-neon {
        padding: 11px 20px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .value-card {
        padding: 30px 25px;
        border-radius: 16px;
        min-height: 180px;
    }
    
    .value-card:hover {
        transform: translateY(-4px);
    }
    
    .value-icon {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .value-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .value-preview {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .expand-indicator {
        font-size: 0.9rem;
        margin-top: 14px;
    }
    
    .value-content {
        margin-top: 16px;
    }
    
    .content-inner {
        padding-top: 20px;
    }
    
    .content-inner h4 {
        font-size: 1rem;
        margin-bottom: 14px;
    }
    
    .content-inner p {
        font-size: 0.9rem;
        margin-bottom: 16px;
        line-height: 1.6;
    }
    
    .content-inner li {
        padding: 8px 0;
        padding-left: 24px;
        font-size: 0.9rem;
    }
    
    .content-inner li::before {
        font-size: 0.9rem;
    }
    
    .chip {
        padding: 7px 14px;
        font-size: 0.7rem;
        border-radius: 20px;
    }
    
    .subject-block {
        padding: 9px;
        border-radius: 7px;
        font-size: 0.8rem;
    }
    
    #toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .toast {
        padding: 12px 20px;
        font-size: 0.75rem;
        border-radius: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 18px;
        border-radius: 10px;
    }
    
    .stat-header {
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
    
    .progress-bar-bg {
        height: 8px;
    }
}

@media (max-width: 480px) {
    /* Móviles pequeños */
    .nike-capsule {
        padding: 14px 32px;
        font-size: 0.85rem;
        border-radius: 35px;
    }
    
    .nike-btn-secondary {
        padding: 13px 30px;
        font-size: 0.85rem;
        border-radius: 35px;
    }
    
    .nike-btn-neon {
        padding: 10px 18px;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    .value-card {
        padding: 25px 20px;
        border-radius: 14px;
        min-height: 160px;
    }
    
    .value-icon {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .value-card h3 {
        font-size: 1.2rem;
    }
    
    .value-preview {
        font-size: 0.85rem;
    }
    
    .expand-indicator {
        font-size: 0.85rem;
        margin-top: 12px;
    }
    
    .content-inner {
        padding-top: 16px;
    }
    
    .content-inner h4 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .content-inner p {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }
    
    .content-inner li {
        padding: 7px 0;
        padding-left: 22px;
        font-size: 0.85rem;
    }
    
    .chip {
        padding: 6px 12px;
        font-size: 0.65rem;
    }
    
    .subject-block {
        padding: 8px;
        border-radius: 6px;
        font-size: 0.75rem;
    }
    
    #toast-container {
        bottom: 15px;
        right: 15px;
        left: 15px;
    }
    
    .toast {
        padding: 10px 16px;
        font-size: 0.7rem;
        border-radius: 8px;
    }
    
    .stats-grid {
        gap: 14px;
    }
    
    .stat-card {
        padding: 16px;
        border-radius: 10px;
    }
    
    .stat-header {
        font-size: 0.85rem;
    }
    
    .progress-bar-bg {
        height: 7px;
    }
}

/* ==================== TOUCH OPTIMIZATIONS ==================== */
@media (hover: none) and (pointer: coarse) {
    /* Aumentar áreas táctiles en dispositivos touch */
    .nike-capsule,
    .nike-btn-secondary,
    .nike-btn-neon {
        min-height: 44px;
        min-width: 44px;
    }
    
    .chip {
        min-height: 36px;
        min-width: 36px;
    }
    
    .value-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.1);
    }
    
    /* Feedback táctil mejorado */
    button:active {
        opacity: 0.8;
        transform: scale(0.97);
    }
    
    .value-card:active {
        transform: scale(0.98);
    }
}


/* ==================== EFECTOS INTERACTIVOS MEJORADOS ==================== */

/* Efecto de pulso al hover */
.pulse-on-hover:hover {
    animation: pulse-colorful 1.5s ease-in-out infinite;
}

/* Botones con efecto de ondas */
.btn-grow {
    position: relative;
    overflow: hidden;
}

.btn-grow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-grow:hover::before {
    width: 300px;
    height: 300px;
}

/* Tarjetas con efecto de elevación mejorado */
.info-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Efecto de borde brillante */
.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--color-cyan), 
        var(--color-purple), 
        var(--color-pink), 
        var(--color-orange),
        var(--color-cyan)
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    background-size: 400%;
    animation: gradient-shift 3s ease infinite;
}

.border-glow:hover::before {
    opacity: 1;
}

/* Chips de grado con colores vibrantes */
.degree-chip {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.degree-chip:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.degree-chip.selected {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-orange));
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Tarjetas de valor con efectos mejorados */
.value-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.value-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.value-card:hover::after {
    opacity: 1;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(212, 175, 55, 0.3);
}

/* Efecto de partículas en hover */
@keyframes particle-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

/* Botones con gradiente animado */
.nike-btn-neon.lime,
.nike-btn-neon.cyan,
.nike-btn-neon.magenta,
.nike-btn-neon.orange {
    background-size: 200% 200%;
    transition: all 0.3s ease;
}

.nike-btn-neon.lime {
    background: linear-gradient(135deg, var(--color-teal), var(--color-cyan));
}

.nike-btn-neon.cyan {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-indigo));
}

.nike-btn-neon.magenta {
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
}

.nike-btn-neon.orange {
    background: linear-gradient(135deg, var(--color-orange), var(--color-warning));
}

.nike-btn-neon.lime:hover,
.nike-btn-neon.cyan:hover,
.nike-btn-neon.magenta:hover,
.nike-btn-neon.orange:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Iconos flotantes decorativos con colores */
.floating-icon {
    transition: all 0.3s ease;
}

.floating-icon:hover {
    transform: translateY(-5px) rotate(10deg) scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.5));
}

/* Efecto de resplandor en números de estadísticas */
.stat-number {
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: attr(data-value);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s;
}

.info-card:hover .stat-number::after {
    opacity: 0.5;
}


/* ==================== TARJETAS DE CARACTERÍSTICAS ==================== */
.feature-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-item:hover i {
    transform: scale(1.2) rotate(10deg);
    transition: transform 0.3s ease;
}

/* Pasos de desarrollo */
.dev-step:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dev-step:hover div {
    animation: bounce-soft 0.6s ease-in-out;
}

/* Sección de proyecto con colores */
.project-info-section {
    position: relative;
    overflow: hidden;
}

.project-info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    animation: rotate-slow 30s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
