body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    overflow-y: auto;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
    margin-bottom: 20px;
    margin-top: 20px;
}

img {
    display: block;
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 300px;
    height: auto;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

h4 {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.question {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.question label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    text-align: left;
    color: #333;
}

.question .button-group {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.button-group button {
    background-color: #f8f9fa;
    border: 1px solid #007bff;
    border-radius: 5px;
    color: #007bff;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    font-size: 16px;
    margin: 5px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.button-group button:hover {
    background-color: #e9ecef;
    border-color: #0056b3;
    color: #0056b3;
}

.button-group .selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: block;
    font-size: 18px;
    text-align: center;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.result.low-probability {
    background-color: #B1FFA0;
    color: #2E7D32;
}

.result.intermediate-probability {
    background-color: #fff3cd;
    color: #856404;
}

.result.high-probability {
    background-color: #FF9393;
    color: #C62828;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    padding: 10px 15px;
    background-color: #0087FF;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    width: auto;
    max-width: 250px;
    font-size: 16px;
    box-sizing: border-box;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #0063B0;
}

.back-btn ion-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

#diagnosticos-diferenciales {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

#diagnosticos-diferenciales:hover {
    color: #0056b3;
}

/* --- ESTILOS PARA EL MODAL --- */
#modaldif {
    display: none; /* Oculto por defecto, JavaScript lo mostrará con 'flex' */
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

#modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 80%;
    text-align: left;
}

#modal-content h2 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

#modal-content .h4-modal {
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
}

#modal-content ul {
    list-style-type: disc;
    padding-left: 25px;
    color: #333;
    margin-bottom: 15px;
}

#modal-content li {
    margin-bottom: 8px;
}

#modal-content .h5-modal {
    color: #777;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 15px;
}

#close-btn-dif {
    background-color: #dc3545;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: block;
    margin: 15px auto 0 auto;
    width: auto;
}

#close-btn-dif:hover {
    background-color: #c82333;
}

/* --- NUEVOS ESTILOS PARA PERC Y DÍMERO D --- */

#perc-criteria-container {
    margin-top: 30px;
    border-top: 2px solid #ccc;
    padding-top: 20px;
    text-align: left;
}

#perc-criteria-container h3 {
    text-align: center;
    color: #28a745;
    margin-bottom: 15px;
}

#perc-criteria-container p {
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
    color: #666;
}

#perc-result {
    margin-top: 20px;
    margin-bottom: 20px;
}

#dimero-d-option {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0ad4e;
    color: white;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

/* Reglas para ocultar elementos de dengue (si aún los tienes) */
#tratamiento-dssa,
#tratamiento-dssa1,
#tratamiento-dcsa,
#tratamiento-denguegrave {
    display: none;
}