html, body{
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

header{
    background-color: var(--color-principal);
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--color-surface);
}

#marca{
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

#logo-marca{
    width: 5rem;
    cursor: pointer;
}

h1{
    cursor: pointer;
}

#mi-perfil{
    margin-right: 1rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

#mi-perfil-usuario{
    display: flex;
    gap: 0.2rem;
    position: relative;
    z-index: 1;
}

#opciones-mi_perfil{
    position: absolute;
    top: 65px;
    width: 214px;
    display: flex;
    flex-direction: column;
    background-color: var(--color-secundario);
    color: #000;
    display: none;
}

#opciones-mi_perfil a{
    text-decoration: none;
    color: #000;
    padding: 0.7rem 1rem;
}

#opciones-mi_perfil a:hover{
    cursor: pointer;
    background-color: var(--color-principal);
    color: var(--color-surface);
}

#numero-emergencia{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    background-color: red;
    color: var(--color-surface);
    padding: 0.5rem;
    margin-bottom: 2rem;
}

#arrow_back{
    color: var(--color-principal);
    margin-left: 10%;
    cursor: pointer;
}

main{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#smartcard{
    min-width: 35%;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background-color: var(--color-principal);
    color: var(--color-surface);
    border-radius: 20px;
}

#container-salud_oeste{
    display: flex;
    align-items: center;
}

#container-foto-datos{
    display: flex;
    width: 100%;
    padding: 1rem 2rem;
}

#smartcard-foto{
    background-image: url(../assets/imagenes/FotoDePerfil.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 50%;
    width: 12rem;
    height: 10rem;
}

#datos-personales{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 1rem;
    width: 100%;
}

#container-fecha{
    display: flex;
    justify-content: space-between;
    width: 80%;
    gap: 2rem;
}

footer{
    color: var(--color-surface);
    display: flex;
    align-items: center;
    background-color: var(--color-principal);
    font-size: 0.8rem;
    padding-left: 1rem;
    margin-top: 5rem;
}

.logos-redes{
    width: 4rem;
    height: 4rem;
    cursor: pointer;
}

/* Móvil: menos de 768px */
@media (max-width: 767.98px) {
  #smartcard {
    flex-direction: column;
    width: 95vw;
    min-width: unset;
    height: auto;
    padding: 1rem 0.2rem;
    border-radius: 12px;
    margin: 3rem;
  }
  #container-foto-datos {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    width: 100%;
  }
  #smartcard-foto {
    width: 6rem;
    height: 6rem;
    margin-bottom: 1rem;
  }
  #datos-personales {
    padding-left: 0;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  #container-fecha {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Extra pequeño: menos de 480px */
@media (max-width: 480px) {
    #mi-perfil-usuario{
        justify-content: center;
        align-items: center;
        font-size: 0.2rem;
    }

    #numero-emergencia{
        flex-direction: column;
        text-align: center;
    }

    #smartcard {
    width: 100vw;
    padding: 0.5rem 0.1rem;
  }
  #smartcard-foto {
    width: 4rem;
    height: 4rem;
  }
  h1, h2, h3, h4 {
    font-size: 1rem;
  }
}