/* -----------------------------------
   BLOQUE AÑADIDO AL INICIO
----------------------------------- */
.icon-box-body a {
    text-decoration: none;
    color: #fff;
}

.icon-box {
    height: 125px;
}

.tab-wrapper {
    background: #0080d2;
}

body {
    font: normal 15px/1.5em Comfortaa;
    color: #565656;
}

.sf-menu > li > a {
    font: normal 17px/1.5em Oswald;
    color: #ffffff;
}

h1 {
    font: normal 37px/1.1em Changa One;
    color: #0080d2;
}

h2 {
    font: normal 29px/1.1em Changa One;
    color: #fdcf00;
}

h3 {
    font: bold 18px/1.1em Oswald;
    color: #000000;
}

h4 {
    font: bold 17px/1.1em Oswald;
    color: #0080d2;
}

h5 {
    font: normal 15px/1.1em Arial, Helvetica, sans-serif;
    color: #6d6d6d;
}

h6 {
    font: bold 12px/1.1em Oswald;
    color: #0080d2;
}

.page-title h1 {
    font: bold 32px/1.1em Oswald;
    color: #0080d2;
}

#contenido > ul li:before {
    content: '\f303';
    font-family: 'Font Awesome 5 Free';
    float: left;
    margin-left: -1.5em;
    color: #7fdbfd;
}

.destacado {
    padding: 30px;
    background-color: #f0f0f0;
    border: 2px solid #333;
}

.enlace_amarillo {
    text-decoration: none;
    color: #fdcf00;
    cursor: pointer;
}

/* -----------------------------------
   TIPOGRAFÍA Y TEXTOS (del bloque anterior unificado)
----------------------------------- */
p {
    color: #111111;
    font-family: 'Comfortaa';
}

h1 {
    /* prevalece el último valor del usuario: color #0080d2, font normal */
    text-shadow: #fff 1px 1px 4px;
}

h2 {
    /* prevalece bloque adicional: color #fdcf00 */
    margin-bottom: 25px;
}

.nav-main {
    background: #ebebe3 !important;
}

.flexnav > li > a {
    font-family: 'Comfortaa';
    color: #000;
    text-shadow: none;
}

.flexnav > li.active > a {
    background: #5d707e !important;
}

#contenido {
    min-height: 300px !important;
}

#pie7ymedia {
    text-align: right;
    font-size: 10px;
}

/* -----------------------------------
   TABLA DE COMPARACIÓN
----------------------------------- */
.comparison-table {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-retributive {
    background-color: #5d6d7e;
    color: white;
    font-size: 1.2em;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.header-restorative {
    background-color: #3498db;
    color: white;
    font-size: 1.2em;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.content-cell {
    padding: 12px 15px;
    border: 1px solid #ddd;
    line-height: 1.4;
    vertical-align: top;
}

.comparison-table tbody tr:nth-child(odd) .cell-retributive {
    background-color: #f4f4f4;
}

.comparison-table tbody tr:nth-child(odd) .cell-restorative {
    background-color: #eaf8ff;
}

.comparison-table tbody tr:nth-child(even) .cell-retributive {
    background-color: #eaeaea;
}

.comparison-table tbody tr:nth-child(even) .cell-restorative {
    background-color: #d8f0ff;
}

.comparison-table tbody tr:first-child .cell-retributive {
    background-color: #f4f4f4;
}

.comparison-table tbody tr:first-child .cell-restorative {
    background-color: #eaf8ff;
}

/* -----------------------------------
   CONTENEDORES
----------------------------------- */
.container_elige_perfil,
.container_datospersonales {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* -----------------------------------
   CAMPOS Y FORMULARIOS
----------------------------------- */
.campo,
.desplegable {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Comfortaa';
    margin-bottom: 3px;
}

.campo {
    font-size: 1.8rem;
}

.desplegable {
    font-size: 1.5rem;
}

.etiqueta {
    text-align: right;
    font-weight: bold;
    padding-top: 8px;
    padding-right: 10px;
}

/* -----------------------------------
   BOTONES Y ROLES
----------------------------------- */
.role-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.role-btn {
    padding: 12px 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: bold;
}

.role-btn.active {
    border-color: #007bff;
    background-color: #e6f2ff;
    color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

.role-btn:hover:not(.active) {
    background-color: #f0f0f0;
}

#accederBtn {
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#accederBtn:enabled {
    background-color: #28a745;
    color: white;
}

#accederBtn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Botones personalizados */
.en_bot {
    text-align: center;
    font-weight: bold;
    padding: 8px 10px;
    background-color: #fff;
    color: #000;
    border-radius: 4px;
    margin: 4px;
    border: 2px solid #079e37;
    cursor: pointer;
}

.en_bot_seleccionado {
    background-color: #079e37;
    color: white;
}

/* -----------------------------------
   CAJAS Y OPCIONES
----------------------------------- */
.caja_frecuencia {
    min-height: 90px;
}

.caja_porcentaje {
    min-height: 60px;
}

.checkbox-label,
.opcion-radio {
    cursor: pointer;
}

label.checkbox-label:has(input:checked),
label.opcion-radio:has(input:checked) {
    font-weight: bold;
}

.caja_abierta {
    border: 2px solid #079e37;
    border-radius: 4px;
}

/* CHECKBOX */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    width: 30px;
    height: 30px;
    border: 2px solid #079e37;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.2s ease;
    position: relative;
    margin: 0 5px 0 0 !important;
    cursor: pointer;
}

.custom-checkbox:checked {
    background-color: #079e37;
    border-color: #079e37;
}

.custom-checkbox:checked::after {
    content: "✔";
    color: white;
    font-size: 18px;
    position: absolute;
    top: 0px;
    left: 5px;
}

/* RADIO */
.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    width: 28px;
    height: 28px;
    border: 2px solid #079e37;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.2s ease;
    position: relative;
    margin: 0 5px 0 0 !important;
}

.custom-radio:checked {
    background-color: #079e37;
    border-color: #079e37;
}

.custom-radio:checked::after {
    content: "";
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* -----------------------------------
   MEDIA QUERIES
----------------------------------- */
@media screen and (max-width:800px) {
    .nav-main {
        position: absolute;
        top: 130px;
    }

    #diana_fondo {
        background-image: none;
    }

    .en_bot {
        font-size: 1.3rem;
        padding: 0.5rem;
    }

    #pie7ymedia {
        margin-top: 1rem;
        text-align: center;
    }
}

@media screen and (min-width:800px) {
    .tagline {
        margin-left: 150px !important;
    }

    #diana_fondo {
        background-image: url('/imagenes/diana_der.png');
        background-position: right top;
        background-repeat: no-repeat;
    }
}
