/*--------------------------------------------------
	Showcase Portfolio
---------------------------------------------------*/


body {
    background-color: #171717;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
}




.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.box_head {
    background-color: #171717;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Titulo y Subtitulo */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Fondo imagen */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.dynamic-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: grayscale(60%); */
    /* opacity: 0.02; */
}


/* El bloque general un poco a la izquierda */
.hero-headline {
    margin-top: 20%;
    width: 100%;
    height: 100vh;
    padding-left: 0;
    /* mueve el conjunto a la izquierda con margen cómodo */
    display: flex;
    flex-direction: column;
    gap: 0.18em;
}

/* Cada palabra como “caja” controlable */
.hero-word {
    display: block;
    width: fit-content;
    /* la caja se adapta al texto */
    max-width: 100%;
}

/* Escalonado tipo MAGG*/
.w1 {
    padding-left: 5%;
    font-weight: 700;
    line-height: 0.92;
    font-size: 140px;
    color: #5a5a5a;
    text-transform: uppercase;
    z-index: 4;
}

.w2 {
    padding-left: 20%;
    font-weight: 200;
    line-height: 0.92;
    font-size: 140px;
    color: #5a5a5a;
    text-transform: uppercase;
    z-index: 4;
}

.w3 {
    /* padding-left: 15%; */
    align-self: center;
    margin-top: 6%;
    font-weight: 600;
    font-size: 240px;
    line-height: 250px;
    color: #ffffff;
}

.hero-tagline {
    align-self: center;
    /* centrado */
    margin-top: 0;
    max-width: 50%;
    /* para que no se vaya a una línea infinita */
    text-align: center;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.35;
    color: rgba(255, 255, 255, .78);
    letter-spacing: 0.04em;
}

.slog_sub2 {
    font-family: "PPEditorial_New", sans-serif;
    font-weight: 200;
    letter-spacing: 2px;
}

.hero-word .char {
    display: inline-block;
    will-change: transform, filter, opacity;
}

/* =========================================
   MEDIA QUERY <= 1200px
   (tablets / laptops pequeños)
========================================= */
@media (max-width: 1200px) {

    .hero {
        height: 100%;
        align-items: center;
    }

    .hero-headline {
        margin-top: 0;
        height: auto;
        /* evita “doble 100vh” raro */
        gap: 0.14em;
    }

    .w1 {
        padding-left: 4%;
        font-size: 76px;
    }

    .w2 {
        padding-left: 14%;
        font-size: 76px;
    }

    .w3 {
        margin-top: 3%;
        font-size: 100px;
    }

    .hero-tagline {
        margin-top: 16px;
        max-width: 760px;
        font-size: 16px;
        line-height: 1.35;
        letter-spacing: 0.03em;
    }

    .slog_sub2 {
        letter-spacing: 1.5px;
    }
}


/* =========================================
   MEDIA QUERY <= 420px
   (móvil)
========================================= */
@media (max-width: 420px) {

    .hero {
        height: 100%;
        align-items: center;
    }

    .hero-headline {
        margin-top: 100px;
        /* en móvil, mejor centrado real */
        height: 60vh;
        gap: 0.10em;
    }

    /* Mantén el look “escalonado” pero sin irse de pantalla */
    .w1 {
        padding-left: 6%;
        font-size: 42px;
        line-height: 0.98;
    }

    .w2 {
        padding-left: 12%;
        font-size: 42px;
        line-height: 0.98;
    }

    .w3 {
        align-self: center;
        margin-top: 20px;
        font-size: 54px;
        line-height: 0.98;
    }

    .hero-tagline {
        margin-top: 60px;
        max-width: 92%;
        font-size: 14px;
        line-height: 1.45;
        letter-spacing: 0.02em;
    }

    .slog_sub2 {
        letter-spacing: 1px;
    }
}

/* --- */

.title-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
}

.subtitle_container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.wrap_title {
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.wrap_title>h1 {
    font-size: 150px;
    line-height: 150px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    position: relative;
    transform: translateY(150%);
}

.wrap_title .titul_serifa {
    font-family: "PPEditorial_New", sans-serif;
    font-weight: 200;
    font-style: italic;
    color: #ffffff;
}

/* Estilo del subtítulo */
.subtitle-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitle {
    font-size: 32px;
    font-weight: 300;
    color: #ccc;
    position: relative;
    bottom: 40px;
    left: 41%;
}

/* --- */

/* Portfolio acordeon */
.wrap_container {
    background-color: #1b1c1d;
    border-top: 1px solid #383838;
    position: relative;
    width: 100vw;
    height: auto;
    /* border-top: 1px solid #323232; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10.5px;
    padding-bottom: 10%;
}

.flex-container {
    position: relative;
    display: flex;
    width: 92vw;
    height: 90vh;
    overflow: hidden;
    gap: 10.5px;
    /* box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); */
}

.container_one {
    margin-top: 5%;
}

/* Estilos para el video al pasar el mouse hace play */
.box-video-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flex-slide {
    flex: 1;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.flex-slide img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.flex-slide:hover img {
    filter: grayscale(0%) brightness(0.7);
    transform: scale(1.03);
}

.portfolio_title {
    position: absolute;
    left: 50%;
    top: 15px;
    transform: translateX(-50%);
    font-size: 30px;
    text-align: center;
    white-space: nowrap;
    /* letter-spacing: 30px; */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.portfolio_title span {
    font-size: 30px;
}

.portfolio_title {
    color: #424242;
    font-weight: 700;
}

.portfolio_title .style2 {
    color: #424242;
    font-weight: 700;
}

.flex-title {
    position: absolute;
    font-weight: 600;
    font-size: 60px;
    line-height: 100px;
    text-align: center;
    white-space: pre-line;
    will-change: transform;
    pointer-events: none;
    z-index: 2;
}

.flex-subtitle {
    position: absolute;
    font-weight: 300;
    font-size: 20px;
    line-height: 34px;
    text-align: center;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.titlephoto {
    background: rgba(17, 17, 17, 0.596);
    position: absolute;
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    bottom: 20px;
    right: 20px;
    padding: 8px 18px 8px 18px;
    border-radius: 7px;
    text-align: center;
    counter-reset: #fff;
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) 0.5s;
    opacity: 0;
    transform: translateY(100px);
}

.flex-slide:hover .titlephoto {
    bottom: 20px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s;
}

.flex-slide:hover .flex-subtitle {
    opacity: 1;
    transform: translateY(55px);
}

/* ---- */

/* Media Query */
@media screen and (max-width: 1200px) {
    .wrap_title>h1 {
        font-size: 90px;
        line-height: 90px;
    }

    .subtitle {
        font-size: 26px;
        left: 0;
    }

    .flex-title {
        font-size: 60px;
        line-height: 70px;
    }

    .flex-subtitle {
        font-size: 18px;
        line-height: 18px;
    }

    .flex-slide:hover .flex-subtitle {
        transform: translateY(47px);
    }

    .mouse_text {
        font-size: 18px;
        line-height: 22px;
    }
}

@media screen and (max-width: 420px) {
    .wrap_title>h1 {
        font-size: 40px;
        line-height: 40px;
    }

    .titlephoto {
        font-weight: 300;
        font-size: 12px;
        padding: 5px 15px 5px 15px;
    }

    .subtitle {
        font-size: 16px;
        left: 0;
    }

    .scroll-down-button {
        bottom: 5%;
        right: 17px;
    }

    .flex-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 92vw;
        height: 92vh;
        overflow: hidden;
        gap: 10.5px;
    }

    .flex-slide {
        flex-wrap: wrap;
        width: 100vw;
        height: 100vh;
        border-radius: 20px;
        overflow: hidden;
    }

    .flex-title {
        font-size: 40px;
        line-height: 50px;
    }

    .flex-subtitle {
        font-size: 16px;
        line-height: 16px;
    }

    .flex-slide:hover .flex-subtitle {
        transform: translateY(30px);
    }

    .text_floating_magg {
        display: none;
    }

    .mouse_text {
        font-size: 16px;
        line-height: 18px;
    }
}

/* --- */

/* Copiar E-mail */
.container_mail {
    background-color: #151515;
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 7%;
    display: flex;
    text-align: center;
    justify-content: center;
}

/* Estilos para el div interno */
.internal_mail {
    width: auto;
    height: 150px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.rolling_text {
    font-size: 28px;
    line-height: 80px;
    font-weight: 500;
    font-style: italic;
    color: #ebebeb;
}