/* ===== ATHENA LAB - ESTILOS ESPECÍFICOS ===== */

/* ===== SECTION LABEL (shared utility) ===== */
.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

/* ===== SERVICE TAGS (lab cards) ===== */
.lab-service-card .service-tags {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lab-service-card .service-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botón Volver */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

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

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.btn-outline-dark {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline-dark:hover {
    background: #ffffff;
    color: #000000;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ===== LAB HERO ===== */
.lab-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.athena-lab-page {
    background: #000000;
}

/* Canvas posicionado dentro del hero */
.lab-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.athena-lab-page .lab-hero {
    background: transparent;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.lab-hero-content,
.lab-hero-image {
    position: relative;
    z-index: 1;
}

.lab-hero-content {
    flex: 1;
    max-width: 600px;
}

.lab-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #ffffff;
    max-width: 520px;
}

.lab-hero-content h1 span {
    color: #6366f1;
}

.lab-hero-content p {
    font-size: 1.05rem;
    color: #94a3b8;
    margin-bottom: 32px;
    line-height: 1.7;
    text-align: justify;
    max-width: 520px;
}

.lab-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lab-hero-image img {
    max-width: 500px;
}

/* ===== LAB ABOUT ===== */
.lab-about {
    padding: 100px 20px;
    background: #050b18;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    position: relative;
    overflow: hidden;
}

.lab-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    border-radius: 2px;
}

.lab-about h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.lab-about h2 span {
    color: #6366f1;
}

.section-intro {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.about-text {
    background: #0f1f35;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.about-text h3 {
    font-size: 1.4rem;
    color: #f1f5f9;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-text h3::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #6366f1, #22d3ee);
    border-radius: 2px;
}

.about-text p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
    font-size: 0.95rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 28px 20px;
    background: #0f1f35;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.12);
}

.feature-item i {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    transition: all 0.4s ease;
}

.feature-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.feature-item span {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ===== LAB TEAM ===== */
.lab-team {
    padding: 100px 20px;
    background: #0a1628;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    position: relative;
}

.lab-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    border-radius: 2px;
}

.lab-team h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: #f1f5f9;
}

.lab-team h2 span {
    color: #6366f1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1150px;
    margin: 50px auto 0;
}

.team-card {
    background: #0f1f35;
    padding: 35px 24px 30px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.team-avatar {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #1a2744 0%, #0f1f35 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 4px solid #6366f1;
    overflow: hidden;
    transition: all 0.4s ease;
}

.team-card:hover .team-avatar {
    border-color: #22d3ee;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-avatar img {
    transform: scale(1.1);
}

.team-avatar i {
    font-size: 2.5rem;
    color: #6366f1;
}

.team-card h4 {
    font-size: 1.15rem;
    color: #f1f5f9;
    margin-bottom: 6px;
    font-weight: 700;
}

.team-card:hover h4 {
    color: #22d3ee;
}

.team-role {
    display: inline-block;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}

.team-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.team-social a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.team-social a:hover::before {
    width: 150%;
    height: 150%;
}

.team-social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.team-social a:first-child:hover {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    border-color: #0077b5;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

.team-social a:last-child:hover {
    background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
    border-color: #333333;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.team-social a:hover::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: pulse-ring 0.8s ease-out;
}

.team-card p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: justify;
}

/* ===== LAB SERVICES ===== */
.lab-services {
    padding: 100px 20px;
    background: #050b18;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    position: relative;
}

.lab-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    border-radius: 2px;
}

.lab-services h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: #f1f5f9;
}

.lab-services h2 span {
    color: #6366f1;
}

.lab-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.lab-service-card {
    background: #0f1f35;
    padding: 36px 30px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lab-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.lab-service-card:hover::after {
    transform: scaleX(1);
}

.lab-service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.12);
}

.lab-service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.lab-service-card:hover .lab-service-icon {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.lab-service-icon i {
    font-size: 1.5rem;
    color: #ffffff;
    transition: color 0.4s ease;
}

.lab-service-card:hover .lab-service-icon i {
    color: #ffffff;
}

.lab-service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: #f1f5f9;
    font-weight: 700;
}

.lab-service-card:hover h3 {
    color: #22d3ee;
}

.lab-service-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.9rem;
    text-align: justify;
    flex: 1;
}

/* ===== LAB CTA ===== */
.lab-cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, #050b18 0%, #0a1628 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lab-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.lab-cta h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
}

.lab-cta h2 span {
    color: #6366f1;
}

.lab-cta p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.8;
    position: relative;
}

.lab-cta .btn-primary {
    padding: 16px 40px;
    font-size: 1rem;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.lab-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .lab-hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }

    .lab-hero-content h1 {
        font-size: 2.5rem;
    }

    .lab-hero-content p {
        text-align: center;
    }

    .lab-hero-image {
        order: -1;
    }

    .lab-hero-image img {
        max-width: 300px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lab-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lab-hero-content h1 {
        font-size: 2rem;
    }

    .team-grid,
    .lab-services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .about-features {
        margin-top: 30px;
    }
}
