/* ============================= */
/* RESET GENERAL */
/* ============================= */

body {
    background-color: #f4f6f8;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #2f3a4a;
    margin: 0;
    padding: 0;
}

.text-center {
    padding: 40px 20px;
}

/* ============================= */
/* TITULOS */
/* ============================= */

h1.display-4 {
    font-weight: 600;
    font-size: 3rem;
    color: #2e4057;
    margin-bottom: 10px;
}

h2 {
    font-weight: 300;
    font-size: 1.2rem;
    color: #5d6d7e;
    margin-bottom: 40px;
}



/* ============================= */
/* LAYOUT CON FRANJAS */
/* ============================= */

#contenedor {
    display: flex;
    align-items: flex-start;
}

#publicidad_lateral_1,
#publicidad_lateral_2 {
    
    min-height: 200vh;
    background-color: #e9eef4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    width: 225px;
    flex: 0 0 225px;
}
/* Columna central */
#contenedor > .text-center {
    flex: 1;
    padding: 40px 20px;
}

/* ============================= */
/* BOTONES */
/* ============================= */

button {
    background-color: #7b9acc;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

button:hover {
    background-color: #5d7fa6;
    transform: translateY(-1px);
}
/*------------donacion----------*/
#cartelDonacion {
    position: fixed;
    top: 215px;
    right: 2.5px; /* 👉 ahora bien a la derecha */

    width: 220px;
    padding: 16px;

    background-color: #ffffff;
    color: #333;

    border-radius: 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

    z-index: 9999;
}

/* texto */
#textoDonacion {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}


/* botón azul estilo MercadoPago */


#btnDonar {
    width: 100%;
    padding: 10px;
    

    border: none;
    border-radius: 10px;

    background-color: #009ee3;
    color: white;

    font-weight: bold;
    cursor: pointer;

    transition: all 0.2s ease;
    margin-bottom: 10px;
}

#btnDonar:hover {
    background-color: #007bb5;
    transform: scale(1.05);
}

#btnDonar:active {
    transform: scale(0.97);

}

#btnDonar,
#btnDonar:hover,
#btnDonar:focus,
#btnDonar:active {
    text-decoration: none;
}


/*------------ fin donacion----------*/


/* ============================= */
/* FIN LAYOUT CON FRANJASEspecifico pagina============================ */

#txtComentario{
    width: 80%;
}

#nuevo-comentario-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* =========================
   LISTA GENERAL
========================= */
.lista-comentarios{
    width:100%;
    margin-top:30px;
}

.lista-comentarios h3{
    font-size:28px;
    font-weight:700;
    color:#1f2937;
    margin-bottom:22px;
}


/* =========================
   BLOQUE COMENTARIO
========================= */
.comentario-item{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:18px;
    margin-bottom:18px;
    box-shadow:0 4px 14px rgba(0,0,0,.05);
    transition:.20s ease;
}

.comentario-item:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(0,0,0,.08);
}


/* =========================
   NOMBRE
========================= */
.comentario-top{
    margin-bottom:14px;
}

.comentario-nombre{
    display:inline-block;
    min-width:150px;
    max-width:260px;
    background:#eef2ff;
    color:#1e3a8a;
    font-size:15px;
    font-weight:700;
    padding:8px 14px;
    border-radius:12px;
    text-align:left;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}


/* =========================
   TEXTO COMENTARIO
========================= */
.comentario-cuerpo{
    background:#f9fafb;
    border:1px solid #ececec;
    border-radius:14px;
    padding:16px;
    min-height:70px;
    text-align:left;
    color:#374151;
    line-height:1.6;
    font-size:15px;
    word-break:break-word;
    margin-bottom:14px;
}


/* =========================
   BOTONES
========================= */
.comentario-footer{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:14px;
}

.btn-comentario,
.btn-enviar-respuesta{
    border:none;
    border-radius:999px;
    padding:10px 18px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:.20s ease;
}

.btn-comentario{
    background:#e0ecff;
    color:#1d4ed8;
}

.btn-comentario:hover{
    background:#cfe0ff;
    transform:scale(1.04);
}

.btn-enviar-respuesta{
    background:#2563eb;
    color:#fff;
}

.btn-enviar-respuesta:hover{
    background:#1d4ed8;
    transform:scale(1.03);
}


/* =========================
   CAJA RESPUESTA
========================= */
.respuesta-box{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:14px;
    margin-bottom:14px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.txt-nombre-respuesta,
.txt-respuesta{
    width:100%;
    border:1px solid #d1d5db;
    border-radius:12px;
    padding:12px;
    font-size:14px;
    outline:none;
    transition:.18s ease;
    resize:vertical;
}

.txt-nombre-respuesta:focus,
.txt-respuesta:focus{
    border-color:#60a5fa;
    box-shadow:0 0 0 3px rgba(96,165,250,.15);
}

.txt-nombre-respuesta{
    max-width:260px;
}

.txt-respuesta{
    min-height:90px;
}


/* =========================
   RESPUESTAS MOSTRADAS
========================= */
.comentario-respuestas{
    margin-top:10px;
    padding-top:12px;
    border-top:1px solid #ececec;
}

.btn-pagina:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


/* respuestas anidadas */
.comentario-respuestas {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.respuesta-item {
    width: 85%;
    background: #f7f9fc;
    border: 1px solid #dfe7f3;
    border-radius: 12px;
    padding: 14px;
    box-sizing: border-box;
}

.respuesta-header {
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 8px;
}

.respuesta-body {
    color: #333;
    line-height: 1.4;
}

/*---- ajustes de interfaz----*/

.comentario-id{
    display: none;
}

.respuesta-box{
    display: none;
}

.comentario-respuestas{
    display: none;
}