/* ================================================
   PROJECT DETAIL — CASE STUDY PAGES
   Estilos específicos para las páginas de detalle
   de cada proyecto del portafolio.
   ================================================ */

/* --- Hero del proyecto --- */
.project-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
    overflow: hidden;
}



/* --- Badge del tipo de proyecto --- */
.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.1);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgb(168, 85, 247);
    backdrop-filter: blur(8px);
}

.project-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgb(168, 85, 247);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Stat cards (métricas del proyecto) --- */
.stat-card {
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    border-color: rgba(168, 85, 247, 0.25);
    background: rgba(168, 85, 247, 0.05);
    transform: translateY(-4px);
}

.stat-card .stat-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #71717a;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fafafa;
}

.stat-card .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: rgba(168, 85, 247, 0.1);
    margin: 0 auto 0.75rem;
    color: rgb(168, 85, 247);
}

/* --- Section dividers --- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(63, 63, 70, 0.5), transparent);
    margin: 0 auto;
    max-width: 80%;
}

/* --- Problem/Solution cards --- */
.problem-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid rgba(63, 63, 70, 0.3);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.problem-point:hover {
    border-color: rgba(168, 85, 247, 0.2);
    background: rgba(168, 85, 247, 0.03);
}

.problem-point .point-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.625rem;
    background: rgba(168, 85, 247, 0.1);
    flex-shrink: 0;
    margin-top: 2px;
}

.problem-point .point-icon .material-symbols-outlined {
    font-size: 18px;
    color: rgb(168, 85, 247);
}

/* --- Architecture / Stack cards --- */
.arch-card {
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.arch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.arch-card:hover {
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.1);
}

.arch-card:hover::before {
    opacity: 1;
}

.arch-card .arch-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    background: rgba(168, 85, 247, 0.1);
    margin-bottom: 1rem;
}

.arch-card .arch-icon .material-symbols-outlined {
    font-size: 24px;
    color: rgb(168, 85, 247);
}

.project-stack-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 0.75rem auto;
    filter: invert(1) brightness(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.arch-card:hover .project-stack-icon {
    filter: invert(1) brightness(1) sepia(1) hue-rotate(240deg) saturate(3);
    transform: scale(1.1) translateY(-2px);
}

/* --- Feature cards --- */
.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid rgba(63, 63, 70, 0.3);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    border-color: rgba(168, 85, 247, 0.25);
    background: rgba(168, 85, 247, 0.04);
    transform: translateY(-3px);
}

.feature-card .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0.875rem;
    background: rgba(168, 85, 247, 0.1);
    flex-shrink: 0;
}

.feature-card .feature-icon .material-symbols-outlined {
    font-size: 22px;
    color: rgb(168, 85, 247);
}

/* --- Gallery placeholder cards --- */
.gallery-placeholder {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: rgba(24, 24, 27, 0.5);
    border: 1px dashed rgba(63, 63, 70, 0.5);
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.gallery-placeholder .material-symbols-outlined {
    font-size: 36px;
    color: #3f3f46;
}

.gallery-placeholder span:last-child {
    font-size: 0.75rem;
    color: #52525b;
    font-weight: 600;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 16/10;
    transition: all 0.4s ease;
}

.gallery-image:hover {
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.15);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image:hover img {
    transform: scale(1.05);
}

/* --- Learning / Result cards --- */
.learning-card {
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid rgba(63, 63, 70, 0.3);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.learning-card:hover {
    border-color: rgba(168, 85, 247, 0.2);
    background: rgba(168, 85, 247, 0.03);
}

/* --- CTA final section --- */
.project-cta {
    position: relative;
    background: rgba(168, 85, 247, 0.04);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 2.5rem;
    padding: 3rem 2rem;
    overflow: hidden;
    text-align: center;
}

.project-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.12), transparent 70%);
    pointer-events: none;
}

/* --- Button styles for project pages --- */
.btn-primary-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgb(168, 85, 247);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 1rem;
    font-weight: 900;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary-project:hover {
    transform: scale(0.95);
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.45);
}

.btn-secondary-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    color: #fafafa;
    padding: 0.875rem 2rem;
    border-radius: 1rem;
    font-weight: 900;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary-project:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.97);
}

.btn-private-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid rgba(63, 63, 70, 0.5);
    color: #a1a1aa;
    padding: 0.875rem 2rem;
    border-radius: 1rem;
    font-weight: 800;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    cursor: not-allowed;
    user-select: none;
}

/* --- Project card CTA in index.html --- */
.project-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: rgb(168, 85, 247);
    font-weight: 800;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}

.project-view-btn:hover {
    background: rgb(168, 85, 247);
    border-color: rgb(168, 85, 247);
    color: white;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
    transform: translateY(-2px);
}

.project-view-btn .material-symbols-outlined {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.project-view-btn:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* --- Project card image badge overlay --- */
.project-image-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 0.75rem;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fafafa;
}

.project-image-badge .material-symbols-outlined {
    font-size: 14px;
    color: rgb(168, 85, 247);
}

/* --- Section heading style --- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgb(168, 85, 247);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: rgb(168, 85, 247);
    border-radius: 1px;
}

/* ================================================
   RESPONSIVE — MOBILE ADJUSTMENTS
   ================================================ */

@media (max-width: 639px) {
    .project-hero {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 2rem;
    }

    .stat-card {
        padding: 1.25rem 1rem;
        border-radius: 1rem;
    }

    .arch-card {
        padding: 1.25rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .project-cta {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }

    .btn-primary-project,
    .btn-secondary-project {
        width: 100%;
        padding: 1rem 1.5rem;
    }
}
