/* ================= PAGINA 7 ================= */
.pagina7 {
    padding: 100px 0;
    background: #0f1a23 url('../image/pagina_7_7.webp') center/cover no-repeat;
    color: #fff;
}

.pagina7 h2{
    color: #fff;
    font-weight: bold;
}

/* HEADER */
.pagina7 .p7-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.pagina7 .p7-header span {
    color: var(--secondary-color);
    font-size: 14px;
    letter-spacing: 2px;
}

.pagina7 .p7-header h2 span {
    color: var(--secondary-color);
    font-size: 36px;
    font-weight: bold;
}

/* GRID */
.pagina7 .p7-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ITEM */
.pagina7 .p7-item {
    position: relative;
    overflow: hidden;
}

.pagina7 .p7-item img {
    width: 100%;
    display: block;
    transition: 0.5s;
}

/* HOVER ZOOM */
.pagina7 .p7-item:hover img {
    transform: scale(1.1);
}

/* OVERLAY */
.pagina7 .p7-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    color: #000;
    padding: 15px;
}

.pagina7 .p7-overlay span {
    color: var(--secondary-color);
    font-size: 12px;
}

.pagina7 .p7-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: var(--secondary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media (max-width: 992px) {
    .pagina7 .p7-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pagina7 .p7-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .pagina7 .p7-grid {
        grid-template-columns: 1fr;
    }

    .pagina7 {
        padding: 60px 0;
    }
}


/* ================= HOVER PORTFOLIO ================= */

/* ITEM */
.p7-item {
    position: relative;
    overflow: hidden;
}

/* IMAGEN */
.p7-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

/* ZOOM SUAVE */
.p7-item:hover img {
    transform: scale(1.08);
}

/* OVERLAY NARANJA */
.p7-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,122,0,0.85);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* MOSTRAR OVERLAY */
.p7-item:hover::before {
    opacity: 1;
}

/* ICONO + */
.p7-plus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.8);
    color: #fff;
    font-size: 100px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

/* ANIMACION + */
.p7-item:hover .p7-plus {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* CARD BLANCA */
.p7-overlay {
    position: absolute;
    bottom: -80px;
    left: 20px;
    right: 20px;
    background: #fff;
    padding: 15px;
    transition: all 0.4s ease;
    z-index: 3;
}

/* SUBE LA CARD */
.p7-item:hover .p7-overlay {
    bottom: 20px;
}

/* TEXTO */
.p7-overlay span {
    color: var(--secondary-color);
    font-size: 12px;
}

.p7-overlay h4 {
    margin: 5px 0;
}

/* BOTON */
.p7-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: var(--secondary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}