:root {
    --bg-dark: #0F0F11;
    --accent-color: #E2B65A;
    --text-white: #F8FAFC;
    --text-muted: #b6b6b6;
    --font-poppins: "Poppins", sans-serif;
    --font-mono: "Roboto Mono", monospace;
}

/* TOGGLE */
#lang-toggle-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    
    width: 90px;
    height: 36px;
    background-color: #1e293b;
    border-radius: 36px;
    border: none;
    cursor: pointer;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.4s ease;
    overflow: hidden;
}

#lang-toggle-btn .lang-option {
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-white);
    z-index: 1;
    width: 26px;
    text-align: center;
    transition: opacity 0.3s ease;
}

#lang-toggle-btn::after {
    content: '';
    position: absolute;
    width: 38px;
    height: 28px;
    background-color: var(--text-white);
    border-radius: 25px;
    top: 4px;
    left: 4px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

#lang-toggle-btn[data-lang="en"] {
    background-color: #db4e44;
}
#lang-toggle-btn[data-lang="en"]::after {
    transform: translateX(1px);
}

#lang-toggle-btn[data-lang="es"] {
    background-color: #2a579b;
}
#lang-toggle-btn[data-lang="es"]::after {
    transform: translateX(42px);
}


/* PROJECT */
.project-detail-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-poppins);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.project-showcase-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    gap: 32px;
}

.media-container-card {
    position: relative;
    background-color: #222224;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 
                0 0 100px rgba(0, 0, 0, 0.2);
    display: flex;
    transition: all 0.4s ease;
    margin: 0 auto;
    box-sizing: border-box;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 75vh;
}

.project-media-content {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.placeholder-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 70%);
    background-size: 200% 100%;
    animation: shine 2.5s infinite linear;
    z-index: 2;
    pointer-events: none;
}

.project-media-content img,
.project-media-content video,
.project-media-content iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.img-zoom:hover {
    transform: scale(1.025);
}

@keyframes shine {
    to { background-position-x: -200%; }
}

.project-showcase-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -68%); 
    margin: 0;
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 10;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6),
                 0 0 40px rgba(255, 255, 255, 0.2);
}

.scroll-indicator-arrow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-white);
    animation: bounce 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}


/* 1. Formato Ultra-Wide Cinema (El ancho se estira elegantemente) */
.media-container-card.p-21-9 {
    aspect-ratio: 21 / 9;
}

/* 2. Formato Cinematic Estándar */
.media-container-card.p-16-9 {
    aspect-ratio: 16 / 9;
}

/* 3. Formato Cuadrado / Redes */
.media-container-card.p-1-1 {
    aspect-ratio: 1 / 1;
}

/* 4. Formato Vertical Corto / Retrato */
.media-container-card.p-4-5 {
    aspect-ratio: 4 / 5;
}

/* 5. Formato Vertical Completo / Mobile Reels (Se encoge horizontalmente como un celular) */
.media-container-card.p-9-16 {
    aspect-ratio: 9 / 16;
}


/* INFO PROJECT */
.project-info-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.project-info-container {
    width: 100%;
    max-width: 1350px;
    padding: 60px 24px 50px;
    display: flex;
    gap: 80px;
}

.info-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.software-badges-container {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.badge-software {
    display: inline-flex;
    align-items: center;
    background-color: rgba(226, 182, 90, 0.25);
    padding: 6px 12px;
    border-radius: 20px;
    gap: 8px;
    user-select: none;
}

.software-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.software-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-color);
}

.project-description-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-white);
    margin: 0 0 32px 0;
    letter-spacing: -0.5px;
    font-family: var(--font-mono);
}

.project-steps-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
    font-family: var(--font-mono);
}

.step-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-white);
}

.step-item p {
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--text-white);
    font-weight: 200;
}

.highlight-text {
    color: var(--accent-color);
    font-weight: 500;
}

.info-right-column {
    width: 100%;
    max-width: 440px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-meta-card {
    background-color: var(--accent-color);
    background-image: url("https://www.transparenttextures.com/patterns/transparent-square-tiles.png");
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.meta-group {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--bg-dark);
    text-transform: capitalize;
    line-height: 1;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--bg-dark);
    margin-top: 2px;
    font-family: var(--font-mono);
}

.project-cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.cta-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.4;
    margin: 0;
}

.btn-project-cta {
    width: 100%;
    max-width: 380px;
    padding: 12px 72px;
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.btn-project-cta:hover {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(229, 184, 89, 0.3);
}

.project-footer {
    width: 100%;
    padding: 12px 24px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-divider {
    width: 100%;
    max-width: 1048px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 12px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: rgba(229, 184, 89, 0.7);
    border: none;
}

.divider-dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent-color);
    transform: rotate(45deg);
    flex-shrink: 0;
    backface-visibility: hidden;
}

.footer-copyright {
    font-size: 1rem;
    color: var(--text-white);
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 400;
}


/* RESPONSIVE DESIGN */
/* PC & HORIZONTAL TABLET */
@media (max-width: 1200px) {
    .project-info-container {
        gap: 40px;
        padding: 50px 24px;
    }

    .project-description-title {
        font-size: 1.8rem;
    }
}

/* VERTICAL TABLETS & MEDIUM SCREENS */
@media (max-width: 992px) {
    .project-info-container {
        flex-direction: column;
        gap: 48px;
        padding: 40px 24px;
    }

    .info-left-column {
        margin-bottom: 20px;
    }

    .info-right-column {
        max-width: 100%;
    }
}

/* MOBILES */
@media (max-width: 576px) {
    .project-showcase-wrapper {
        padding: 0 16px;
    }

    .project-showcase-title {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
        transform: translate(-50%, -60%);
    }

    .project-description-title {
        font-size: 1.6rem;
        line-height: 1.4;
        margin-bottom: 24px;
        text-align: center;
    }

    .software-badges-container {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .info-left-column {
        text-align: justify;
    }

    .badge-software {
        padding: 4px 10px;
    }

    .software-text {
        font-size: 0.8rem;
    }

    .project-steps-list {
        gap: 28px;
    }

    .step-item h3 {
        font-size: 1.1rem;
    }

    .step-item p {
        font-size: 0.95rem;
    }

    .project-meta-card {
        padding: 24px;
        gap: 20px;
    }

    .meta-label {
        font-size: 1.6rem;
    }

    .meta-value {
        font-size: 1rem;
    }

    .btn-project-cta {
        max-width: 100%;
    }

    .footer-copyright {
        text-align: center;
    }
}