* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purpura: #40008c;
    --violeta: #6300cf;
    --magenta: #ef1b4e;
    --naranja: #ff7a37;
    --verde: #c4f582;
    --negro: #000;
    --blanco: #fff;
    --titulos: "urbana", sans-serif;
    --parrafos: "futura-100", sans-serif;
}

body {
    background-color: var(--blanco);
    font-family: var(--parrafos);
    color: var(--negro);
}

.barranav {
    background-color: var(--violeta);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    transition: background-color 0.3s ease;

    & img {
        width: 110px;
        height: auto;
        margin: 0;
    }

    & a {
        margin: 0;
    }

    & button {
        background: var(--purpura);
        color: var(--blanco);
        font-family: var(--titulos);
        font-weight: 700;
        font-size: 32px;
        padding: 3px 25px;
        border-radius: 25px;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        transition: background-color 0.3s ease, transform 0.2s ease;

        &:hover {
            transform: scale(1.03);
        }

        &.open {
            background-color: var(--magenta);
        }

        & img {
            width: 20px;
            margin-left: 8px;
            padding-top: 2px;
        }
    }
}

/* ==========================================
   ESTILOS MENÚ LATERAL DESPLEGABLE (DRAWER)
   ========================================== */

header {
    position: fixed;
    top: 0;
    z-index: 1002;
    width: 100%;
}

header.menu-open .barranav {
    background-color: var(--purpura);
}

/* Telón / Fondo oscuro semi-transparente */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Menú lateral - Se abre de izquierda a derecha (translateX(-100%) a translateX(0)) */
.menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 390px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--purpura);
    z-index: 1001;
    padding: 85px 25px 40px 25px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
}

.menu-drawer.open {
    transform: translateX(0);
}

/* Lista del menú */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.menu-item {
    font-family: var(--titulos);
    font-size: 32px;
    font-weight: 700;
    color: var(--blanco);
    text-transform: uppercase;
    padding: 14px 0;
}

.menu-item a {
    color: var(--blanco);
    text-decoration: none;
    display: block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.menu-item a:hover {
    color: var(--verde);
    transform: translateX(4px);
}

/* Líneas divisorias del menú */
.menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    width: 100%;
    margin: 4px 0;
}

/* Wrapper de Áreas Creativas con Botón desplegable */
.menu-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.btn-dropdown {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--magenta);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.btn-dropdown img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.menu-title-wrapper.active .btn-dropdown img {
    transform: rotate(180deg);
}

/* Submenú de Áreas Creativas */
.submenu-container {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}

.submenu-container.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.submenu-list {
    list-style: none;
    padding: 10px 0 10px 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.submenu-list li a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--blanco);
    font-family: var(--titulos);
    font-size: 24px;
    font-weight: 700;
    padding: 12px 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.submenu-list li a:hover {
    transform: translateX(6px);
    color: var(--verde);
}

/* Badges / Círculos de color */
.badge-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.badge-purple {
    background-color: var(--violeta);
}

.badge-orange {
    background-color: var(--naranja);
}

.badge-magenta {
    background-color: var(--magenta);
}

.badge-green {
    background-color: var(--verde);
}

.badge-beige {
    background-color: #f8f6e8;
}

/* Opción 'Ver todo' */
.ver-todo-li {
    text-align: center;
    padding: 10px 0;
}

.ver-todo-link {
    font-family: var(--titulos) !important;
    font-size: 24px;
    font-weight: 700 !important;
    color: var(--blanco) !important;
    text-align: center;
    justify-content: center !important;
    text-decoration: none;
    display: block !important;
    width: 100%;
}

.ver-todo-link:hover {
    color: var(--verde) !important;
}

/* Contenedor principal de detalle */
.proyecto-detail-main {
    padding-top: 70px;
    width: 100%;
    margin: 0 auto;
}

.proyecto-header-info {
    padding: 30px 25px 25px 25px;
    max-width: 600px;
    margin: 0 auto;
}

.proyecto-titulo {
    font-family: var(--titulos);
    font-size: 32px;
    font-weight: 800;
    color: var(--purpura);
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.proyecto-descripcion {
    font-family: var(--parrafos);
    font-size: 16px;
    line-height: 1.45;
    color: #222;
    margin-bottom: 12px;
}

.proyecto-categoria {
    font-family: var(--parrafos);
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
}

.proyecto-servicios {
    margin-top: 10px;
}

.servicios-label {
    font-family: var(--titulos);
    font-size: 24px;
    font-weight: 700;
    color: var(--purpura);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.servicios-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-pill {
    display: inline-block;
    padding: 6px 18px;
    border: 1.5px solid var(--purpura);
    border-radius: 22px;
    font-family: var(--parrafos);
    font-size: 16px;
    font-weight: 600;
    color: var(--purpura);
    background-color: var(--blanco);
}

/* Galería de imágenes del proyecto */
.proyecto-galeria {
    width: 100%;
    margin-top: 10px;
}

/* 1. Imagen Horizontal Superior */
.galeria-banner-top {
    width: 100%;
    overflow: hidden;
}

.galeria-banner-top img,
.galeria-banner-top video {
    width: 100%;
    height: auto;
    display: block;
}

/* 2. Cuadrícula de 6 Imágenes (3 filas x 2 columnas) */
.galeria-grid-6 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 0;
}

.galeria-grid-6 img,
.galeria-grid-6 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 3. Tres Imágenes Horizontales hacia abajo (Apiladas) */
.galeria-stack-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.galeria-stack-bottom img,
.galeria-stack-bottom video {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   CALL TO ACTION (CTA) EN DETALLE DE PROYECTO
   ========================================== */
.proyecto-cta-container {
    width: 100%;
    padding: 0px 20px 60px 20px;
    display: flex;
    justify-content: center;
}

.proyecto-cta-card {
    background-color: var(--magenta);
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 75%);
    color: var(--blanco);
    border-radius: 40px;
    padding: 48px 24px 44px 24px;
    width: 100%;
    max-width: 580px;
    text-align: center;
    box-shadow: 0 16px 45px rgba(239, 27, 78, 0.28), 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyecto-cta-card:hover {
    box-shadow: 0 20px 50px rgba(239, 27, 78, 0.35), 0 6px 16px rgba(0, 0, 0, 0.1);
}

.cta-eyebrow {
    font-family: var(--titulos);
    font-size: 13px;
    font-weight: 550;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    display: block;
}

.cta-divider {
    width: 38px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    margin: 0 auto 20px auto;
}

.cta-titulo {
    font-family: var(--titulos);
    font-size: 34px;
    font-weight: 800;
    color: var(--blanco);
    line-height: 1.15;
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: -0.3px;
}

.cta-subtitulo {
    font-family: var(--parrafos);
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 30px;
    line-height: 1.35;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.btn-cta-principal {
    background-color: var(--blanco);
    color: var(--magenta);
    font-family: var(--titulos);
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 34px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.25s ease,
        color 0.25s ease;
    cursor: pointer;
}

.btn-cta-principal:hover {
    transform: translateY(-3px) scale(1.02);
    background-color: var(--verde);
    color: var(--purpura);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.cta-icon-arrow {
    transition: transform 0.25s ease;
}

.btn-cta-principal:hover .cta-icon-arrow {
    transform: translateX(5px);
}

.cta-secondary-link {
    font-family: var(--parrafos);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    transition: color 0.2s ease, text-underline-offset 0.2s ease;
    display: inline-block;
    padding: 4px 8px;
}

.cta-secondary-link:hover {
    color: var(--blanco);
    text-underline-offset: 7px;
}

/*Footer*/
.principal_footer {
    position: relative;
    margin-bottom: 0;
    height: auto;
    width: 100%;

    & img {
        position: relative;
        bottom: -10px;
    }
}

footer {
    background-color: var(--violeta);
    color: var(--blanco);
    padding: 15px 30px 30px 30px;

    & h2 {
        font-size: 50px;
        font-family: var(--titulos);
        font-weight: 700;
        line-height: 45px;
        max-width: 300px;
        padding-bottom: 15px;
    }

    & p {
        font-size: 16px;
        font-family: var(--parrafos);
        max-width: 250px;
    }

    & a {
        text-decoration: none;
        color: var(--blanco);
        font-size: 16px;
        font-family: var(--parrafos);
        display: inline-block;
        margin: 15px 0;
    }
}

.redes_sociales {
    display: flex;
    justify-content: space-between;
    align-self: center;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: 15px;

    & a {
        margin-bottom: 15px;
    }
}

/* ==========================================
   ESTILOS POP-UP LIGHTBOX GALERÍA DE PROYECTOS
   ========================================== */

/* Cursor zoom-in para indicar interactividad */
.proyecto-galeria img,
.proyecto-galeria video {
    cursor: zoom-in;
    transition: filter 0.25s ease, transform 0.25s ease;
}

.proyecto-galeria img:hover,
.proyecto-galeria video:hover {
    filter: brightness(0.92);
    transform: scale(1.008);
}

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-content img.changing,
.lightbox-content video.changing,
.lightbox-content.changing img,
.lightbox-content.changing video {
    opacity: 0.3;
    transform: scale(0.97);
}

.lightbox-counter {
    color: var(--blanco);
    font-family: var(--titulos);
    font-size: 16px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--blanco);
    border: none;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background-color: var(--magenta);
    transform: scale(1.1);
}

.lightbox-arrow {
    background: rgba(255, 255, 255, 0.15);
    color: var(--blanco);
    border: none;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.lightbox-arrow:hover {
    background-color: var(--violeta);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .lightbox-arrow {
        width: 42px;
        height: 42px;
        font-size: 22px;
        position: absolute;
        bottom: 25px;
    }

    .lightbox-prev {
        left: 25px;
    }

    .lightbox-next {
        right: 25px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 26px;
    }
}

/* ==========================================
   ANIMACIONES DE CARGA INTERACTIVA EN SCROLL
   ========================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal.is-visible,
.scroll-reveal-left.is-visible,
.scroll-reveal-right.is-visible,
.scroll-reveal-scale.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delay para elementos hijos en grillas o listas */
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.is-visible>*:nth-child(1) {
    transition-delay: 0.08s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.is-visible>*:nth-child(2) {
    transition-delay: 0.16s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.is-visible>*:nth-child(3) {
    transition-delay: 0.24s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.is-visible>*:nth-child(4) {
    transition-delay: 0.32s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.is-visible>*:nth-child(5) {
    transition-delay: 0.40s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.is-visible>*:nth-child(6) {
    transition-delay: 0.48s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.is-visible>*:nth-child(n+7) {
    transition-delay: 0.55s;
    opacity: 1;
    transform: translateY(0);
}


/*  --- Responsive mobile---*/

@media (min-width: 390px) {}

/*  --- Responsive tablet---*/

@media (min-width: 768px) {
    .proyecto-header-info {
        max-width: 730px;
    }

    .proyecto-titulo {
        font-size: 36px;
    }

    .proyecto-cta-container {
        padding: 45px 30px 75px 30px;
    }

    .proyecto-cta-card {
        max-width: 730px;
        border-radius: 32px;
        padding: 60px 40px 52px 40px;
    }

    .cta-eyebrow {
        font-size: 14px;
        letter-spacing: 3px;
    }

    .cta-divider {
        width: 44px;
        margin-bottom: 24px;
    }

    .cta-titulo {
        font-size: 48px;
    }

    .cta-subtitulo {
        font-size: 19px;
        margin-bottom: 34px;
    }

    .btn-cta-principal {
        font-size: 21px;
        padding: 16px 38px;
    }

    .cta-secondary-link {
        font-size: 17px;
    }

    .menu-drawer {
        max-width: 500px;
    }

    .menu-item {
        font-size: 36px;
    }

    .submenu-list li a {
        font-size: 25px;
    }

    footer {
        padding: 15px 50px 30px 50px;

        & .informacion_footer {
            display: flex;
            justify-content: space-between;

            & h2 {
                font-size: 65px;
                max-width: 290px;
                line-height: 60px;
            }

            & p {
                font-size: 18px;
                max-width: 240px;
            }

            & a {
                font-size: 18px;
                margin-bottom: 5px;
            }
        }

    }

    .redes_sociales {
        border-bottom: none;
        margin-top: 15px;
    }

    .final_footer {
        border-top: 1px solid #fff;
        display: flex;
        justify-content: space-between;

        & .elemento1 {
            order: 2;
        }

        & .elemento2 {
            order: 1;
        }

        & p {
            font-size: 16px;
            margin-top: 15px;
        }
    }
}

/*  --- Responsive desktop---*/

@media (min-width: 1200px) {
    .barranav {
        padding: 15px 40px;

        & img {
            width: 130px;
        }

        & button {
            font-size: 44px;
            border-radius: 30px;
            padding: 3px 30px;
        }
    }

    .proyecto-header-info {
        max-width: 1150px;
        padding: 40px;
    }

    .proyecto-titulo {
        font-size: 48px;
    }

    .proyecto-descripcion {
        font-size: 20px;
    }

    .proyecto-categoria {
        font-size: 24px;
    }

    .servicios-label {
        font-size: 32px;
    }

    .badge-pill {
        font-size: 24px;
    }

    .proyecto-galeria {
        padding: 0 60px 20px 60px;
    }

    .proyecto-cta-container {
        padding: 55px 60px 95px 60px;
    }

    .proyecto-cta-card {
        max-width: 1100px;
        border-radius: 36px;
        padding: 75px 60px 65px 60px;
    }

    .cta-eyebrow {
        font-size: 15px;
        letter-spacing: 3.5px;
    }

    .cta-divider {
        width: 50px;
        margin-bottom: 26px;
    }

    .cta-titulo {
        font-size: 62px;
        margin-bottom: 16px;
    }

    .cta-subtitulo {
        font-size: 22px;
        margin-bottom: 38px;
    }

    .btn-cta-principal {
        font-size: 23px;
        padding: 17px 44px;
    }

    .cta-secondary-link {
        font-size: 18px;
    }

    .menu-drawer {
        max-width: 800px;
    }

    .menu-item {
        font-size: 45px;
    }

    .submenu-list li a {
        font-size: 36px;
    }

    a .ver-todo-link {
        font-size: 45px;
    }

    footer {
        padding: 15px 70px 30px 65px;

        & .informacion_footer {
            display: flex;
            justify-content: space-between;

            & h2 {
                font-size: 115px;
                max-width: 510px;
                line-height: 90px;
            }

            & p {
                font-size: 20px;
                max-width: 300px;
                margin-top: 20px;
            }

            & a {
                font-size: 20px;
                padding: 10px 0;

            }
        }

    }

    .redes_sociales {
        border-bottom: none;

    }

    .final_footer {
        border-top: 1px solid #fff;
        display: flex;
        justify-content: space-between;

        & .elemento1 {
            order: 2;
            max-width: 280px;
        }

        & .elemento2 {
            order: 1;
        }

        & p {
            font-size: 20px;
            margin-top: 15px;
        }
    }
}