/* Stack Tecnológico - Estilos Compactos */

.tech-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.tech-intro .section-title {
    margin-bottom: var(--spacing-sm);
}

.tech-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.tech-stat-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
}

.tech-stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-stat-card:hover::after {
    opacity: 1;
}

.tech-stat-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.tech-stat-value {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    position: relative;
    z-index: 1;
}

.tech-stat-label {
    color: var(--secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.tech-tabs {
    margin-bottom: var(--spacing-xl);
}

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

.tech-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: attr(data-level);
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

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

.tech-card-icon {
    font-size: 2.4rem;
    color: var(--accent);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
}

.tech-card-level {
    display: block;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.tech-card-progress {
    height: 8px;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.tech-card-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.tech-card-description {
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    min-height: 72px;
}

.tech-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.tech-certifications {
    margin-top: var(--spacing-xxl);
}

.tech-certifications .certifications-grid {
    gap: var(--spacing-lg);
}

.cert-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.cert-icon {
    font-size: 2rem;
    color: var(--accent);
}

.cert-item strong {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--dark);
}

.cert-item span {
    color: var(--secondary);
    font-size: 0.9rem;
}

.tech-cta {
    margin-top: var(--spacing-xxl);
    text-align: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12));
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.tech-cta h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
}

.tech-cta p {
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Tech Theme Adaptations */
.tech-mode .tech-stat-card,
.tech-mode .tech-card,
.tech-mode .cert-item {
    background: rgba(26, 31, 58, 0.6) !important;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.15);
}

.tech-mode .tech-stat-icon,
.tech-mode .tech-card-icon,
.tech-mode .cert-icon {
    color: var(--tech-glow) !important;
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.tech-mode .tech-stat-value {
    color: var(--tech-accent) !important;
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.tech-mode .tech-stat-label,
.tech-mode .tech-card-level,
.tech-mode .tech-card-description,
.tech-mode .cert-item span,
.tech-mode .tech-cta p {
    color: rgba(224, 231, 255, 0.75) !important;
}

.tech-mode .tech-card::before {
    background: rgba(6, 182, 212, 0.2) !important;
    color: var(--tech-accent) !important;
}

.tech-mode .tech-card-progress {
    background: rgba(148, 163, 184, 0.2);
}

.tech-mode .tech-card-progress-bar {
    background: linear-gradient(90deg, var(--tech-glow), rgba(6, 182, 212, 0.8));
}

.tech-mode .tech-chip {
    background: rgba(6, 182, 212, 0.2);
    color: var(--tech-accent);
}

.tech-mode .tech-cta {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(14, 165, 233, 0.12));
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.tech-mode .tech-cta h3 {
    color: var(--tech-text) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .tech-card-description {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .tech-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .tech-card-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tech-card {
        padding: var(--spacing-md);
    }

    .tech-card-icon {
        font-size: 2rem;
        width: 42px;
        height: 42px;
    }

    .tech-card::before {
        font-size: 0.7rem;
    }
}
