/*--------------------------------------------------
	Showcase Portfolio
---------------------------------------------------*/


body {
    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: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* HERO PROYECTO AJAX */
.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(0) brightness(.7) contrast(1) saturate(.6);
    opacity: 1;
}

/* ===============================================
TÍTULO HERO PÁGINAS AJAX
================================================ */

.hero {
    position: relative;
}

.ajax-page-title {
    position: absolute;
    left: 8vw;
    bottom: 16%;
    z-index: 10;
    pointer-events: none;
}

.ajax-page-kicker {
    display: block;
    width: max-content;
    margin-left: auto;
    right: 10px;
    /* margin-left: auto;
    margin-right: auto; */
    margin-bottom: 0;

    color: #fff;
    font-size: 40px;
    font-weight: 100;

    opacity: 0;
    transform: translateY(20px);

    position: relative;
    top: 30px;
}

.ajax-page-subtitle {
    display: block;
    width: max-content;
    margin-left: 5px;
    /* font-family: "PPEditorial_New", sans-serif; */
    color: #ffffff;
    font-size: 24px;
    font-weight: 400;

    opacity: 0;
    transform: translateY(-20px);

    position: relative;
    top: -20px;
}

.ajax-title-mask {
    overflow: hidden;
    display: block;
}

.ajax-page-title h1 {
    color: #ececec;
    margin: 0;

    font-size: 100px;
    line-height: 130px;
    font-weight: 600;
    /* text-transform: uppercase; */
    opacity: 1;
    transform: translateY(115%);
}

.ajax-hero-line {
    position: absolute;
    left: 8vw;
    bottom: 15%;
    width: 84vw;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
    pointer-events: none;

    transform: scaleX(1);
    transform-origin: left center;

}



/* ==================================== */

/* CONTENEDOR */
.wrap_container {
    background-color: #1b1c1d;
    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: 5%;
    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;
    column-gap: 140px;
}

/* ITEM */
.masonry_item {
    break-inside: avoid;
    margin-bottom: 140px;
    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);
}





/* 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;
}





/* 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: #fff;
    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%);
    }

    /* GRID */
    .masonry_grid {
        column-gap: 50px;
    }

    /* ITEM */
    .masonry_item {
        margin-bottom: 90px;
    }

}

@media (max-width: 420px) {
    .social_media {
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        gap: 1rem;
    }

    .social_media a i {
        font-size: 16px;
    }

    /* GRID */
    .masonry_grid {
        column-gap: 100px;
    }

    /* ITEM */
    .masonry_item {
        margin-bottom: 30px;
    }
}