/* Estilos globales (no tocados para otras páginas como pregunta.php) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #2A3863;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.diagnostico-container,
.container {
    width: 90%;
    max-width: 400px;
    background-color: #ffffff;
    padding: 20px;
    color: #2A3863;
}

h1, h2, h3, p, a, label, button {
    color: #2A3863;
}

.header img {
    width: 100px;
    margin-bottom: 20px;
}

.header h2 {
    color: #2A3863;
    font-weight: bold;
}

.header .progress-percentage {
    color: #8E94A0;
}

.content img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 20px;
}

.content p {
    color: #8C8A8A;
}

.accordion {
    background-color: #00d1a1;
    color: white;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s;
    border-radius: 5px;
    margin-bottom: 10px;
}

.accordion:hover,
.accordion.active {
    background-color: #00a97f;
}

.panel {
    display: none;
    background-color: #333;
    overflow: hidden;
    padding: 0 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.panel img {
    width: 100%;
    margin-bottom: 10px;
}

button.option {
    display: block;
    width: 100%;
    background-color: #F2F3F4;
    border: none;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: left;
    color: #2A3863;
}

button.option:hover {
    background-color: #e0e0e0;
}

button.option.selected {
    background-color: #00d1a1;
    color: #ffffff;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.back-button {
    color: #8E94A0;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    transition: none;
}

.back-button:hover {
    background-color: transparent;
}

.next-button {
    background-color: #00d1a1;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.next-button:hover {
    background-color: #00a97f;
}

form {
    display: flex;
    flex-direction: column;
}

form input[type="text"],
form input[type="email"] {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #333;
}

form button {
    background-color: #00d1a1;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #00a97f;
}

.progress-bar-container {
    background-color: #E8ECEF;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    height: 20px;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background-color: #7FFAFF;
    transition: width 0.3s;
}

.progress-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #16191E;
}
