/*--------------------------------------------------
	Showcase Portfolio
---------------------------------------------------*/


body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
}

/* Indica scroll botón animado */
#hide-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    transition: all 1s cubic-bezier(0.68, 0, 0.265, 1) 0.1s;
    opacity: 1;
}

#hide-button.show-button {
    bottom: 135px;
    opacity: 1;
}

.arrow {
    width: 40px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    width: 30px;
    height: 40px;
    opacity: 1;
}

.line {
    width: 2.5px;
    height: 10px;
    background-color: #f3bc44;
    position: absolute;
    top: 10px;
    left: 18.5px;
    animation: moveDown 2s infinite ease-in-out;
}

@keyframes moveDown {
    0% {
        top: 10px;
    }

    50% {
        top: 30px;
    }

    100% {
        top: 10px;
    }
}

/* =========================================
   MEDIA QUERY BOTON SCROLL
========================================= */

@media (max-width: 1200px) {
    #hide-button {
        bottom: 90px;
    }
}

@media (max-width: 420px) {
    #hide-button {
        bottom: 90px;
        left: 50%;
    }
}

/* ------ */

.container {
    position: relative;
    width: 100vw;
    height: 70vh;
    display: flex;
    overflow: hidden;
}

.box_head {
    background-color: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Titulo y Subtitulo */
.hero {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Fondo imagen */
.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(70%) brightness(1) contrast(1.1) saturate(1);
    opacity: 0.1;
}

/* El bloque general un poco a la izquierda */
.hero-headline {
    margin-top: 25%;
    width: 100%;
    height: 100%;
    padding-left: 0;
    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%;
}


.w2 {
    /* padding-left: 35%; */
    margin: 0 auto;
    font-weight: 700;
    line-height: 0.92;
    font-size: 180px;
    color: #bdbdbd;
    text-transform: uppercase;
    z-index: 4;
}


.hero-tagline {
    align-self: center;
    /* centrado */
    margin-top: 18px;
    max-width: 50%;
    text-align: center;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.35;
    color: #bebebe;
    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: 100vh;
        align-items: center;
    }

    .hero-headline {
        margin-top: 0;
        height: auto;
        /* evita “doble 100vh” raro */
        gap: 0.14em;
    }

    .w1 {
        padding-left: 15%;
        font-size: 90px;
    }

    .w2 {
        padding-left: 0;
        font-size: 120px;
    }

    .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: 100vh;
        align-items: center;
    }

    .hero-headline {
        margin-top: 0;
        /* en móvil, mejor centrado real */
        height: auto;
        gap: 0.10em;
    }

    /* Mantén el look “escalonado” pero sin irse de pantalla */
    .w1 {
        padding-left: 15%;
        font-size: 42px;
    }

    .w2 {
        padding-left: 0;
        font-size: 62px;
    }

    .w3 {
        align-self: center;
        margin-top: 10px;
        font-size: 54px;
        line-height: 0.98;
    }

    .hero-tagline {
        margin-top: 14px;
        max-width: 92%;
        font-size: 14px;
        line-height: 1.45;
        letter-spacing: 0.02em;
    }

    .slog_sub2 {
        letter-spacing: 1px;
    }
}

/* --- */

/* CONTENEDOR */
.wrap_container {
    background-color: #060708;
    border-top: 1px solid #222222;
    position: relative;
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10.5px;
    padding-bottom: 10%;
}

.masonry_container {
    width: 100%;
    position: relative;
    margin-top: 3%;
    margin-bottom: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* IMPORTANTE */
    text-align: center;
}

.box_masonry_grid {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* GRID */
.masonry_grid {
    position: relative;
    width: 90%;
    columns: 3;
    /* ⭐ 3 columnas */
    column-gap: 35px;
    /* separación horizontal */
}

/* ITEM */
.masonry_item {
    break-inside: avoid;
    margin-bottom: 35px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

/* Envoltorio interno para evitar que la caja se mueva */
.masonry_item a {
    display: block;
    overflow: hidden;
}

/* IMAGEN */
.masonry_item img:not(.round_circle_grid) {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Necesario para el overlay oscuro */
.masonry_item {
    position: relative;
    overflow: hidden;
    /* Para que el overlay no se salga */
}

/* Capa oscura que aparece al pasar el mouse */
.masonry_item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    /* Transparente al inicio */
    transition: background 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

/* Cuando pasas el mouse: se oscurece */
.masonry_item:hover::after {
    background: rgba(0, 0, 0, 0.6);
}

/* Mantienes tu efecto actual en la imagen */
.masonry_item:hover img:not(.round_circle_grid) {
    transform: scale(1.03);
    filter: grayscale(100%) blur(8px);
    transition: 0.4s ease;
}


/* ===== TÍTULO (IMAGENES) ===== */
.box_masonry .masonry_image_title {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 3;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    pointer-events: none;

    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;

    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.box_masonry:hover .masonry_image_title {
    opacity: 1;
    transform: translateY(0);
}


/*text_floating_grid Icono en el puntero del mouse*/
.text_floating_grid {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 1px solid #bebebe;
    opacity: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 333333;
    top: 0;
    left: 0;
    background-size: cover;
    backdrop-filter: blur(3px);
    /* background-color: rgba(229, 9, 20, 0.301); */
    border-radius: 50%;
}

.round_circle_grid {
    width: 25px !important;
    height: 25px !important;
}

/* --- */


/* RESPONSIVE */
@media (max-width: 1200px) {
    .masonry_grid {
        columns: 2;
    }
}

@media (max-width: 700px) {
    .masonry_grid {
        columns: 1;
    }
}


/* 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;
}



/* Icono en el puntero del mouse */
.text_floating_magg {
    position: absolute;
    color: #ccc;
    font-size: 14px;
    letter-spacing: 1px;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    opacity: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 333333;
    top: 0;
    left: 0;
    background-size: cover;
    opacity: 0.1;
    backdrop-filter: blur(3px);
    background-color: #f3bc4465;
    border-radius: 50%;
}

.round_circle_1 {
    width: 50px !important;
    height: 50px !important;
}

/* --- */

/* Estilos Redes Sociales */
.social_media {
    position: fixed;
    bottom: 30px;
    right: 50px;
    display: flex;
    gap: 1.5rem;
    z-index: 999;
}

/* Tamaño y color por defecto de los iconos */
.social_media a {
    text-decoration: none;
}

.social_media a i {
    font-size: 20px;
    color: #454545;
    transition: color 0.3s ease-in-out;
}

.social_media a:hover i.fa-facebook-f {
    color: #1877f2;
}

.social_media a:hover i.fa-instagram {
    color: #ff0069;
}

.social_media a:hover i.fa-500px {
    color: #0099e5;
}

.social_media a:hover i.fa-youtube {
    color: red;
}


/* =================
   MEDIA QUERY
================= */

@media (max-width: 1200px) {
    .social_media {
        position: fixed;
        right: 50%;
        transform: translateX(50%);
    }

}

@media (max-width: 420px) {
    .social_media {
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        gap: 1rem;
    }

    .social_media a i {
        font-size: 16px;
    }
}