/* 
  Author: Juan Castro
  Copyright © 2025 Juan Castro. All rights reserved.
  Description: Estilos para la página de Preguntas Frecuentes de SUNEDU
*/

@font-face {
    font-family: "Poppins-Bold";
    src:
        url("../fonts/Poppins-Bold.otf") format("opentype"),
        url("../fonts/Poppins-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins-Medium";
    src:
        url("../fonts/Poppins-Medium.otf") format("opentype"),
        url("../fonts/Poppins-Medium.ttf") format("truetype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins-Medium", sans-serif;
    background-color: #b8b8b8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

h1,
h2,
h3 {
    font-family: "Poppins-Bold", sans-serif;
}

.container {
    background-color: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btnCloseModal {
    width: 40px;
    height: 40px;
    background-color: #044bb1;
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btnCloseModal:before,
.btnCloseModal:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

.btnCloseModal:hover {
    transform: rotate(180deg);
}

.btnCloseModal:before {
    transform: rotate(45deg);
    background-color: #2fc7f0;
}

.btnCloseModal:after {
    transform: rotate(-45deg);
    background-color: #FFF;
}

.title {
    text-align: center;
    font-size: clamp(18px, 4vw, 22px);
    color: #6b7280;
    margin-bottom: 30px;
    font-family: 'Poppins-Medium';
    margin-top: 20px;
}

.title .highlight {
    color: #1e40af;
    font-weight: 700;
}

.divider {
    height: 1px;
    background-color: rgb(100 128 217 / 75%);
    margin-bottom: 40px;
}

.divider-sin-linea {
    height: 1px;
    margin-bottom: 40px;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.centered-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.button-inicio {
    width: 100%;
    max-width: 280px;
    height: 80px;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: clamp(14px, 2.5vw, 15px);
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    font-family: sans-serif;
    text-decoration: none;
}

.button-inicio:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.button-inicio.cyan {
    background-color: #00c8ff;
}

.button-inicio.blue {
    background-color: rgb(1 43 178);
}

.cuadro-container {
    background-color: white;
    border: 1px solid rgb(84 218 246);
    border-radius: 35px;
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0px;
}

.devolucion-dinero-container{
    padding-bottom: 0px;
    position: relative;
}

.cuadro-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.cuadro-body-with-button-medium{
    margin-bottom: -10px;
}

.left-part {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.recuadro-left {
    background-color: rgb(233 250 253);
    border-radius: 44px;
    padding: 20px;
    text-align: center;
    min-width: 280px;
}

.recuadro-titulo {
    text-align: center;
    margin-bottom: 16px;
    font-size: clamp(15px, 2.5vw, 17px);
    line-height: 1.2;
}

.img-link {
    border: 1px solid rgba(0, 0, 0, .0001);
    width: 100%;
    max-width: 271px;
    min-height: 197px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 52% !important;
}

.img-link:hover {
    transform: rotate(-10deg);
}

.img-left-part-ci {
    background: url("../icons/constancia-inscripcion.png");
}

.img-left-part-cv {
    background: url("../icons/constancia-verificacion.png");
}

.img-left-part-rg {
    background: url("../icons/reconocimiento-grados.png");
}

.img-left-part-dd {
    background: url("../icons/devolucion-dinero.png");
}

.img-left-part-rng {
    background: url("../icons/registro-nacional-grados.png");
}

.img-left-part-aa {
    background: url("../icons/acervo-academico.png");
}

.img-left-part-de {
    background: url("../icons/denuncias.png");
}

.img-left-part-dc {
    background: url("../icons/direccion-contacto.png");
}

.txtUpOps {
    color: #606060;
    font-weight: bold;
}

.txtDownOps {
    color: #044bb1;
    font-weight: bold;
}

.right-part {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cuadro-botones {
    display: flex;
    gap: 24px;
}

.subcontainer {
    padding-left: 35px;
    padding-top: 33px;
    padding-right: 14px;
    padding-bottom: 14px;
}

.subcontainer-sin-padding-bottom {
    padding-bottom: 0px;
}

.subcontainer-2{
    padding-left: 35px;
    padding-right: 14px;
}

.subcontainer-3 {
    margin-top: 17px;
}

.pregunta-container {
    margin-bottom: 17px;
}

.pregunta {
    color: rgb(16 200 239);
    font-size: clamp(15px, 2.5vw, 17px);
    font-weight: bold;
    font-family: sans-serif;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pregunta-denuncia {
    font-size: clamp(14px, 2vw, 16px);
}

.pregunta-container .respuesta {
    color: #636467;
    font-size: clamp(12px, 2vw, 13.4px);
    line-height: 1.4;
}

.respuesta ul {
    list-style-type: square;
    padding-left: 17px;
}

.pregunta-container-fut {
    margin-bottom: 8px;
}

.pregunta-container-denuncias {
    font-size: clamp(14px, 2vw, 16px);
}

.pregunta-container-sin-margin-bottom {
    margin-bottom: 0px;
}

.button-fut {
    position: relative;
    z-index: 2;
    display: flex;
}

.button-small {
    background-color: rgb(1 43 178);
    color: white;
    border: none;
    border-radius: 44px;
    padding: 4px 10px;
    font-size: clamp(13px, 2vw, 15px);
    font-weight: bold;
    white-space: nowrap;
}

.button-small-fut{
    padding: 0px 15px;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    gap: 7px;
}

.button-small-fut:hover {
    transform: translateY(-1px);
    background-color: rgb(1, 50, 200);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.texto-informativo-container {
    margin-top: 20px;
}

.texto-informativo-container-rng{
    position: relative;
    z-index: 2;
}

.subcontainer .texto-informativo {
    background-color: rgb(0 200 242);
    color: white;
    font-size: clamp(12px, 2vw, 13.4px);
    border-radius: 15px;
    padding-top: 11px;
    padding-bottom: 11px;
    padding-left: 17px;
    padding-right: 17px;
    width: fit-content;
    line-height: 1.4;
}

.texto-informativo.no-content{
    background-color: transparent;
}

.divider-right {
    height: 1px;
    background-color: rgb(0 200 242);
    margin-top: -44px;
    margin-right: -31px;
}

.divider-right-rng{
    margin-top: -34px;
    position: relative;
    z-index: 1;
}

.divider-right-aa {
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

.button-medium {
    background-color: rgb(1 43 178);
    color: white;
    border: none;
    border-radius: 44px;
    padding-left: 17px;
    padding-right: 17px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: clamp(13px, 2vw, 15px);
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    font-family: sans-serif;
    position: relative;
    bottom: -20px;
}

.button-medium:hover {
    transform: translateY(-1px);
    background-color: rgb(1, 50, 200);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bm-text {
    padding-right: 3px;
}

.arrow-unicode {
    font-size: 22px;
    color: rgb(0 200 242);
}

.long-word {    
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.mac-list {
    padding-left: 0 !important;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem 2rem;
    padding-top: 4px;
}

.mac-list li {
    list-style-type: none;
}

.contacto-icon {
    width: 100%;
    max-width: 20px;
    height: auto;
}

.pregunta-contacto {
    flex-wrap: nowrap;
}

.respuesta-contacto {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.3s ease;
  color: #012bb2;
}

.back-to-top svg {
  width: 100%;
  height: 100%;
}

/* Tablet styles */
@media (max-width: 1024px) {
    .container {
        padding: 30px 25px;
    }

    .buttons-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
    }

    .cuadro-container {
        align-items: center;
    }

    .devolucion-dinero-container{
        padding-bottom: 0px;
        position: relative;
    }

    .cuadro-body {
        flex-direction: column;
    }

    .left-part {
        width: 100%;
        justify-content: center;
    }

    .recuadro-left {
        min-width: auto;
        width: 100%;
        max-width: 320px;
    }

    .right-part {
        width: 100%;
    }

    .cuadro-botones.mas-de-dos-botones {
        flex-direction: column;
        align-items: center;
        padding-right: 0px;
        gap: 5px;
    }

    .subcontainer-3 {
        padding-left: 35px;
        padding-bottom: 0px;
        padding-right: 14px;
    }

    .cuadro-body-sin-margin-bottom {
        margin-bottom: 0px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 25px 20px;
        margin: 10px;
    }

    .btnCloseModal {
        top: 9px;
        right: 9px;
        width: 35px;
        height: 35px;
    }

    .buttons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .button-inicio {
        max-width: none;
        width: 100%;
        height: 70px;
        font-size: 14px;
    }

    .centered-row {
        flex-direction: column;
        align-items: center;
    }

    .cuadro-container {
        padding: 20px;
        align-items: center;
        padding-bottom: 0px;
    }

    .devolucion-dinero-container{
        padding-bottom: 0px;
        position: relative;
    }

    .recuadro-left {
        padding: 15px;
    }

    .img-link {
        min-height: 150px;
        background-size: 46% !important;
    }

    .subcontainer {
        padding-left: 14px;
        padding-bottom: 6px;
    }

    .subcontainer-2 {
        padding-left: 14px;
        padding-top: 10px;
    }

    .subcontainer-3 {
        margin-top: 17px;
        padding-left: 13px;
    }

    .subcontainer-2-texto-centrado {
        text-align: center;
    }

    .cuadro-botones {
        flex-direction: column;
        align-items: center;
        padding-right: 0px;
        gap: 5px;
    }

    .hide-on-small {
        display: none;
    }

    .divider-right {
        display: none;
    }

    .texto-informativo.no-content{
        display: none;
    }

    .mac-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .title {
        margin-bottom: 20px;
    }

    .divider {
        margin-bottom: 30px;
    }

    .button-inicio {
        height: 60px;
        font-size: 13px;
        padding: 12px;
    }

    .cuadro-container {
        border-radius: 25px;
        padding: 15px 0px;
    }

    .cuadro-container-with-button-medium {
        padding: 15px 0px;
    }

    .cuadro-body {
        margin-bottom: 7px;
    }

    .left-part {
        padding: 0px 10px;
    }

    .recuadro-left {
        border-radius: 30px;
        padding: 12px;
    }

    .img-link {
        min-height: 120px;
        font-size: 36px;
        background-size: 34% !important;
    }

    .pregunta-container {
        margin-bottom: 15px;
    }

    .pregunta-container-ultima {
        margin-bottom: 3px;
    }

    .cuadro-botones {
        margin-bottom: 0px;
    }

    .button-medium {
        position: static;
    }

    .button-text-align-center {
        text-align: center;
    }

    .texto-informativo-container.no-content{
        display: none;
    }

    .subcontainer-3 {
        margin-top: 0px;
    }

    .subcontainer-sin-padding-bottom {
        padding-bottom: 0px;
    }

    .mac-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .back-to-top {
        width: 35px;
        height: 35px;
    }
}

/* Large screen adjustments */
@media (min-width: 1200px) {
    .buttons-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
    }
}