/* ==========================================================================
   MI PORTFOLIO SLIDER - ESTILOS PARA SHORTCODE
   ========================================================================== */

/* --- Importar Fuentes --- */
@import url('https://fonts.googleapis.com/css2?family=Butler:wght@400;700&family=Georama:wght@400;500;700&display=swap');

/* ==========================================================================
   PROYECTO DESTACADO (Shortcode)
   ========================================================================== */
.mps-featured-project-outer-wrapper {
    width: 100%;
    /* max-width: 1100px; */ /* Opcional, si quieres limitar el ancho del destacado */
    margin: 0 auto 30px auto; /* Centrado y con margen inferior */
    /* padding: 0 15px; */ /* Padding lateral si usas max-width */
    box-sizing: border-box;
}
.mps-featured-project__media-container {
    width: 100%;
    background-color: #111; /* Fondo si no hay imagen/video */
}
.mps-featured-project__media-wrapper {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    display: block; /* Para que el <a> se comporte como bloque */
    text-decoration: none; /* Si es un enlace */
    overflow: hidden; /* Para que el scale del hijo no se salga */
}
.mps-featured-project__media-wrapper--no-image-bg .mps-featured-project__background-image {
    background-color: #1c1c1c; /* Fondo si no hay imagen para el div de fondo */
}
.mps-featured-project__media-wrapper--has-video {
    cursor: pointer;
}
.mps-featured-project__background-image { /* Div interno para la imagen y el zoom */
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
    z-index: 1;
}
.mps-featured-project__media-wrapper:hover .mps-featured-project__background-image {
    transform: scale(1.03);
}
.mps-featured-project__play-button-visual { /* Botón de play visual (span) */
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    background-color: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease; /* Solo transform, no color */
    z-index: 2; /* Encima de la imagen de fondo */
    pointer-events: none; /* El clic lo maneja el wrapper <a> */
}
.mps-featured-project__play-button-visual svg {
    width: 30px; height: 30px;
    fill: #ffffff;
}
.mps-featured-project__media-wrapper:hover .mps-featured-project__play-button-visual {
    transform: translate(-50%, -50%) scale(1.1); /* Escala al hacer hover en el wrapper */
}

/* Contenedor de detalles del proyecto destacado */
.mps-featured-project__details-parent-container {
    background-color: #222222;
    padding: 20px 40px;
    box-sizing: border-box;
}
.mps-featured-project__details-grid-container {
    /* Estilos para el layout del título, año, botón del destacado */
    /* (Este era el layout simple que tenías antes de la ficha técnica completa) */
    display: grid;
    grid-template-columns: auto 1fr auto auto; /* Título, Divisor Flexible, Año/Botón */
    gap: 15px 25px;
    align-items: center;
    border: 1px solid #FFFFFF;
    border-radius: 0px 50px 0px 50px;
    padding: 20px 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    color: #fff; /* Color de texto por defecto */
}
.mps-featured-project__title { /* Título H2 del destacado */
    font-family: "Butler", Sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 1.1em;
    margin: 0;
    color: #fff; /* Color específico del título del destacado */
}
.mps-featured-project__divider { /* Línea divisora */
    height: 1px;
    background-color: #FFFFFF;
    margin: 0 10px; /* Espacio alrededor del divisor */
}
.mps-featured-project__year { /* Año del destacado */
    font-family: 'Georama', sans-serif;
    font-size: 1rem;
    line-height: 1.1em;
    color: #fff;
    text-align: right;
}
.mps-featured-project__button { /* Botón "Ver Proyecto" del destacado */
    background-color: transparent;
    font-family: "Georama", Sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    color: #FFFFFF;
    text-decoration: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-self: end; /* Alinea el botón al final de su celda */
    transition: color 0.3s ease;
    margin-left: 20px; /* Espacio si está junto al año */
}
.mps-featured-project__button:hover {
    color: #fff;
}
.mps-featured-project__button-icon {
    height: 1em;
    width: auto;
    fill: currentColor;
    margin-left: 15px;
}

/* Media query para el layout del grid de detalles del destacado */
@media (max-width: 767px) {
    .mps-featured-project__details-grid-container {
        grid-template-columns: 1fr; /* Una columna en móvil */
        text-align: center;
        gap: 10px;
    }
    .mps-featured-project__title {
        font-size: 1.8rem;
    }
    .mps-featured-project__divider {
        margin: 5px auto; /* Centrar divisor */
        width: 80%;
    }
    .mps-featured-project__year,
    .mps-featured-project__button {
        justify-self: center; /* Centrar elementos */
        text-align: center;
        margin-left: 0;
    }
}


/* ==========================================================================
   SLIDER DE PORTFOLIO (CARRUSEL - Shortcode)
   ========================================================================== */
.mps-portfolio-slider-wrapper {
    position: relative;
    margin: 20px 0;
}
.mps-swiper-container {
    width: 100%;
    overflow: hidden;
    padding-bottom: 50px; /* Espacio para bullets */
    position: relative;
}

/* --- Estilos Base de cada Slide del Carrusel --- */
.mps-slide {
    box-sizing: border-box;
    display: block;
    position: relative;
    min-height: 400px;
    height: auto;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    background-color: #252525;
    border: 1px solid #ffffff;
    border-radius: 0;
}
.mps-slide.mps-slide--has-video { cursor: pointer; }

/* 1. Área de Imagen del Slide */
.mps-slide-image-area {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.4s ease;
}
.mps-slide.mps-slide--has-video:hover .mps-slide-image-area {
    transform: scale(1.05);
}
.mps-slide.mps-slide--no-image .mps-slide-image-area {
    background-color: #333;
}

/* 2. Área de Contenido del Slide (con Gradiente) */
.mps-slide-content-area {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100%;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.95) 100%);
    padding: 50px 30px 30px 30px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    z-index: 2;
}

/* 3. Botón de Play del Slide (si hay video) */
.mps-slide__play-button-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* No tapa el gradiente */
    opacity: 1; /* Siempre visible */
    z-index: 2; /* Encima del gradiente, debajo del texto */
    pointer-events: none;
}
.mps-slide__play-button {
    display: inline-block;
    width: 100px; height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.mps-slide__play-button svg {
    width: 100px; height: 100px;
    fill: #ffffff40;
}
.mps-slide.mps-slide--has-video:hover .mps-slide__play-button {
    transform: scale(1.1);
}

/* 4. Contenido Interno del Texto del Slide */
.mps-slide-content-inner {
    text-align: left;
    color: #ffffff;
    max-width: 100%;
    box-sizing: border-box;
    font-family: 'Georama', sans-serif;
    width: 100%;
    margin-bottom: 5px;
    position: relative;
    z-index: 4; /* Encima de todo */
}

/* Elementos de Texto dentro de .mps-slide-content-inner */
.mps-slide-year {
    display: block; font-size: 0.85em; font-weight: 500; color: rgba(255,255,255,0.85);
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.mps-slide-title {
    font-family: 'Butler', serif; font-size: 1.8em; font-weight: 700; margin-top: 0;
    text-transform: uppercase;
    margin-bottom: 12px; color: #ffffff; line-height: 1.2;
}
.mps-slide-description {
    font-size: 1em; font-weight: 400; line-height: 1.6; color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}
.mps-slide-description p { margin-bottom: 0.5em; }
.mps-slide-description p:last-child { margin-bottom: 0; }

/* Botón "Ver Proyecto" del Slide */
.mps-slide-button {
    display: inline-flex; align-items: center; text-decoration: none;
    background-color: transparent; color: #ffffff; border: none; padding: 0;
    font-family: 'Georama', sans-serif; font-weight: 500; font-size: 0.9em;
    text-transform: uppercase; letter-spacing: 1px; margin-top: 10px;
    cursor: pointer; transition: transform 0.3s ease;
}
.mps-slide-button::after {
    content: ''; display: inline-block; width: 1em; height: 1em; margin-left: 16px;
    background-image: url('../images/arrow-right.svg'); /* RUTA RELATIVA! */
    background-size: contain; background-repeat: no-repeat; background-position: center center;
    transition: transform 0.3s ease;
}
.mps-slide-button:hover, .mps-slide-button:focus {
    transform: scale(1.05); outline: none;
}
.mps-slide-button.mps-slide-button--nolink { cursor: pointer; }

/* --- Navegación Swiper (Bullets y Flechas) --- */
.mps-swiper-container .swiper-pagination {
    bottom: 0px; left: 0; width: 100%; z-index: 10; pointer-events: auto;
}
.mps-swiper-container .swiper-pagination-bullet {
    background-color: rgba(255,255,255,0.4); opacity: 1; margin: 0 5px !important;
    transition: background-color 0.2s ease; width: 10px; height: 10px; border-radius: 50%;
    pointer-events: auto;
}
.mps-swiper-container .swiper-pagination-bullet-active { background-color: #ffffff; }

.mps-portfolio-slider-wrapper > .swiper-button-next,
.mps-portfolio-slider-wrapper > .swiper-button-prev {
    color: #ffffff; background-color: rgba(0,0,0,0.4); border-radius: 0;
    width: 40px; height: 50px; transition: background-color 0.2s ease;
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 20; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mps-portfolio-slider-wrapper > .swiper-button-next:hover,
.mps-portfolio-slider-wrapper > .swiper-button-prev:hover { background-color: rgba(0,0,0,0.7); }

.mps-portfolio-slider-wrapper > .swiper-button-next::after,
.mps-portfolio-slider-wrapper > .swiper-button-prev::after { font-size: 16px; }

.mps-portfolio-slider-wrapper > .swiper-button-prev { left: -40px; }
.mps-portfolio-slider-wrapper > .swiper-button-next { right: -40px; }

@media (max-width: 767px) {
    .mps-portfolio-slider-wrapper > .swiper-button-prev,
    .mps-portfolio-slider-wrapper > .swiper-button-next { width: 30px; height: 40px; }
    .mps-portfolio-slider-wrapper > .swiper-button-prev { left: 5px; }
    .mps-portfolio-slider-wrapper > .swiper-button-next { right: 5px; }
    .mps-portfolio-slider-wrapper > .swiper-button-next::after,
    .mps-portfolio-slider-wrapper > .swiper-button-prev::after { font-size: 14px; }
}

/* --- ESTILOS PERSONALIZADOS PARA LITY LIGHTBOX --- */
.lity { z-index: 99990; }
.lity-close {
    width: 35px; height: 35px; border-radius: 50%;
    background-color: rgba(0,0,0,0.6); border: none; opacity: 0.9;
    transition: opacity 0.2s ease, background-color 0.2s ease; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center center; background-size: 60% 60%;
    position: absolute; z-index: 99999; display: block; pointer-events: auto;
    font-size: 0; line-height: 0; color: transparent; text-indent: -9999px; overflow: hidden;
}
.lity-close:hover, .lity-close:focus { opacity: 1; background-color: rgba(0,0,0,0.8); outline: none; }
@media (min-width: 768px) { .lity-close { top: -15px; right: -15px; } }
@media (max-width: 767px) { .lity-close { top: -40px; right: 5px; } }
.lity-iframe .lity-container { padding: 20px; }
.lity-iframe-container { width: 100%; height: 100%; }