/* ============================= */
/* 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;
}

/* Laterales */
#publicidad_lateral_1,
#publicidad_lateral_2 {
    width: 220px;
    min-height: 100vh;
    background-color: #e9eef4;
}

/* Columna central */
#contenedor > div:nth-child(2) {
    flex: 1;
}

/* ============================= */
/* 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;
    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;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1200px) {
    #publicidad_lateral_1,
    #publicidad_lateral_2 {
        display: none;
    }
}

@media (max-width: 768px) {

    .periodEntry {
        flex-direction: column;
        align-items: stretch;
    }

    button {
        width: 100%;
    }
}


/* ============================= */
/* MIS AJUSTES*/
/* ============================= */

#tituloPrincipal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}