/* =========================================
   CAMPAÑA 3 DE DICIEMBRE
   LO QUE NADIE VE
========================================= */

#disc-popup,
#disc-popup * {
    box-sizing: border-box;
}

#disc-popup [hidden],
#disc-popup[hidden] {
    display: none !important;
}

body.disc-bloqueado {
    overflow: hidden !important;
}

/* FONDO OSCURO GENERAL */

.disc-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.80);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* CONTENEDOR GENERAL */

.disc-panel {
    position: relative;
    width: 95%;
    max-width: 1600px;
    max-height: 94vh;
    margin: auto;
    overflow-y: auto;
    background: #f2ebdd;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.35);
    animation: discEntrada 0.4s ease both;
}

@keyframes discEntrada {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   PANTALLA 1: PRESENTACIÓN
========================================= */

#disc-presentacion {
    text-align: center;
}

.disc-imagen-presentacion {
    display: block;
    width: 100%;
    max-height: calc(94vh - 100px);
    object-fit: contain;
    margin: 0 auto;
}

.disc-acciones {
    padding: 20px;
    text-align: center;
}

/* BOTONES */

.disc-boton {
    display: inline-block;
    background: #ffffff;
    color: #006c89;
    border: 0;
    padding: 15px 40px;
    font-size: 19px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
}

.disc-boton:hover {
    background: #64bfdc;
    color: #ffffff;
    transform: translateY(-2px);
}

/* BOTÓN CERRAR */

.disc-cerrar {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #222222;
    font-family: Arial, sans-serif;
    font-size: 32px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.25s ease;
}

.disc-cerrar:hover {
    background: #64bfdc;
    color: #ffffff;
    transform: rotate(90deg);
}

/* =========================================
   PANTALLA 2: MURAL DE TESTIMONIOS
========================================= */

#disc-testimonios {
    background: #253953;
    padding: 55px 25px 20px;
    text-align: center;
}

#disc-mural {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    margin: 0 auto 20px;
}

/* ESTILO GENERAL DE LOS RECORTES */

.disc-recorte {
    position: absolute;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: rotate(var(--giro, 0deg));
    transition: transform 0.35s ease,
                filter 0.35s ease;
    filter: drop-shadow(2px 4px 5px rgba(0, 0, 0, 0.15));
    z-index: 1;
}

.disc-recorte img {
    display: block;
    width: 100%;
    height: auto;
}

/* MOVIMIENTO AL PASAR EL RATÓN */

.disc-recorte:hover,
.disc-recorte:focus-visible {
    transform: translateY(-8px) rotate(0deg) scale(1.08);
    filter: drop-shadow(5px 12px 15px rgba(0, 0, 0, 0.45));
    z-index: 90;
}

/* =========================================
   COMPOSICIÓN COLLAGE - 12 TESTIMONIOS
========================================= */

.disc-recorte-1 {
    top: 2%;
    left: 0%;
    width: 35%;
    --giro: -4deg;
    z-index: 2;
}

.disc-recorte-2 {
    top: 24%;
    left: 29%;
    width: 35%;
    --giro: -8deg;
    z-index: 4;
}

.disc-recorte-3 {
    top: 28%;
    left: 64%;
    width: 36%;
    --giro: 3deg;
    z-index: 3;
}

.disc-recorte-4 {
    top: 81%;
    left: 2%;
    width: 34%;
    --giro: -3deg;
    z-index: 5;
}

.disc-recorte-5 {
    top: 62%;
    left: 59%;
    width: 37%;
    --giro: -7deg;
    z-index: 5;
}

.disc-recorte-6 {
    top: 4%;
    left: 69%;
    width: 31%;
    --giro: 5deg;
    z-index: 3;
}

.disc-recorte-7 {
    top: 53%;
    left: 0%;
    width: 35%;
    --giro: 4deg;
    z-index: 3;
}

.disc-recorte-8 {
    top: 85%;
    left: 37%;
    width: 29%;
    --giro: -5deg;
    z-index: 6;
}

.disc-recorte-9 {
    top: 79%;
    left: 70%;
    width: 29%;
    --giro: 3deg;
    z-index: 4;
}

.disc-recorte-10 {
    top: 29%;
    left: 0%;
    width: 36%;
    --giro: 3deg;
    z-index: 2;
}

.disc-recorte-11 {
    top: 0%;
    left: 33%;
    width: 38%;
    --giro: 2deg;
    z-index: 3;
}

.disc-recorte-12 {
    top: 58%;
    left: 30%;
    width: 32%;
    --giro: -4deg;
    z-index: 6;
}

/* =========================================
   PANTALLA 3: TESTIMONIO AMPLIADO
========================================= */

.disc-ampliacion {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow-y: auto;
}

.disc-ampliacion-contenido {
    position: relative;
    width: 85%;
    max-width: 1200px;
    margin: auto;
    padding: 55px 0 15px;
    animation: discEntrada 0.35s ease both;
}

#disc-imagen-ampliada {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    margin: 0 auto;
}

.disc-ampliacion .disc-cerrar {
    top: 0;
    right: 0;
}

/* ACCESIBILIDAD */

#disc-popup button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* =========================================
   TABLETS Y MÓVILES
========================================= */

@media (max-width: 900px) {

    .disc-overlay {
        padding: 15px;
    }

    .disc-panel {
        width: 100%;
    }

    #disc-mural {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        gap: 15px;
        aspect-ratio: auto;
    }

    .disc-recorte {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
    }

    .disc-ampliacion-contenido {
        width: 100%;
    }

}

@media (max-width: 560px) {

    .disc-overlay {
        padding: 10px;
    }

    #disc-testimonios {
        padding: 65px 15px 20px;
    }

    #disc-mural {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .disc-recorte {
        transform: rotate(0deg);
    }

    .disc-boton {
        font-size: 16px;
        padding: 12px 25px;
    }

    .disc-ampliacion {
        padding: 15px;
    }

    .disc-cerrar {
        width: 36px;
        height: 36px;
        font-size: 28px;
        line-height: 34px;
    }

}

/* RESPETAR PREFERENCIAS DE MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {

    #disc-popup,
    #disc-popup * {
        animation: none !important;
        transition: none !important;
    }

    .disc-recorte:hover,
    .disc-recorte:focus-visible,
    .disc-boton:hover,
    .disc-cerrar:hover {
        transform: none;
    }

}

@media (min-width: 901px) {

    #disc-testimonios {
        width: 98%;
        max-width: min(1800px, calc((94vh - 150px) * 2));
        padding: 45px 20px 20px;
    }

}

#disc-volver {
    position: relative;
    z-index: 60;
}

#disc-cerrar-testimonios {
    z-index: 200;
}

@media (max-width: 900px) {

    #disc-mural .disc-recorte {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        z-index: 1;
    }

    #disc-mural .disc-recorte:hover,
    #disc-mural .disc-recorte:focus-visible {
        z-index: 90;
    }

}

/* =========================================
   PORTADA CAMPAÑA DISCAPACIDAD
========================================= */

#disc-presentacion {
    background: #efe9dc;
    width: 95%;
    max-width: 1500px;
    max-height: 94vh;
    padding: 0;
    overflow-y: auto;
    box-sizing: border-box;
}

.disc-portada {
    display: grid;
    grid-template-columns: 35% 65%;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    min-height: 600px;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}


/* COLUMNA IZQUIERDA */

.disc-portada-izquierda {
    background-image: url('../img/discapacidad/portada-columna.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    padding: 45px 45px 40px;
    box-sizing: border-box;
}

.disc-portada-titulo {
    display: block;
    width: 100%;
    max-width: 290px;
    height: auto;
    margin: 0 auto 30px;
}


/* AUTORES */

.disc-portada-autores {
    width: 100%;
    text-align: center;
}

.disc-portada-autores ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.disc-portada-autores li {
   font-family: 'Fira Sans Extra Condensed', sans-serif;
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    color: #171310;
    padding: 0;
    margin: 0;
}


/* LÍNEAS DECORATIVAS */

.disc-linea {
    width: 55%;
    height: 5px;
    background: #fff;
    border-radius: 40% 15% 50% 20%;
    transform: rotate(-1deg);
    margin: 0 auto;
}


/* COLUMNA DERECHA */

.disc-portada-derecha {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    padding: 45px 65px 40px 45px;
    box-sizing: border-box;
    color: #171310;
}

.disc-portada-derecha p {
  font-family: 'Fira Sans Extra Condensed', sans-serif;
  font-size: 22px;
  line-height: 26px;
  font-weight: 400;
  color: #171310;
  margin: 0 0 24px;
  text-align: justify;
}


/* PREGUNTA DESTACADA */

.disc-portada-pregunta {
   font-family: 'Fira Sans Extra Condensed', sans-serif;
    font-size: clamp(28px, 2.8vw, 50px);
    line-height: 1.15;
    font-weight: 800;
    text-transform: none;
    color: #c58270;
    margin: 15px 0 30px;
    text-align: justify;
}


/* BOTÓN VER TESTIMONIOS */

.disc-portada #disc-ver-testimonios {
    display: inline-block;
    background: #c58270;
    color: #ffffff;
    border: 0;
    padding: 16px 35px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    margin: 0;
    transition: background .25s, transform .25s;
    font-family: 'Fira Sans Extra Condensed', sans-serif;
}

.disc-portada #disc-ver-testimonios:hover {
    background: #a96858;
    transform: translateY(-3px);
}

.disc-portada #disc-ver-testimonios:focus-visible {
    outline: 3px solid #253953;
    outline-offset: 4px;
}


/* RESPONSIVE TABLET */

@media (max-width: 1100px) {

    .disc-portada {
        grid-template-columns: 36% 64%;
        min-height: auto;
    }

    .disc-portada-izquierda {
        padding: 35px 30px;
    }

    .disc-portada-derecha {
        padding: 40px 35px;
    }

    .disc-portada-derecha p {
        margin-bottom: 18px;
    }

}


/* RESPONSIVE MÓVIL */

@media (max-width: 700px) {

    #disc-presentacion {
        width: 94%;
        max-height: 94vh;
    }

    .disc-portada {
        grid-template-columns: 1fr;
    }

    .disc-portada-izquierda {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding: 30px 45px;
    }

    .disc-portada-titulo {
        max-width: 200px;
        margin-bottom: 25px;
    }

    .disc-portada-autores li {
        font-size: 16px;
    }

    .disc-portada-derecha {
        padding: 30px 25px;
    }

    .disc-portada-derecha p {
        font-size: 17px;
        line-height: 1.5;
    }

    .disc-portada-pregunta {
        font-size: 30px;
    }

    .disc-portada #disc-ver-testimonios {
        width: 100%;
        text-align: center;
    }

}






