
/* diagnostico.css - Diseño Estilo App Médica Moderna */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #F4F9FF;
    --nav-bg: #D1EAFF;
    --primary-blue: #023059;
    --accent-blue: #5D93C4;
    --text-gray: #6688AA;
    --card-shadow: rgba(2, 48, 89, 0.15);
    --white: #FFFFFF;
}

body.body-diagnostico {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-blue);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
footer {
    text-align: center;
    padding: 1rem 1rem;
    background-color: #D1EAFF;
    color: rgba(2, 48, 89, 0.6);
    font-size: 0.9rem;
}


.contenedor-test {
    padding: 1.5rem;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    padding-top: 5rem;
}

.header-test h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.header-test p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.barra-progres {
    width: 100%;
    height: 10px;
    background-color: #E0EBF5;
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progres-actiu {
    height: 100%;
    background-color: var(--accent-blue);
    border-radius: 20px;
    transition: width 0.5s ease-out;
}

.card-pregunta {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px var(--card-shadow);
}

.card-pregunta h2 {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
}

.subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1.2rem;
}

.opciones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.opcion {
    background: var(--white);
    border: 2px solid #E0EBF5;
    border-radius: 16px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    outline: none;
}

.opcion-content strong {
    display: block;
    font-size: 1.05rem;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.opcion-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.opcion:hover {
    border-color: var(--accent-blue);
    background-color: #F8FBFF;
}

.opcion.seleccionada {
    border-color: var(--accent-blue);
    background-color: #F0F7FF;
    box-shadow: 0 4px 12px rgba(93, 147, 196, 0.2);
}


.footer-test {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.btn-secundari, .btn-primari {
    flex: 1;
    padding: 1.1rem;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s active, opacity 0.2s;
}

.btn-secundari {
    background-color: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn-primari {
    background-color: var(--accent-blue);
    color: var(--white);
    border: none;
    box-shadow: 0 6px 15px rgba(93, 147, 196, 0.3);
}

.btn-secundari:active, .btn-primari:active {
    transform: scale(0.97);
}

.barra-navegacion {
    background-color: #023059;
    padding: 0.7rem 2rem; /* Aumentamos un poco el padding vertical */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Esta es la "caja blanca" para el logo */
.nav-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #FFFFFF; /* Caja blanca */
    padding: 6px 15px;         /* Espacio interno */
    border-radius: 10px;       /* Bordes muy redondeados (estilo cápsula) */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Sombra suave para dar relieve */
}

.nav-icono-app {
    width: 32px;  /* Ajustamos un poco el tamaño para que quepa bien */
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.nav-logo-texto {
    height: 22px; /* Ajustamos para que armonice con la caja */
    width: auto;
}

.enlaces-nav {
    display: flex;
    gap: 2rem;
}

.enlaces-nav a {
    color: #D1EAFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.enlaces-nav a {
    color: #D1EAFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.enlaces-nav a:hover,
.enlaces-nav a.activo {
    color: var(--white);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}


/* Ajuste del contenedor para que no se pegue a la barra */
.contenedor-test {
    padding-top: 2rem;
}

@media (max-width: 360px) {
    .contenedor-test {
        padding: 1rem;
    }
    .header-test h1 {
        font-size: 1.3rem;
    }
    .card-pregunta h2 {
        font-size: 1.1rem;
    }
      .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-logo-section {
        padding: 5px 12px;
    }
}
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.7rem;
    }
    .enlaces-nav {
        gap: 1.2rem;
    }
    .enlaces-nav a {
        font-size: 0.85rem;
    }
}
@media (max-width: 375px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-logo-section {
        padding: 5px 12px;
    }
    .enlaces-nav {
        gap: 1.5rem;
    }
    .enlaces-nav a {
        font-size: 0.85rem;
    }
}