/* ============================= */
/* 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;
}

/* ============================= */
/* CONTENEDOR PRINCIPAL */
/* ============================= */

#periodosMenuContainer {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin: 30px auto;
    max-width: 1100px;
}

/* ============================= */
/* PERIODOS */
/* ============================= */

#periodosContainer {
    display: flex;
    flex-direction: column;
}

.periodEntry {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e3e8ee;
}

.periodEntry label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: #5d6d7e;
}

.periodEntry input {
    border: 1px solid #d5dce3;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    background-color: #fdfefe;
    transition: all 0.2s ease-in-out;
    min-width: 160px;
}

.periodEntry input:focus {
    outline: none;
    border-color: #7b9acc;
    box-shadow: 0 0 0 3px rgba(123, 154, 204, 0.15);
}

/* ============================= */
/* MENU BOTONES */
/* ============================= */

#menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 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);
}

.removePeriodBtn {
    background-color: #d96c6c;
}

.removePeriodBtn:hover {
    background-color: #b75454;
}

/* ============================= */
/* TOTAL APORTES */
/* ============================= */

#totalPeriodo {
    margin-top: 30px;
    text-align: center;
}

#totalPeriodo hr {
    border: none;
    height: 1px;
    background: #d6dde5;
    margin: 20px 0;
}

#totalAniosAportes {
    border: 1px solid #d5dce3;
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: bold;
    background-color: #ffffff;
}



/* ============================= */
/* MIS AJUSTES*/
/* ============================= */

#tituloPrincipal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}


/* ============================= */
/* ARTICULOS */
/* ============================= */


#articulo {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px; /* evita que el scroll tape texto */

}

/* ============================= */
/* CONTENEDOR DEL ARTICULO */
/* ============================= */

#contenedorDeArticulo {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

#articulo {
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    max-height: 75vh;
    overflow-y: auto;
}

/* ============================= */
/* ARTICLE BASE */
/* ============================= */

#articulo article {
    font-size: 16px;
    line-height: 1.7;
    color: #2f3a4a;

    /* 🔥 clave: evita herencia de text-center */
    text-align: left;
}

/* ============================= */
/* TITULOS */
/* ============================= */

#articulo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2d3d;
    margin-bottom: 20px;
}

#articulo h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #34495e;
    margin: 30px 0 15px;

    border-left: 4px solid #009ee3;
    padding-left: 10px;
}

#articulo h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #566573;
    margin: 20px 0 10px;
}

/* ============================= */
/* TEXTO */
/* ============================= */

#articulo p {
    margin-bottom: 15px;
    text-align: justify; /* 🔥 mejora lectura */
}

/* ============================= */
/* LISTAS (ARREGLADAS) */
/* ============================= */

#articulo ul {
    list-style-position: outside;
    padding-left: 25px;
    margin: 0 0 20px 10px;
}

#articulo li {
    margin-bottom: 10px;
    padding-left: 5px;
}

/* bullets más prolijos */
#articulo li::marker {
    color: #009ee3;
    font-weight: bold;
}

/* ============================= */
/* DESTACADOS */
/* ============================= */

#articulo .destacado {
    background-color: #f0f7ff;
    border-left: 5px solid #009ee3;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* ============================= */
/* HR */
/* ============================= */

#articulo hr {
    border: none;
    height: 1px;
    background: #dfe6ee;
    margin: 30px 0;
}

/* ============================= */
/* SCROLL */
/* ============================= */

#articulo::-webkit-scrollbar {
    width: 8px;
}

#articulo::-webkit-scrollbar-thumb {
    background: #c5d3e0;
    border-radius: 10px;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {
    #articulo {
        padding: 20px;
        max-height: none;
    }

    #articulo h1 {
        font-size: 1.5rem;
    }

    #articulo h2 {
        font-size: 1.2rem;
    }
}

/* ============================= */
/* CORRECCIONES DE LECTURA */
/* ============================= */

/* 🔥 evitar que herede el centrado */
#articulo article {
    text-align: left;
}

/* mejorar párrafos */
#articulo p {
    text-align: justify;
}

/* ============================= */
/* LISTAS BIEN PRO */
/* ============================= */

#articulo ul {
    list-style-position: outside; /* puntos afuera correctamente */
    padding-left: 25px;           /* sangría prolija */
    margin-left: 10px;
}

#articulo li {
    margin-bottom: 10px;
    padding-left: 5px;            /* separa texto del punto */
}

/* opcional: bullets más lindos */
#articulo ul li::marker {
    color: #009ee3;
    font-weight: bold;
}

/* ============================= */
/* TITULOS NO CENTRADOS */
/* ============================= */

#articulo h1,
#articulo h2,
#articulo h3 {
    text-align: left;
}

/* ============================= */
/* FIN ARTICULOS */
/* ============================= */

/*------------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----------*/

#img_portada {
   width: 20%;
    height: auto;
   
    
}