/* ==========================================================
   VARIABLES — MODAL GLOBAL
========================================================== */

:root {

    --modal-width: 1200px;

    --modal-height: 760px;

    --modal-padding: 56px;

}


/* ==========================================================
   MODAL GLOBAL
========================================================== */

.global-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;

}


/* ==========================================================
   MODAL ACTIVO
========================================================== */

.global-modal.active {

    display: block;

    opacity: 1;

    visibility: visible;

}


/* ==========================================================
   OVERLAY
========================================================== */

.global-modal-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    box-sizing: border-box;

    background: rgba(18, 18, 18, .72);

    backdrop-filter: blur(8px);

}


/* ==========================================================
   CONTENEDOR
========================================================== */

.global-modal-content {

    position: relative;

    display: flex;

    flex-direction: column;

    width: min(
        var(--modal-width),
        94vw
    );

    height: min(
        var(--modal-height),
        92vh
    );

    max-height: 92vh;

    box-sizing: border-box;

    background: #ffffff;

    border: none;

    border-radius: 0;

    overflow: hidden;

    box-shadow:
        0 40px 100px rgba(0, 0, 0, .22);

    transform:
        translateY(24px)
        scale(.98);

    transition:
        transform .35s ease;

}


/* ==========================================================
   ANIMACIÓN ACTIVA
========================================================== */

.global-modal.active .global-modal-content {

    transform:
        translateY(0)
        scale(1);

}


/* ==========================================================
   CUERPO
========================================================== */

.global-modal-body {

    display: flex;

    flex-direction: column;

    flex: 1;

    min-height: 0;

    padding: var(--modal-padding);

    box-sizing: border-box;

    overflow-y: auto;

}


/* ==========================================================
   BOTÓN CERRAR
========================================================== */

.global-modal-close {

    position: absolute;

    top: 24px;

    right: 24px;

    z-index: 10;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 44px;

    height: 44px;

    padding: 0;

    border: none;

    border-radius: 0;

    background: transparent;

    color: #667085;

    font-family: "Roboto", sans-serif;

    font-size: 30px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        color .25s ease,
        transform .25s ease;

}


.global-modal-close:hover {

    color: #ff0000;

    transform: rotate(90deg);

}


/* ==========================================================
   CABECERA
========================================================== */

.modal-header {

    display: flex;

    flex-direction: column;

    width: 100%;

}


/* ==========================================================
   ETIQUETA
========================================================== */

.modal-tag {

    display: inline-block;

    margin-bottom: 16px;

    font-family: "Roboto", sans-serif;

    font-size: 12px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 5px;

    text-transform: uppercase;

    color: #ff0000;

}


/* ==========================================================
   TÍTULO
========================================================== */

.modal-title {

    margin: 0 0 10px;

    font-family: "Playfair Display", serif;

    font-size: 52px;

    font-weight: 400;

    line-height: 1.05;

    letter-spacing: -1px;

    color: #111111;

}


/* ==========================================================
   SUBTÍTULO
========================================================== */

.modal-subtitle {

    max-width: 760px;

    margin: 0;

    font-family: "Roboto", sans-serif;

    font-size: 18px;

    line-height: 1.8;

    color: #667085;

}


/* ==========================================================
   IMAGEN
========================================================== */

.modal-image {

    width: 100%;

    min-height: 280px;

    margin: 32px 0;

    box-sizing: border-box;

    background-position: center;

    background-size: cover;

    background-repeat: no-repeat;

}


/* ==========================================================
   DESCRIPCIÓN
========================================================== */

.modal-description {

    margin: 0 0 28px;

    font-family: "Roboto", sans-serif;

    font-size: 17px;

    line-height: 1.9;

    color: #555555;

}


/* ==========================================================
   META
========================================================== */

.modal-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 24px;

    width: 100%;

    margin-bottom: 28px;

}


/* ==========================================================
   ELEMENTO META
========================================================== */

.modal-meta-item {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


/* ==========================================================
   ETIQUETA META
========================================================== */

.modal-meta-label {

    font-size: 11px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: .5px;

    text-transform: uppercase;

    color: #667085;

}


/* ==========================================================
   VALOR META
========================================================== */

.modal-meta-value {

    font-size: 15px;

    font-weight: 500;

    line-height: 1.4;

    color: #111111;

}


/* ==========================================================
   SECCIONES
========================================================== */

.modal-section {

    width: 100%;

    margin-top: 30px;

}


/* ==========================================================
   TÍTULO DE SECCIÓN
========================================================== */

.modal-section-title {

    position: relative;

    margin: 0 0 14px;

    padding-left: 24px;

    font-family: "Playfair Display", serif;

    font-size: 24px;

    font-weight: 400;

    line-height: 1.2;

    color: #111111;

}


/* ==========================================================
   MARCADOR ROJO
========================================================== */

.modal-section-title::before {

    content: "";

    position: absolute;

    left: 0;

    top: 50%;

    width: 14px;

    height: 2px;

    background: #ff0000;

    transform: translateY(-50%);

}


/* ==========================================================
   TEXTO DE SECCIÓN
========================================================== */

.modal-section-text {

    margin: 0;

    font-family: "Roboto", sans-serif;

    font-size: 15px;

    line-height: 1.8;

    color: #555555;

}


/* ==========================================================
   LISTA
========================================================== */

.modal-section-list {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin: 0;

    padding-left: 20px;

}


/* ==========================================================
   ELEMENTO DE LISTA
========================================================== */

.modal-section-list li {

    font-family: "Roboto", sans-serif;

    font-size: 15px;

    line-height: 1.7;

    color: #555555;

}


/* ==========================================================
   SCROLL
========================================================== */

.global-modal-body {

    scrollbar-width: thin;

    scrollbar-color:
        #ff0000
        transparent;

}


.global-modal-body::-webkit-scrollbar {

    width: 6px;

}


.global-modal-body::-webkit-scrollbar-track {

    background: transparent;

}


.global-modal-body::-webkit-scrollbar-thumb {

    background: #ff0000;

    border-radius: 0;

}


.global-modal-body::-webkit-scrollbar-thumb:hover {

    background: #d80000;

}


/* ==========================================================
   MODAL ABIERTO — BLOQUEAR SCROLL DE PÁGINA
========================================================== */

body.modal-open {

    overflow: hidden;

}
